body:not(.contact-page) {
    position: relative;
    min-height: 100vh;
    z-index: 0; /* permet au voile d'être bien géré */
    background: url('../img/crea_14.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Voile sombre global */
body:not(.contact-page)::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

/* Page Contact : fond différent */
body.contact-page {
    position: relative;
    min-height: 100vh;
    z-index: 0;
}
body.contact-page::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../img/crea_100.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.45);
    background-blend-mode: lighten;
    z-index: -1;
}

/* ============================= */
/* === HERO ==================== */
/* ============================= */

/* Hero présent partout sauf contact */
body:not(.contact-page) .hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 60px 20px;
    background: url('../img/crea_101.jpg') no-repeat center center/cover;
}

body:not(.contact-page) .hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 1.5em;
}

.cta-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #388E3C;
}

/* Page Contact : pas de hero */
body.contact-page .hero-section {
    display: none;
}

/* ============================= */
/* === HEADER ================= */
/* ============================= */

header.main-header {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    position: relative;
    z-index: 3;
}

.logo-site {
    display: block;
    margin: 0 auto;
    max-width: 200px;
}

/* ============================= */
/* === NAVIGATION ============== */
/* ============================= */

.nav-link {
    color: #ffffff !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.nav-link:hover {
    color: #85e085 !important;
}

.nav-link.active {
    color: #85e085 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* Page Contact : liens noirs */
body.contact-page .nav-link {
    color: #000000 !important;
}
body.contact-page .nav-link:hover {
    color: #333333 !important;
}
body.contact-page .nav-link.active {
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* ============================= */
/* === CARTES ================= */
/* ============================= */

.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-text i {
    font-size: 1.2rem;
}

/* ============================= */
/* === PAGE CONTACT BOX ======== */
/* ============================= */

body.contact-page #page {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 40px;
}

/* ============================= */
/* === FOOTER ================= */
/* ============================= */

.main-footer {
    background-color: rgba(0,0,0,0.15);
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

/* ============================= */
/* === TEXTE ================== */
/* ============================= */

h5 {
    color: #009933;
}

ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.header-title {
    font-family: "Amaranth";
    font-size: 64px;
}

.footer-title {
    font-family: "Amaranth";
    font-size: 52px;
}

/* ============================= */
/* === RESPONSIVE ============== */
/* ============================= */

@media only screen and (max-width: 600px) {
    .logo-site {
        max-width: 150px;
    }
}
body:not(.contact-page) h1,
body:not(.contact-page) h2,
body:not(.contact-page) h3,
body:not(.contact-page) h4,
body:not(.contact-page) h5,
body:not(.contact-page) h6,
body:not(.contact-page) p,
body:not(.contact-page) li,
body:not(.contact-page) ol,
body:not(.contact-page) ul {
    color: #ffffff !important; /* blanc lisible */
}

/* Pour améliorer la lisibilité */
body:not(.contact-page) .section {
    background: rgba(0,0,0,0.55); /* léger fond sombre derrière le texte */
    border-radius: 12px;
    padding: 30px;
}
