/*
Theme Name:  Astra Google Child — Atlasseo
Theme URI:   https://www.atlasseo.fr/
Description: Thème enfant Astra v2.0 optimisé SEO·GEO·CRO·Sécurité. Charte Google Material Design. Design system complet avec tokens CSS personnalisables.
Author:      Rachid Righi — Atlasseo
Author URI:  https://www.atlasseo.fr/
Template:    astra
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlasseo-child
*/

/* ═══════════════════════════════════════════════════════════════
   ██████╗ ███████╗███████╗██╗ ██████╗ ███╗   ██╗
   ██╔══██╗██╔════╝██╔════╝██║██╔════╝ ████╗  ██║
   ██║  ██║█████╗  ███████╗██║██║  ███╗██╔██╗ ██║
   ██║  ██║██╔══╝  ╚════██║██║██║   ██║██║╚██╗██║
   ██████╔╝███████╗███████║██║╚██████╔╝██║ ╚████║
   ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═══╝
   SYSTEM — ATLASSEO CHILD THEME v2.0
   ═══════════════════════════════════════════════════════════════

   ┌─────────────────────────────────────────────────────────────┐
   │  SOMMAIRE                                                   │
   │  1.  DESIGN TOKENS — Personnalisez ici                      │
   │  2.  TYPOGRAPHIE                                            │
   │  3.  LIENS GLOBAUX                                          │
   │  4.  NAVIGATION / MENU                                      │
   │  5.  EN-TÊTE (HEADER)                                       │
   │  6.  BOUTONS                                                │
   │  7.  FORMULAIRES                                            │
   │  8.  CONTENU & MISE EN PAGE                                 │
   │  9.  CARDS FILLED (service phare)                           │
   │  10. STRETCHED LINK (card cliquable)                        │
   │  11. SIDEBAR WIDGETS                                        │
   │  12. FOOTER WIDGETS                                         │
   │  13. PIED DE PAGE                                           │
   │  14. DESIGN SYSTEM — Classes utilitaires ATL                │
   │  15. RESPONSIVE                                             │
   └─────────────────────────────────────────────────────────────┘
*/


/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────
   ✏️  PERSONNALISATION RAPIDE :
   Modifiez uniquement cette section pour changer l'apparence
   complète du site. Toutes les autres règles utilisent ces
   variables — rien d'autre à toucher.
   ═══════════════════════════════════════════════════════════════ */
:root {

    /* ── Couleurs primaires Google Brand ──────────────────────── */
    --color-blue:          #4285F4;   /* Bleu Google principal      */
    --color-blue-dark:     #1a73e8;   /* Bleu survol / focus        */
    --color-blue-darker:   #1557b0;   /* Bleu actif / pressé        */
    --color-blue-light:    #e8f0fe;   /* Fond card bleue            */
    --color-red:           #EA4335;   /* Rouge Google               */
    --color-red-light:     #fce8e6;   /* Fond card rouge            */
    --color-yellow:        #FBBC05;   /* Jaune Google               */
    --color-yellow-light:  #fef9e3;   /* Fond card jaune            */
    --color-green:         #34A853;   /* Vert Google                */
    --color-green-light:   #e6f4ea;   /* Fond card verte            */

    /* ── Couleurs neutres ─────────────────────────────────────── */
    --color-dark:          #202124;   /* Texte principal            */
    --color-mid:           #5F6368;   /* Texte secondaire           */
    --color-muted:         #9AA0A6;   /* Texte désactivé            */
    --color-border:        #DADCE0;   /* Bordures                   */
    --color-surface:       #F8F9FA;   /* Fond de page               */
    --color-white:         #FFFFFF;   /* Blanc pur                  */

    /* ── Typographie ──────────────────────────────────────────── */
    --font-body:           'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display:        'Google Sans', 'Product Sans', 'Roboto', sans-serif;
    --font-mono:           'Roboto Mono', 'Courier New', monospace;

    --font-size-base:      16px;      /* Taille corps               */
    --font-size-sm:        14px;      /* Petite taille              */
    --font-size-xs:        12px;      /* Très petite                */
    --font-size-lg:        18px;      /* Grande taille              */

    --line-height-body:    1.65;      /* Interligne corps           */
    --line-height-heading: 1.25;      /* Interligne titres          */

    --font-weight-normal:  400;
    --font-weight-medium:  500;
    --font-weight-bold:    700;

    /* ── Tailles des titres ───────────────────────────────────── */
    --h1-size:             2rem;      /* 32px                       */
    --h2-size:             1.75rem;   /* 28px                       */
    --h3-size:             1.5rem;    /* 24px                       */
    --h4-size:             1.25rem;   /* 20px                       */
    --h5-size:             1.1rem;    /* 17.6px                     */
    --h6-size:             1rem;      /* 16px                       */

    /* ── Espacements ──────────────────────────────────────────── */
    --space-xs:            4px;
    --space-sm:            8px;
    --space-md:            16px;
    --space-lg:            24px;
    --space-xl:            32px;
    --space-2xl:           48px;
    --space-3xl:           64px;
    --space-4xl:           80px;

    /* ── Bordures & Radius ────────────────────────────────────── */
    --radius-sm:           4px;       /* Boutons                    */
    --radius-md:           8px;       /* Cards légères              */
    --radius-lg:           12px;      /* Cards principales          */
    --radius-xl:           20px;      /* Grandes sections           */

    --border-width:        1px;
    --border-style:        solid;

    /* ── Ombres ───────────────────────────────────────────────── */
    --shadow-sm:           0 1px 3px rgba(60, 64, 67, 0.08);
    --shadow-md:           0 2px 8px rgba(60, 64, 67, 0.12);
    --shadow-lg:           0 4px 20px rgba(60, 64, 67, 0.15);
    --shadow-hover:        0 6px 24px rgba(60, 64, 67, 0.18);

    /* ── Transitions ──────────────────────────────────────────── */
    --transition-fast:     0.15s ease;
    --transition-base:     0.2s ease;
    --transition-slow:     0.3s ease;

    /* ── Surcharge des tokens Astra (synchronisation) ─────────── */
    --ast-global-color-0:  var(--color-blue);
    --ast-global-color-1:  var(--color-dark);
    --ast-global-color-2:  var(--color-mid);
    --ast-global-color-3:  var(--color-surface);
    --ast-border-color:    var(--color-border);
}


