/* =========================================
   1. Variables & Reset (Palette: White/Orange/Yellow)
   ========================================= */
:root {
    /* // palette demandée par ordre d'importance */
    /* // 1. fond principal (blanc pur) */
    --color-bg: #ffffff;
    
    /* // 2. couleur principale (orange vibrant) */
    --color-primary: #ea580c;
    
    /* // 3. couleur secondaire (jaune solaire) */
    --color-secondary: #eab308;
    
    /* // 4. textes et contrastes (gris foncé / noir) */
    --color-dark: #1c1917;
    --color-text-muted: #57534e;
    --color-border: #e5e5e5;
    --color-surface: #ffffff;

    --font-main: 'Inter', sans-serif;
    --container-width: 1280px;
    --border-radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--color-bg);
    color: var(--color-dark);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    /* --- CORRECTION FOOTER --- */
    display: flex;             /* // active le mode flexbox */
    flex-direction: column;    /* // empile les éléments verticalement */
    min-height: 100vh;         /* // force la hauteur minimale à 100% de l'écran */
}

a { text-decoration: none; color: inherit; }

/* // permet au contenu principal de pousser le footer */
main {
    flex: 1; 
    width: 100%;
}

/* =========================================
   2. Global Utility Classes
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1; /* // contenu au-dessus du fond */
}

/* // dégradé orange vers jaune pour les textes importants */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* =========================================
   3. BACKGROUND SHAPES (Système Blobs Dynamique)
   ========================================= */
.shapes-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0; /* // tout au fond */
    pointer-events: none; /* // ne bloque pas les clics */
    background-color: var(--color-bg);
    filter: blur(25px);
}

/* // style de base d'une forme (blob) */
.shape {
    position: absolute;
    filter: none;
    opacity: 0.6; 
    animation: move-blob infinite alternate ease-in-out;
}

/* // animation de grand déplacement ("se déplacent sur le fond") */
@keyframes move-blob {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    33% {
        transform: translate(100px, -50px) rotate(40deg) scale(1.1);
    }
    66% {
        transform: translate(-50px, 80px) rotate(-20deg) scale(0.9);
    }
    100% { 
        transform: translate(20px, -100px) rotate(10deg) scale(1); 
    }
}

/* =========================================
   4. Footer Styles (Nouveau Design Professionnel)
   ========================================= */
.site-footer {
    background-color: var(--color-surface);
    border-top: 2px solid var(--color-dark);
    padding: 4rem 0 1.5rem 0;
    margin-top: auto; /* // pousse le footer tout en bas */
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* // 3 colonnes sur tablette et pc */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* // colonne de marque (gauche) */
.footer-logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-dark);
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.2s;
}

.footer-logo span {
    color: var(--color-primary);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 400px;
    font-weight: 500;
}

.social-links-footer {
    display: flex;
    gap: 1rem;
}

/* // boutons sociaux stylisés (hard shadow) */
.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--color-dark);
    border-radius: 10px;
    color: var(--color-dark);
    font-size: 1.2rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 2px 2px 0px var(--color-dark);
}

.social-links-footer a:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0px var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* // colonnes de liens (droite) */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* // petit trait sous le titre */
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li a,
.footer-links li .static-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.footer-links li a i,
.footer-links li .static-link i {
    color: var(--color-secondary);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.footer-links li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-links li a:hover i {
    color: var(--color-primary);
    transform: scale(1.2);
}

/* // lien spécial mis en avant */
.highlight-link {
    color: var(--color-dark) !important;
    font-weight: 900 !important;
}

.highlight-link i {
    color: var(--color-primary) !important;
}

.highlight-link:hover {
    color: var(--color-primary) !important;
}

.footer-bottom {
    border-top: 2px dashed var(--color-border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* // on centre le contenu */
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: center; /* // on remplace space-between par center */
    }
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.footer-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f5f5f4;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    box-shadow: 2px 2px 0px var(--color-dark);
    transition: all 0.2s;
}

.footer-badge:hover {
    background: white;
    box-shadow: 2px 2px 0px var(--color-primary);
    border-color: var(--color-primary);
    transform: translate(-1px, -1px);
}

/* --- EN-TÊTE DISSOCIÉ --- */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

/* le bouton retour est un petit bloc à part */
.back-btn-block {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50px; /* forme pilule */
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    font-weight: 700;
    transition: all 0.2s;
}
.back-btn-block:hover {
    transform: translateX(-5px);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* le titre est centré absolument au milieu de la ligne */
.title-block-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    /* pas de fond/cadre pour le titre, juste du texte pur comme l'original, ou léger fond si voulu */
}

/* responsive : en mobile, on empile */
@media (max-width: 992px) {
    .header-wrapper { flex-direction: column; gap: 1.5rem; }
    .title-block-centered { position: relative; left: auto; transform: none; }
    .back-btn-block { align-self: flex-start; }
}

/* --- CONTENEUR DES BLOCS --- */
.blocks-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75% gauche / 25% droite */
    gap: 2rem;
}
@media (max-width: 1024px) { .blocks-grid { grid-template-columns: 1fr; } }

/* --- BLOCS GÉNÉRIQUES (gardez votre style blanc/ombre) --- */
.white-block {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}