/* -------------------------------------------------- */
/* 1. CONFIGURATION & RESET */
/* -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@400;600;700;800&display=swap');

:root {
  --gc-content-w: 1100px;
  --gc-header-w: 96%;
  --gc-pad: 30px;
  --gc-grad-a: #ff4b66;
  --gc-grad-b: #ff8a3d;
  --gc-topbar-h: 90px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

.skip-link, .screen-reader-text, body::before, body::after { display: none !important; }
html, body { margin: 0; padding: 0; font-family: var(--font-body) !important; background: #fff; color: #333; }
h1, h2, h3, h4, .menu-btn { font-family: var(--font-head) !important; }

/* -------------------------------------------------- */
/* 2. HEADER */
/* -------------------------------------------------- */
.gc-topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 99999;
  background: transparent; border-bottom: none !important;
  transition: background 0.3s ease;
}
.gc-topbar.is-scrolled {
  background: linear-gradient(90deg, rgba(255, 75, 102, 0.98), rgba(255, 138, 61, 0.98));
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
body.admin-bar .gc-topbar { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .gc-topbar { top: 46px !important; } }

.gc-topbar__inner {
  width: var(--gc-header-w); max-width: 1800px;
  margin: 0 auto; padding: 0 var(--gc-pad);
  display: flex; align-items: center; 
  height: var(--gc-topbar-h);
  gap: 20px; 
}

/* --- LOGO --- */
.gc-brand { flex-shrink: 0; display: flex; align-items: center; }
.custom-logo { 
    height: 65px !important; width: auto !important; 
    max-width: 260px; object-fit: contain;
    max-height: none !important; 
    padding: 5px 0; display: block;
}
.gc-brand__link span { display: none !important; }

/* --- MENU DESKTOP --- */
.gc-nav { flex: 1; display: flex; justify-content: center; }
.gc-menu { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; align-items: center; }

.gc-menu > li { position: relative; padding: 15px 0; }
.gc-menu > li > a { font-weight: 600; font-size: 15px; color: #fff !important; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,0.1); white-space: nowrap; }
.gc-menu > li > a:hover { opacity: 0.8; }

/* Sous-Menu */
.gc-menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 220px; padding: 12px 0;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1000;
}
.gc-menu .sub-menu::before {
    content: ""; position: absolute; top: -6px; left: 20px;
    border-width: 0 6px 6px 6px; border-style: solid; border-color: transparent transparent #fff transparent;
}
.gc-menu li:hover .sub-menu { display: block; animation: slideUp 0.2s ease-out forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.gc-menu .sub-menu li { width: 100%; display: block; margin:0; padding:0; }
.gc-menu .sub-menu a { display: block; color: #333 !important; padding: 8px 25px; text-shadow: none; font-size: 14px; text-align: left; white-space: nowrap; }
.gc-menu .sub-menu a:hover { background: #f8f9fa; color: var(--gc-grad-a) !important; }


/* --- DROITE (Recherche, Langue, CTA) --- */
.gc-right-area { display: flex; align-items: center; gap: 20px; justify-content: flex-end; }

/* Recherche */
.search-wrap { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 40px; width: auto; }
.search-wrap form { margin: 0; padding: 0; display: block; }

.search-input {
    width: 0px !important; height: 40px !important; padding: 0 !important;
    border: none !important; background: #fff; opacity: 0;
    position: absolute; right: 0; top: 0;
    color: #000 !important; font-size: 15px; border-radius: 25px; 
    pointer-events: none; z-index: 100;
    max-width: none !important; min-width: 0 !important; box-sizing: border-box !important;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.search-wrap.active .search-input { 
    width: 280px !important; opacity: 1 !important; padding: 0 50px 0 20px !important; 
    border: 1px solid #ccc !important; background: #ffffff !important;
    pointer-events: auto !important; cursor: text !important;
}
.search-input:focus { outline: none; }

.search-toggle { 
    background: transparent !important; border: none !important; cursor: pointer; padding: 0;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 101;
}
.search-toggle svg { width: 22px; height: 22px; fill: #fff; transition: fill 0.3s; }
.search-wrap.active .search-toggle svg { fill: #555; }

/* Langue & CTA */
/* --- FIX WIDGET LANGUE --- */
.gc-lang {
    display: flex;
    align-items: center;
}

/* On cible le Widget Polylang (Classique ou Bloc) */
.gc-lang ul,
.gc-lang .widget_polylang ul,
.gc-lang .wp-block-polylang-language-switcher {
    display: flex !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gc-lang li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

/* Style des drapeaux */
.gc-lang img {
    display: block;
    height: 16px;
    width: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.gc-lang a:hover img {
    transform: scale(1.1);
}

/* Si jamais du texte s'affiche, on le stylise */
.gc-lang a {
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.menu-cta { display: flex; gap: 10px; margin-left: 5px; }
.menu-btn { padding: 9px 20px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 13px; transition: 0.2s; white-space: nowrap; }
.menu-btn--ghost { border: 1px solid rgba(255,255,255,0.6); color: #fff !important; background: transparent; }
.menu-btn--ghost:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.menu-btn--solid { background: #fff; color: var(--gc-grad-a) !important; border: 1px solid #fff; }
.menu-btn--solid:hover { background: #f2f2f2; transform: translateY(-1px); }

/* --- HERO --- */
.gc-hero {
  position: relative;
  background-image: url('../background-blog-GC.jpg'); 
  background-size: cover; background-position: center top; background-color: var(--gc-grad-a);
  padding-top: var(--gc-topbar-h); padding-bottom: 80px; overflow: hidden;
}
.gc-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 75, 102, 0.4), rgba(255, 138, 61, 0.4));
  mix-blend-mode: overlay; z-index: 1;
}
.gc-hero__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding-top: 60px; text-align: center; color: #fff; }
.gc-hero__title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.1; margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.15); }

/* --- LAYOUT GLOBAL --- */
.gc-article__inner { max-width: var(--gc-content-w); margin: 0 auto; padding: 60px 20px; display: flex; gap: 60px; }
.gc-main-column { flex: 1; }
.gc-share { position: sticky; top: 120px; height: fit-content; display: flex; flex-direction: column; gap: 15px; }
.gc-share__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; color: #999; text-decoration: none; }
.site-footer { background: #111; color: #bbb; padding: 70px 0 40px; font-size: 14px; margin-top: 0; }
.gc-footer-inner { width: var(--gc-header-w); max-width: 1800px; margin: 0 auto; padding: 0 20px; }


/* -------------------------------------------------- */
/* 3. MOBILE TOGGLE & DRAWER */
/* -------------------------------------------------- */
.gc-burger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 20px; background: none; border: none; padding: 0; cursor: pointer; z-index: 100002;
}
.gc-burger span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

.gc-mobile-drawer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #111; z-index: 100000;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding-top: 100px; box-sizing: border-box;
}
.gc-mobile-drawer.open { transform: translateX(0); }
.gc-mobile-content { padding: 0 40px; }
.gc-mobile-list { list-style: none; padding: 0; margin: 0; }
.gc-mobile-list li { margin-bottom: 20px; text-align: center; }
.gc-mobile-list a { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; display: block; }
.gc-mobile-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; margin-bottom: 30px; }
.gc-mobile-actions .menu-btn { width: 100%; text-align: center; max-width: 200px; }
.gc-mobile-lang ul { justify-content: center; display: flex; gap: 15px; padding:0; list-style:none; }
.gc-mobile-lang a { color: #888; text-decoration:none; font-weight:bold; }

.gc-drawer-close {
    position: absolute; top: 25px; right: 25px; 
    background: transparent; border: none; cursor: pointer; padding: 10px;
    z-index: 100003; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}
.gc-drawer-close svg { width: 32px; height: 32px; fill: #fff; pointer-events: none; }
.gc-drawer-close:hover { transform: rotate(90deg); }

body.mobile-menu-open .gc-burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
body.mobile-menu-open .gc-burger span:nth-child(2) { opacity: 0; }
body.mobile-menu-open .gc-burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- SOUS-MENU MOBILE --- */
.gc-mobile-list .sub-menu {
    list-style: none !important; padding: 10px 0 !important;
    margin: 10px auto 20px auto !important; 
    background: rgba(255,255,255,0.08); border-radius: 8px;
    width: fit-content; min-width: 200px; 
}
.gc-mobile-list .sub-menu li { margin-bottom: 0 !important; }
.gc-mobile-list .sub-menu a {
    font-size: 16px !important; font-weight: 400 !important;
    color: #ddd !important; padding: 8px 15px !important; display: block;
}
.gc-mobile-list .sub-menu a:hover { color: #fff !important; background: rgba(255,255,255,0.05); }


/* --- RESPONSIVE TRIGGER --- */
@media (max-width: 1250px) {
    .gc-nav, .gc-right-area { display: none !important; }
    .gc-burger { display: flex; }
    .gc-topbar__inner { justify-content: space-between; }
    .gc-article__inner { flex-direction: column; }
    .gc-share { flex-direction: row; position: static; margin-bottom: 30px; }
}


/* -------------------------------------------------- */
/* 4. FIX PAGES CATÉGORIES / ARCHIVES */
/* -------------------------------------------------- */
#menu-primary, .menu-primary, .menu-primary-container { display: none !important; }

body.archive, body.category, body.search { padding-top: 130px !important; }

body.archive .page-header, body.category .page-header {
    margin-top: 0 !important; margin-bottom: 40px !important; text-align: center;
}

.archive #content, .category #content { border-top: none !important; }

body.archive .gc-topbar, body.category .gc-topbar, body.search .gc-topbar {
    background: linear-gradient(90deg, #ff4b66, #ff8a3d) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body.archive, body.category, body.search,
body.archive #page, body.category #page {
    background: #fff !important; background-image: none !important;
}

body.archive .page-header, body.category .page-header {
    margin-bottom: 50px !important; padding-top: 20px;
}
body.archive .page-title, body.category .page-title {
    color: #333; font-family: 'Poppins', sans-serif; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
}

/* -------------------------------------------------- */
/* 5. HOME : GRILLE & CARTES */
/* -------------------------------------------------- */
.gc-home__inner {
    max-width: 1100px; margin: 0 auto; padding: 60px 20px; width: 100%;
}

.gc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px;
}

.gc-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.gc-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.gc-card__thumb { display: block; height: 220px; overflow: hidden; position: relative; }
.gc-card__thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gc-card:hover .gc-card__thumb img { transform: scale(1.05); }

.gc-card__body { padding: 25px; display: flex; flex-direction: column; flex: 1; }

.gc-card__title { font-size: 20px; margin: 0 0 15px 0; line-height: 1.3; }
.gc-card__title a { color: #111; text-decoration: none; transition: color 0.2s; }
.gc-card__title a:hover { color: var(--gc-grad-a); }

.gc-card__meta { font-size: 12px; color: #999; margin-bottom: 15px; text-transform: uppercase; font-weight: 600; }
.gc-card__excerpt { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 20px; }


/* -------------------------------------------------- */
/* 6. PAGINATION (UNIFIÉE) */
/* -------------------------------------------------- */
.navigation.pagination, .gc-pagination { margin-top: 60px; text-align: center; }
.nav-links { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.page-numbers, 
a.prev.page-numbers, 
a.next.page-numbers {
    display: inline-flex !important; align-items: center; justify-content: center;
    min-width: 40px; height: 40px !important; padding: 0 10px;
    background: #fff !important; 
    border: 1px solid #eee !important;
    color: #555 !important; 
    font-weight: 700; text-decoration: none; 
    border-radius: 50%;
    transition: all 0.2s ease;
}

.next.page-numbers, .prev.page-numbers,
a.prev.page-numbers, a.next.page-numbers {
    border-radius: 20px !important; padding: 0 20px !important; width: auto;
}

.page-numbers.current {
    background: linear-gradient(135deg, var(--gc-grad-a), var(--gc-grad-b)) !important;
    color: #fff !important; border: none !important;
    box-shadow: 0 4px 10px rgba(255, 75, 102, 0.3);
}

.page-numbers:not(.current):not(.dots):hover,
a.prev.page-numbers:hover,
a.next.page-numbers:hover {
    background: linear-gradient(90deg, #ff4b66, #ff8a3d) !important;
    color: #fff !important; border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(255, 75, 102, 0.3);
    transform: translateY(-2px);
}


/* -------------------------------------------------- */
/* 7. NEWSLETTER JETPACK */
/* -------------------------------------------------- */
.gc-footer-newsletter {
    background: #f8f9fa; border-top: 1px solid #eee; 
    padding: 60px 20px; text-align: center;
}

.jetpack_subscription_widget { max-width: 500px; margin: 0 auto; }
.jetpack_subscription_widget label.screen-reader-text { display: none; }
.jetpack_subscription_widget #subscribe-text { margin-bottom: 20px; color: #666; font-size: 15px; line-height: 1.5; }

.jetpack_subscription_widget input[type="email"] {
    width: 100%; padding: 15px 20px;
    border: 1px solid #ddd; border-radius: 30px; 
    background: #fff; font-size: 15px; margin-bottom: 15px; box-sizing: border-box; 
    text-align: center; outline: none; transition: border 0.3s;
}
.jetpack_subscription_widget input[type="email"]:focus { border-color: var(--gc-grad-a); }

.jetpack_subscription_widget button[type="submit"] {
    background: linear-gradient(90deg, #ff4b66, #ff8a3d) !important;
    color: #fff !important; border: none !important;
    padding: 12px 30px !important; border-radius: 30px !important;
    font-size: 16px !important; font-weight: 700 !important; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: auto; min-width: 180px;
}
.jetpack_subscription_widget button[type="submit"]:hover {
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 75, 102, 0.4);
}

/* -------------------------------------------------- */
/* FIX FINAL : FOOTER & WIDGETS (VERSION LARGE & LOGO) */
/* -------------------------------------------------- */

/* 1. CONTENEUR PRINCIPAL */
.site-footer, 
#colophon {
    background-color: #111 !important;
    color: #bbb !important;
    padding: 80px 0 40px !important; /* Un peu plus d'espace en haut */
    font-size: 14px;
}

.gc-footer-inner {
    /* CORRECTION LARGEUR : On passe de 1100px à 94% pour écarter les colonnes */
    width: 94% !important; 
    max-width: 1600px !important; /* Limite pour les écrans géants */
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. LA GRILLE (4 Colonnes) */
.gc-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important; /* Gap réduit car les colonnes sont plus larges */
    margin-bottom: 60px !important;
    align-items: start !important;
}

/* 3. LES TITRES (H4 - CORRECTION TYPO) */
.gc-footer-grid h4,
.gc-widget-title {
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    /* CORRECTION GRAISSE : 800 pour retrouver l'aspect Logo */
    font-weight: 800 !important; 
    font-size: 19px !important;   /* Un poil plus grand */
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

/* 4. NETTOYAGE DES LISTES */
.gc-footer-grid ul,
.gc-footer-grid ol,
ul.wp-block-categories-list,
ul.wp-block-latest-posts__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 5. ÉLÉMENTS DE LISTE */
.gc-footer-grid li,
.wp-block-categories-list li,
.wp-block-latest-posts__list li {
    margin-bottom: 12px !important;
    padding: 0 !important;
    border: none !important;
    list-style-type: none !important;
}

/* 6. LIENS */
.gc-footer-grid a,
.wp-block-latest-posts__post-title {
    color: #bbb !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.5;
    font-weight: normal !important;
    font-size: 14px !important;
}

.gc-footer-grid a:hover,
.wp-block-latest-posts__post-title:hover {
    color: #fff !important;
    transform: translateX(5px);
}

/* 7. LE BOUTON "GET STARTED" */
a.gc-footer-btn {
    background: #fff !important;
    color: #111 !important;
    font-weight: 800 !important; /* Plus gras aussi */
    padding: 14px 28px !important; /* Un peu plus gros */
    border-radius: 6px !important;
    margin-top: 10px !important;
    text-align: center !important;
    display: inline-block !important;
    width: auto !important;
    transform: none; 
    font-family: 'Poppins', sans-serif !important;
}

a.gc-footer-btn:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255,255,255,0.2) !important;
    color: #000 !important;
}

/* 8. RESPONSIVE MOBILE */
@media (max-width: 1024px) {
    .gc-footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 40px !important; }
}
@media (max-width: 600px) {
    .gc-footer-grid { grid-template-columns: 1fr !important; }
    .site-footer { text-align: center !important; }
}
/* --- HEADER ARTICLE MODERNE (FIX DEFINITIF) --- */

/* Conteneur global */
.gc-single-meta {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px; 
}

/* Groupe Avatar + Texte */
.gc-meta-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre Avatar et Texte */
}

/* AVATAR ROND */
.gc-author-avatar img {
    border-radius: 50% !important; /* Force le cercle */
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    display: block;
    margin: 0;
    border: 1px solid #eee; /* Petite bordure propre */
}

/* TEXTES (Nom et Date empilés) */
.gc-meta-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

.gc-author-name,
.gc-author-name a {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #111;
    text-decoration: none;
}

.gc-meta-date {
    font-size: 13px;
    color: #888; /* Gris doux pour la date */
    font-weight: 400;
}

/* SÉPARATEUR DISCRET */
.gc-meta-separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0 0 40px 0;
    width: 100%;
    display: block;
}

/* CSS Icônes de partage (SVG) */
.gc-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    color: #888;
    transition: all 0.2s;
}
.gc-share__btn:hover {
    background: #f0f0f0;
    color: var(--gc-grad-a); /* Devient rouge au survol */
}