/* ═══════════════════════════════════════════════════════════════
   2. TYPOGRAPHIE
   ═══════════════════════════════════════════════════════════════ */

/* Corps global */
body,
button,
input,
select,
textarea {
    font-family:             var(--font-body);
    font-size:               var(--font-size-base);
    line-height:             var(--line-height-body);
    color:                   var(--color-dark);
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Titres */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.ast-archive-title {
    font-family:  var(--font-display);
    font-weight:  var(--font-weight-medium);
    line-height:  var(--line-height-heading);
    color:        var(--color-dark);
    margin-top:   0;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

/* Code */
code, kbd, tt, var {
    font-family:      var(--font-mono);
    font-size:        0.9em;
    background-color: var(--color-surface);
    border:           var(--border-width) var(--border-style) var(--color-border);
    border-radius:    var(--radius-sm);
    padding:          1px 5px;
    color:            #c5221f;
}

pre {
    background:    var(--color-surface);
    border:        var(--border-width) var(--border-style) var(--color-border);
    border-radius: var(--radius-md);
    font-family:   var(--font-mono);
    color:         var(--color-dark);
    overflow-x:    auto;
}

pre code {
    background: transparent;
    border:     none;
    padding:    0;
    color:      inherit;
}

/* Sélection */
::selection {
    background: rgba(66, 133, 244, 0.2);
    color:      var(--color-dark);
}

/* Blockquote */
blockquote {
    border-left-color: var(--color-blue);
    background:        rgba(66, 133, 244, 0.05);
    border-radius:     0 var(--radius-sm) var(--radius-sm) 0;
    color:             var(--color-mid);
}


/* ═══════════════════════════════════════════════════════════════
   3. LIENS GLOBAUX
   ═══════════════════════════════════════════════════════════════ */

a {
    color:           var(--color-blue);
    text-decoration: none;
    transition:      color var(--transition-base);
}

a:hover,
a:focus {
    color:           var(--color-blue-dark);
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════
   4. NAVIGATION — MENU (injection haute priorité via wp_head)
   ───────────────────────────────────────────────────────────────
   Note : le CSS critique du menu est aussi injecté en inline
   via wp_head priority 9999 dans functions.php pour garantir
   son application même si ce fichier CSS est chargé tardivement.
   ═══════════════════════════════════════════════════════════════ */

/* Fond header blanc */
.main-header-bar,
#ast-desktop-header .main-header-bar {
    background-color: var(--color-white) !important;
    border-bottom:    var(--border-width) var(--border-style) var(--color-border) !important;
    box-shadow:       var(--shadow-sm) !important;
}

/* Liens menu — couleur sombre par défaut */
#ast-desktop-header .main-header-menu .menu-link,
#ast-desktop-header .main-header-menu .menu-link:visited,
#ast-desktop-header .site-navigation .menu-link,
.main-header-bar .main-header-menu .menu-link,
.main-header-menu .menu-link,
.main-header-menu .menu-link:visited {
    font-family:     var(--font-body);
    font-size:       0.9375rem;
    font-weight:     var(--font-weight-medium);
    color:           var(--color-dark) !important;
    padding-bottom:  4px;
    border-bottom:   2px solid transparent;
    text-decoration: none;
    transition:      color var(--transition-base), border-color var(--transition-base);
}

/* Survol / focus → bleu Google souligné */
#ast-desktop-header .main-header-menu .menu-link:hover,
#ast-desktop-header .main-header-menu .menu-link:focus,
.main-header-bar .main-header-menu .menu-link:hover,
.main-header-menu .menu-link:hover,
.main-header-menu .menu-link:focus {
    color:        var(--color-blue) !important;
    border-color: var(--color-blue);
}

/* Item actif — bleu permanent */
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link,
.main-header-menu .current_page_item > .menu-link {
    color:        var(--color-blue) !important;
    border-color: var(--color-blue);
    font-weight:  var(--font-weight-bold);
}

/* Sous-menus */
.main-header-menu .sub-menu {
    background:    var(--color-white);
    border:        var(--border-width) var(--border-style) var(--color-border);
    border-radius: var(--radius-md);
    box-shadow:    var(--shadow-md);
}

.main-header-menu .sub-menu .menu-link {
    font-size:   0.875rem;
    color:       var(--color-dark) !important;
    border-bottom: none;
    padding:     0.75em 1em;
    transition:  background-color var(--transition-fast), color var(--transition-fast);
}

.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .menu-link:focus {
    color:            var(--color-blue) !important;
    background-color: var(--color-blue-light);
    border-bottom:    none;
}

/* Menu mobile */
.ast-header-break-point .main-navigation ul .menu-item .menu-link {
    color:       var(--color-dark);
    font-weight: var(--font-weight-medium);
}

.ast-header-break-point .main-navigation ul .menu-item .menu-link:hover {
    color:            var(--color-blue);
    background-color: var(--color-blue-light);
}

/* Titre / Logo du site */
.site-title a,
.site-title a:visited {
    font-family:    var(--font-display);
    font-weight:    var(--font-weight-bold);
    font-size:      1.5rem;
    color:          var(--color-dark);
    letter-spacing: -0.3px;
}

.site-title a:hover { color: var(--color-blue); }

.site-description {
    color:     var(--color-mid);
    font-size: 0.875rem;
}


/* ═══════════════════════════════════════════════════════════════
   5. EN-TÊTE (HEADER)
   ═══════════════════════════════════════════════════════════════ */

.main-header-bar {
    background-color: var(--color-white);
    border-bottom:    var(--border-width) var(--border-style) var(--color-border);
    box-shadow:       var(--shadow-sm);
}


/* ═══════════════════════════════════════════════════════════════
   6. BOUTONS
   ═══════════════════════════════════════════════════════════════ */

.ast-button,
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    font-family:      var(--font-body);
    font-weight:      var(--font-weight-medium);
    font-size:        0.875rem;
    letter-spacing:   0.25px;
    background-color: var(--color-blue);
    color:            var(--color-white);
    border:           var(--border-width) var(--border-style) var(--color-blue);
    border-radius:    var(--radius-sm);
    padding:          10px 24px;
    cursor:           pointer;
    transition:       background-color var(--transition-base),
                      box-shadow var(--transition-base),
                      transform var(--transition-fast);
    box-shadow:       0 1px 2px rgba(60, 64, 67, 0.3);
}

.ast-button:hover,
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: var(--color-blue-dark);
    border-color:     var(--color-blue-dark);
    box-shadow:       var(--shadow-md);
    color:            var(--color-white);
    transform:        translateY(-1px);
}

.ast-button:focus,
.button:focus,
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
    outline:        3px solid rgba(66, 133, 244, 0.4);
    outline-offset: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   7. FORMULAIRES
   ═══════════════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
    font-family:   var(--font-body);
    font-size:     var(--font-size-base);
    border:        var(--border-width) var(--border-style) var(--color-border);
    border-radius: var(--radius-sm);
    color:         var(--color-dark);
    background:    var(--color-white);
    padding:       10px 14px;
    transition:    border-color var(--transition-base),
                   box-shadow var(--transition-base);
    width:         100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-blue);
    box-shadow:   0 0 0 2px rgba(66, 133, 244, 0.2);
    outline:      none;
    background:   var(--color-white);
}


/* ═══════════════════════════════════════════════════════════════
   8. CONTENU & MISE EN PAGE
   ═══════════════════════════════════════════════════════════════ */

body { background-color: var(--color-white); }

.ast-separate-container {
    background-color: var(--color-surface);
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single:not(.ast-related-post) {
    background-color: var(--color-white);
    border-radius:    var(--radius-lg);
    box-shadow:       var(--shadow-sm);
    border:           var(--border-width) var(--border-style) var(--color-border);
}

/* Tableaux */
table, td, th { border-color: var(--color-border); }

th {
    background-color: var(--color-surface);
    color:            var(--color-dark);
    font-weight:      var(--font-weight-medium);
}

/* Pagination */
.page-links .page-link {
    border-color:  var(--color-border);
    border-radius: 50%;
    color:         var(--color-blue);
    font-weight:   var(--font-weight-medium);
}

.page-links .page-link:hover {
    background-color: rgba(66, 133, 244, 0.1);
    border-color:     var(--color-blue);
    color:            var(--color-blue);
}

/* Navigation article prev/next */
.post-navigation a { color: var(--color-blue); font-weight: var(--font-weight-medium); }
.post-navigation a:hover { color: var(--color-blue-dark); }


/* ═══════════════════════════════════════════════════════════════
   9. CARDS FILLED — Composant service (fond coloré Google)
   ───────────────────────────────────────────────────────────────
   Usage HTML :
   <div class="g-cards-grid">
     <div class="g-card-filled" style="position:relative">
       <span class="g-card-tag">Label</span>
       <h3 class="g-card-title">Titre</h3>
       <p class="g-card-desc">Description.</p>
       <a href="/url" class="g-card-btn g-card-btn--stretched">CTA →</a>
     </div>
   </div>
   ═══════════════════════════════════════════════════════════════ */

/* Grille auto-adaptative */
.g-cards-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap:                   var(--space-lg);
    margin:                var(--space-xl) 0;
}

/* Card de base — Bleu Google */
.g-card-filled {
    background:     var(--color-blue-light);
    border-radius:  var(--radius-lg);
    padding:        28px 24px 24px;
    display:        flex;
    flex-direction: column;
    gap:            10px;
    position:       relative;
    overflow:       hidden;
    transition:     transform var(--transition-base),
                    background-color var(--transition-base);
}

/* Accent décoratif */
.g-card-filled::before {
    content:       '';
    position:      absolute;
    top:           -28px;
    right:         -28px;
    width:         90px;
    height:        90px;
    background:    rgba(66, 133, 244, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.g-card-filled:hover { transform: translateY(-3px); background-color: #d2e3fc; }

/* Variantes couleurs */
.g-card-filled.green         { background: var(--color-green-light); }
.g-card-filled.green::before { background: rgba(52, 168, 83, 0.1); }
.g-card-filled.green:hover   { background: #ceead6; }

.g-card-filled.red           { background: var(--color-red-light); }
.g-card-filled.red::before   { background: rgba(234, 67, 53, 0.1); }
.g-card-filled.red:hover     { background: #f5c6c2; }

.g-card-filled.yellow        { background: var(--color-yellow-light); }
.g-card-filled.yellow::before{ background: rgba(251, 188, 5, 0.1); }
.g-card-filled.yellow:hover  { background: #feefc3; }

.g-card-filled.grey          { background: var(--color-surface); }
.g-card-filled.grey:hover    { background: #f1f3f4; }

/* Tag / Badge */
.g-card-tag {
    display:        inline-block;
    font-family:    var(--font-body);
    font-size:      11px;
    font-weight:    var(--font-weight-medium);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color:          var(--color-blue-dark);
    background:     rgba(255, 255, 255, 0.65);
    border-radius:  var(--radius-sm);
    padding:        3px 10px;
    width:          fit-content;
}

.g-card-filled.green  .g-card-tag { color: #188038; }
.g-card-filled.red    .g-card-tag { color: var(--color-red); }
.g-card-filled.yellow .g-card-tag { color: #b06000; }

/* Titre de card */
.g-card-title {
    font-family:  var(--font-display);
    font-size:    1.15rem;
    font-weight:  var(--font-weight-medium);
    color:        var(--color-dark);
    line-height:  1.35;
    margin:       0;
}

/* Description */
.g-card-desc {
    font-family: var(--font-body);
    font-size:   0.9375rem;
    line-height: 1.6;
    color:       #3c4043;
    margin:      0;
    flex-grow:   1;
}

/* Bouton CTA */
.g-card-btn {
    display:         inline-block;
    margin-top:      8px;
    font-family:     var(--font-body);
    font-size:       0.875rem;
    font-weight:     var(--font-weight-medium);
    color:           var(--color-white) !important;
    background:      var(--color-blue);
    border:          none;
    border-radius:   var(--radius-sm);
    padding:         10px 20px;
    text-decoration: none !important;
    width:           fit-content;
    letter-spacing:  0.25px;
    transition:      background-color var(--transition-base),
                     box-shadow var(--transition-base);
    cursor:          pointer;
}

.g-card-btn:hover,
.g-card-btn:focus {
    background:      var(--color-blue-dark);
    color:           var(--color-white) !important;
    text-decoration: none !important;
    box-shadow:      var(--shadow-md);
}

.g-card-filled.green  .g-card-btn { background: var(--color-green); }
.g-card-filled.green  .g-card-btn:hover { background: #188038; }

.g-card-filled.red    .g-card-btn { background: var(--color-red); }
.g-card-filled.red    .g-card-btn:hover { background: #c5221f; }

.g-card-filled.yellow .g-card-btn { background: var(--color-yellow); color: var(--color-dark) !important; }
.g-card-filled.yellow .g-card-btn:hover { background: #f29900; }

/* Icône optionnelle */
.g-card-icon {
    width:           44px;
    height:          44px;
    background:      rgba(255, 255, 255, 0.7);
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    margin-bottom:   4px;
}

.g-card-icon svg { width: 22px; height: 22px; fill: var(--color-blue); }
.g-card-filled.green  .g-card-icon svg { fill: var(--color-green); }
.g-card-filled.red    .g-card-icon svg { fill: var(--color-red); }
.g-card-filled.yellow .g-card-icon svg { fill: #b06000; }


/* ═══════════════════════════════════════════════════════════════
   10. STRETCHED LINK — Card entièrement cliquable
   ───────────────────────────────────────────────────────────────
   Ajouter position:relative sur .g-card-filled
   et g-card-btn--stretched sur le <a>
   ═══════════════════════════════════════════════════════════════ */

.g-card-btn--stretched {
    position: static;
}

.g-card-btn--stretched::after {
    content:       '';
    position:      absolute;
    inset:         0;
    z-index:       1;
    border-radius: var(--radius-lg);
}

.g-card-filled:has(.g-card-btn--stretched:hover) {
    transform:  translateY(-3px);
    transition: transform var(--transition-base);
    cursor:     pointer;
}


/* ═══════════════════════════════════════════════════════════════
   11. SIDEBAR WIDGETS — Style card blanc
   ═══════════════════════════════════════════════════════════════ */

#secondary,
.ast-right-sidebar #secondary,
.ast-left-sidebar  #secondary {
    background: transparent;
}

#secondary .widget,
.ast-right-sidebar #secondary .widget,
.ast-left-sidebar  #secondary .widget {
    background:    var(--color-white) !important;
    border-radius: var(--radius-lg) !important;
    border:        var(--border-width) var(--border-style) var(--color-border) !important;
    padding:       var(--space-lg) !important;
    margin-bottom: var(--space-md) !important;
    box-shadow:    var(--shadow-sm);
}

#secondary .widget-title,
.ast-right-sidebar #secondary .widget-title,
.ast-left-sidebar  #secondary .widget-title {
    font-family:    var(--font-display);
    font-size:      1.0625rem;
    font-weight:    var(--font-weight-medium);
    color:          var(--color-dark);
    margin-bottom:  var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom:  var(--border-width) var(--border-style) var(--color-surface);
}

#secondary .widget a { color: var(--color-blue); text-decoration: none; transition: color var(--transition-fast); }
#secondary .widget a:hover { color: var(--color-blue-dark); text-decoration: underline; }

#secondary .search-field {
    border:        1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding:       9px 12px;
    width:         100%;
    font-family:   var(--font-body);
    font-size:     var(--font-size-sm);
    color:         var(--color-dark);
    transition:    border-color var(--transition-base), box-shadow var(--transition-base);
    outline:       none;
}

#secondary .search-field:focus {
    border-color: var(--color-blue);
    box-shadow:   0 0 0 2px rgba(66, 133, 244, 0.2);
}

#secondary .search-submit {
    background:    var(--color-blue);
    color:         var(--color-white);
    border:        none;
    border-radius: var(--radius-sm);
    padding:       9px 16px;
    font-family:   var(--font-body);
    font-size:     var(--font-size-sm);
    font-weight:   var(--font-weight-medium);
    cursor:        pointer;
    margin-top:    var(--space-sm);
    transition:    background-color var(--transition-base);
}

#secondary .search-submit:hover { background: var(--color-blue-dark); }

#secondary .widget ul { list-style: none; margin: 0; padding: 0; }
#secondary .widget ul li {
    padding:       6px 0;
    border-bottom: var(--border-width) var(--border-style) var(--color-surface);
    font-size:     var(--font-size-sm);
    color:         var(--color-mid);
}
#secondary .widget ul li:last-child { border-bottom: none; }
#secondary .widget ul li .post-count { color: var(--color-muted); font-size: var(--font-size-xs); margin-left: 4px; }


/* ═══════════════════════════════════════════════════════════════
   12. FOOTER WIDGETS — Style adapté fond sombre
   ═══════════════════════════════════════════════════════════════ */

.ast-footer-widget-area .widget,
.footer-widget-area .widget,
[class*="footer"] .widget-area .widget,
.site-footer .widget {
    background:    transparent !important;
    border:        none !important;
    border-radius: 0 !important;
    padding:       0 !important;
    box-shadow:    none !important;
    margin-bottom: 0 !important;
    color:         rgba(255, 255, 255, 0.65);
    font-size:     0.875rem;
    line-height:   1.7;
}

.ast-footer-widget-area .widget-title,
.footer-widget-area .widget-title,
.site-footer .widget-title {
    font-family:    var(--font-display);
    font-size:      0.875rem;
    font-weight:    var(--font-weight-medium);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color:          var(--color-white);
    margin-bottom:  var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom:  var(--border-width) var(--border-style) rgba(255, 255, 255, 0.15);
}

.ast-footer-widget-area .widget a,
.footer-widget-area .widget a,
.site-footer .widget a {
    color:           rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition:      color var(--transition-base);
}

.ast-footer-widget-area .widget a:hover,
.footer-widget-area .widget a:hover,
.site-footer .widget a:hover { color: var(--color-white); }

.ast-footer-widget-area .widget ul,
.footer-widget-area .widget ul,
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }

.ast-footer-widget-area .widget ul li,
.footer-widget-area .widget ul li,
.site-footer .widget ul li {
    padding:       5px 0;
    border-bottom: var(--border-width) var(--border-style) rgba(255, 255, 255, 0.07);
    font-size:     0.875rem;
}

.ast-footer-widget-area .widget ul li:last-child,
.footer-widget-area .widget ul li:last-child,
.site-footer .widget ul li:last-child { border-bottom: none; }


/* ═══════════════════════════════════════════════════════════════
   13. PIED DE PAGE
   ═══════════════════════════════════════════════════════════════ */

.ast-footer-overlay { background-color: var(--color-dark); color: var(--color-white); }
.site-footer { color: var(--color-white); }
.site-footer a,
.site-footer a:visited { color: var(--color-border); text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus { color: var(--color-white); text-decoration: underline; }
.ast-small-footer { background-color: #171717; color: var(--color-mid); font-size: 0.8125rem; }


/* ═══════════════════════════════════════════════════════════════
   14. DESIGN SYSTEM — Classes utilitaires ATL
   ───────────────────────────────────────────────────────────────
   Usage Gutenberg : Bloc → Avancé → Classe(s) CSS
   Combiner : atl-section atl-section--grey
   ═══════════════════════════════════════════════════════════════ */

/* Sections */
.atl-section        { padding: var(--space-4xl) 0; }
.atl-section--sm    { padding: var(--space-2xl) 0; }
.atl-section--xs    { padding: var(--space-xl) 0; }
.atl-section--white { background-color: var(--color-white); }
.atl-section--grey  { background-color: var(--color-surface); }
.atl-section--blue  { background-color: var(--color-blue-light); }
.atl-section--dark  { background-color: var(--color-dark); color: var(--color-white); }
.atl-section--dark h1,
.atl-section--dark h2,
.atl-section--dark h3,
.atl-section--dark h4,
.atl-section--dark p { color: var(--color-white); }
.atl-section--dark .atl-kicker { color: #93c5fd; }
.atl-section--dark .atl-kicker::before { background: #93c5fd; }

/* Conteneurs */
.atl-container        { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.atl-container--narrow{ max-width: 740px;  margin: 0 auto; padding: 0 var(--space-lg); }
.atl-container--wide  { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-lg); }

/* Grilles */
.atl-grid-2    { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.atl-grid-3    { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.atl-grid-4    { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.atl-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.atl-grid-60-40 { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-3xl); align-items: center; }
.atl-grid-40-60 { display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-3xl); align-items: center; }
.atl-flex-center  { display: flex; align-items: center; gap: var(--space-md); }
.atl-flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.atl-flex-col     { display: flex; flex-direction: column; gap: var(--space-md); }

/* Hero */
#hero, .atl-hero { padding: var(--space-4xl) 0 var(--space-3xl); background-color: var(--color-dark); text-align: center; }
.atl-hero h1   { font-size: 2.75rem; font-weight: var(--font-weight-bold); color: var(--color-white); line-height: 1.2; margin-bottom: var(--space-md); }
.atl-hero-btns { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

/* Typographie utilitaire */
.atl-kicker {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.6875rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: 10px;
}
.atl-kicker::before {
    content: '';
    width:   16px;
    height:  2px;
    background: var(--color-blue);
    border-radius: 1px;
    flex-shrink: 0;
}

.atl-lead         { font-size: 1.0625rem; line-height: 1.65; color: var(--color-mid); margin-bottom: var(--space-lg); }
.atl-section-title{ font-size: 1.875rem; font-weight: var(--font-weight-medium); color: var(--color-dark); line-height: 1.25; margin-bottom: var(--space-sm); }
.atl-text-center  { text-align: center; }
.atl-text-left    { text-align: left; }
.atl-text-muted   { color: var(--color-mid) !important; }
.atl-highlight    { color: var(--color-blue); font-weight: var(--font-weight-medium); }
.atl-highlight--green  { color: var(--color-green); font-weight: var(--font-weight-medium); }
.atl-highlight--red    { color: var(--color-red); font-weight: var(--font-weight-medium); }
.atl-highlight--yellow { color: #b06000; font-weight: var(--font-weight-medium); }

/* Divider */
.atl-divider         { width: 56px; height: 3px; background: var(--color-blue); border: none; margin: var(--space-md) 0; border-radius: 2px; }
.atl-divider--center { margin: var(--space-md) auto; }
.atl-divider--white  { background: rgba(255, 255, 255, 0.5); }

/* Cards */
.atl-card        { background: var(--color-white); border: var(--border-width) var(--border-style) var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.atl-card:hover  { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.atl-card--flat  { background: var(--color-white); border: var(--border-width) var(--border-style) var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.atl-card--shadow{ background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-md); }

/* Cards filled */
.atl-card-filled  { background: var(--color-blue-light); border-radius: var(--radius-lg); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform var(--transition-base), background-color var(--transition-base); }
.atl-card-filled:hover            { transform: translateY(-3px); background-color: #d2e3fc; }
.atl-card-filled--green           { background: var(--color-green-light); }
.atl-card-filled--green:hover     { background: #ceead6; }
.atl-card-filled--red             { background: var(--color-red-light); }
.atl-card-filled--red:hover       { background: #f5c6c2; }
.atl-card-filled--yellow          { background: var(--color-yellow-light); }
.atl-card-filled--yellow:hover    { background: #feefc3; }

/* Badges */
.atl-badge         { display: inline-block; font-size: 0.6875rem; font-weight: var(--font-weight-medium); letter-spacing: 0.3px; padding: 3px 10px; border-radius: 20px; }
.atl-badge--blue   { background: var(--color-blue-light); color: var(--color-blue-dark); }
.atl-badge--green  { background: var(--color-green-light); color: #188038; }
.atl-badge--red    { background: var(--color-red-light); color: #d93025; }
.atl-badge--yellow { background: var(--color-yellow-light); color: #b06000; }
.atl-badge--dark   { background: var(--color-dark); color: var(--color-white); }

/* Stats */
.atl-stats-row  { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-md); }
.atl-stat       { background: var(--color-white); border: var(--border-width) var(--border-style) var(--color-border); border-radius: var(--radius-md); padding: var(--space-md) var(--space-md); text-align: center; }
.atl-stat__number { font-size: 2rem; font-weight: var(--font-weight-bold); color: var(--color-blue); line-height: 1; }
.atl-stat__label  { font-size: 0.8125rem; color: var(--color-mid); margin-top: 6px; line-height: 1.4; }

/* Testimonial */
.atl-testimonial  { background: var(--color-white); border: var(--border-width) var(--border-style) var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.atl-testimonial__quote { font-size: 1rem; font-style: italic; color: #3c4043; line-height: 1.65; border-left: 3px solid var(--color-blue); padding-left: var(--space-md); margin-bottom: var(--space-md); }
.atl-testimonial__author { display: flex; align-items: center; gap: var(--space-sm); }
.atl-testimonial__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-blue-light); color: var(--color-blue-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: var(--font-weight-medium); flex-shrink: 0; }
.atl-testimonial__name   { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-dark); }
.atl-testimonial__role   { font-size: var(--font-size-xs); color: var(--color-mid); }

/* Process */
.atl-process    { display: flex; flex-direction: column; gap: 0; }
.atl-step       { display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-lg) 0; border-bottom: var(--border-width) var(--border-style) var(--color-border); }
.atl-step:last-child { border-bottom: none; }
.atl-step__num  { width: 40px; height: 40px; border-radius: 50%; background: var(--color-blue); color: var(--color-white); font-size: 15px; font-weight: var(--font-weight-medium); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.atl-step__title{ font-size: 1rem; font-weight: var(--font-weight-medium); color: var(--color-dark); margin-bottom: 4px; }
.atl-step__desc { font-size: 0.9rem; color: var(--color-mid); line-height: 1.55; }

/* FAQ */
.atl-faq         { list-style: none; margin: 0; padding: 0; }
.atl-faq__item   { padding: var(--space-md) 0; border-bottom: var(--border-width) var(--border-style) var(--color-border); }
.atl-faq__item:last-child { border-bottom: none; }
.atl-faq__question { font-size: 1rem; font-weight: var(--font-weight-medium); color: var(--color-dark); margin-bottom: var(--space-sm); }
.atl-faq__answer { font-size: 0.9375rem; color: var(--color-mid); line-height: 1.65; }

/* CTA Block */
.atl-cta { text-align: center; padding: var(--space-3xl) var(--space-lg); background: var(--color-blue-light); border-radius: var(--radius-xl); }
.atl-cta--dark { background: var(--color-dark); }
.atl-cta--dark h2, .atl-cta--dark h3 { color: var(--color-white); }
.atl-cta--dark p { color: rgba(255, 255, 255, 0.7); }

/* Spacing utilitaires */
.atl-mt-0  { margin-top: 0 !important; }
.atl-mt-sm { margin-top: var(--space-md) !important; }
.atl-mt-md { margin-top: var(--space-xl) !important; }
.atl-mt-lg { margin-top: var(--space-3xl) !important; }
.atl-mb-0  { margin-bottom: 0 !important; }
.atl-mb-sm { margin-bottom: var(--space-md) !important; }
.atl-mb-md { margin-bottom: var(--space-xl) !important; }
.atl-mb-lg { margin-bottom: var(--space-3xl) !important; }
.atl-gap-sm { gap: var(--space-sm) !important; }
.atl-gap-md { gap: var(--space-lg) !important; }
.atl-gap-lg { gap: var(--space-2xl) !important; }


/* ═══════════════════════════════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .atl-section       { padding: var(--space-2xl) 0; }
    .atl-section--sm   { padding: var(--space-xl) 0; }
    .atl-hero, #hero   { padding: var(--space-3xl) 0 var(--space-2xl); }
    .atl-hero h1       { font-size: 1.75rem; }
    .atl-section-title { font-size: 1.5rem; }
    .atl-grid-2,
    .atl-grid-3,
    .atl-grid-4,
    .atl-grid-60-40,
    .atl-grid-40-60    { grid-template-columns: 1fr; gap: var(--space-md); }
    .atl-stats-row     { grid-template-columns: repeat(2, 1fr); }
    .atl-cta           { padding: var(--space-2xl) var(--space-md); border-radius: var(--radius-lg); }
    .atl-container,
    .atl-container--narrow,
    .atl-container--wide { padding: 0 var(--space-md); }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.25rem; }
    .main-header-bar { box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15); }
}

@media (max-width: 480px) {
    .atl-stats-row     { grid-template-columns: 1fr; }
    .atl-hero-btns     { flex-direction: column; align-items: center; }
    .g-cards-grid      { grid-template-columns: 1fr; }
}
