/*
Theme Name:   TonGuideIA Child
Theme URI:    https://tonguideia.fr
Description:  Thème enfant GeneratePress — tonguideia.fr
Author:       Youssef
Template:     generatepress
Version:      2.0.0
Text Domain:  tonguideia-child
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Lora:ital@0;1&display=swap');

:root {
  --tg-navy:#0D1B3E; --tg-navy-2:#1a3268; --tg-blue:#4EA8DE;
  --tg-blue-dark:#2a7fb5; --tg-bg:#F8FAFC; --tg-white:#FFFFFF;
  --tg-border:#E2E8F0; --tg-text:#1A202C; --tg-muted:#718096;
  --tg-radius:12px; --tg-radius-sm:8px;
}
*,*::before,*::after{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:'Sora',sans-serif;background:var(--tg-bg);color:var(--tg-text);font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased}

body.home #page.site,
body.home #main.site-main,
body.home .site-content,
body.home .inside-site-content,
body.home .content-area,
body.home .grid-container,
body.blog #page.site,
body.blog #main.site-main,
body.blog .site-content,
body.blog .inside-site-content,
body.blog .content-area,
body.blog .grid-container{width:100%;max-width:100%;margin:0;padding:0}

/* HEADER CUSTOM */
.tg-header{position:sticky;top:0;z-index:120;background:rgba(13,27,62,0.96);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,0.08)}
.tg-header-inner{max-width:1160px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:20px}
.tg-logo{display:inline-flex;align-items:center;gap:4px;color:#fff;font-size:36px;font-weight:700;line-height:1;text-decoration:none;letter-spacing:-0.4px;white-space:nowrap}
.tg-logo span{color:var(--tg-blue)}
.tg-logo:hover{color:#fff;text-decoration:none}
.tg-logo-image .custom-logo-link{display:inline-flex;line-height:1}
.tg-logo-image .custom-logo{max-height:42px;width:auto}

.tg-nav{margin-left:auto}
.tg-nav-menu{margin:0;padding:0;list-style:none;display:flex;align-items:center;gap:26px}
.tg-nav-menu li{margin:0}
.tg-nav-menu li a{color:rgba(255,255,255,0.78);font-size:16px;font-weight:500;text-decoration:none;transition:color 0.18s}
.tg-nav-menu li a:hover,.tg-nav-menu li.current-menu-item>a,.tg-nav-menu li.current_page_item>a{color:#fff}

.tg-header-cta{display:inline-flex;align-items:center;justify-content:center;background:var(--tg-blue);color:#fff;text-decoration:none;font-size:15px;font-weight:600;padding:10px 20px;border-radius:10px;transition:background 0.2s,transform 0.18s}
.tg-header-cta:hover{background:var(--tg-blue-dark);color:#fff;transform:translateY(-1px);text-decoration:none}

.tg-burger{display:none;border:1px solid rgba(255,255,255,0.2);background:transparent;border-radius:10px;padding:10px;width:42px;height:42px;align-items:center;justify-content:center;cursor:pointer}
.tg-burger span{display:block;width:18px;height:2px;background:#fff;border-radius:999px;transition:transform 0.18s,opacity 0.18s}
.tg-burger span+span{margin-top:4px}
.tg-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.tg-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.tg-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.tg-mobile-menu{display:none;border-top:1px solid rgba(255,255,255,0.08);background:var(--tg-navy)}
.tg-mobile-menu.is-open{display:block}
.tg-mobile-nav-menu{list-style:none;margin:0;padding:12px 20px 16px}
.tg-mobile-nav-menu li{margin:0}
.tg-mobile-nav-menu a{display:block;padding:10px 6px;color:rgba(255,255,255,0.86);text-decoration:none;font-size:15px;border-bottom:1px solid rgba(255,255,255,0.05)}

/* HEADER */
.site-header{background:var(--tg-navy)!important;border-bottom:none!important}
.site-header .site-title a{color:#fff!important;font-weight:700;font-size:19px}
.main-navigation .menu>li>a{color:rgba(255,255,255,0.8)!important;font-size:14px;font-weight:500}
.main-navigation .menu>li>a:hover,.main-navigation .menu>li.current-menu-item>a{color:#fff!important}
.menu-item-cta>a{background:var(--tg-blue)!important;color:#fff!important;border-radius:var(--tg-radius-sm)!important;font-weight:600!important;padding:8px 18px!important}
.menu-toggle{color:#fff!important;border:1px solid rgba(255,255,255,0.25)!important;border-radius:var(--tg-radius-sm)!important}

/* HERO */
.tg-hero{background:linear-gradient(135deg,var(--tg-navy) 0%,var(--tg-navy-2) 100%);padding:72px 24px 56px;text-align:center;width:100%}
.tg-hero-inner{max-width:640px;margin:0 auto}
.tg-hero-tag{display:inline-block;background:rgba(78,168,222,0.15);color:var(--tg-blue);border:1px solid rgba(78,168,222,0.3);border-radius:20px;font-size:11px;font-weight:600;padding:4px 14px;letter-spacing:0.8px;text-transform:uppercase;margin-bottom:20px}
.tg-hero h1{color:#fff;font-size:clamp(30px,5vw,52px);font-weight:700;line-height:1.15;margin:0 auto 18px;letter-spacing:-0.6px}
.tg-hero h1 em{color:var(--tg-blue);font-style:normal}
.tg-hero .hero-desc{color:rgba(255,255,255,0.72);font-size:18px;line-height:1.65;margin:0 auto 34px;max-width:760px}
.tg-hero-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.tg-btn-primary{background:var(--tg-blue);color:#fff;padding:13px 26px;border-radius:10px;font-size:16px;font-weight:600;text-decoration:none;transition:background 0.2s,transform 0.15s;display:inline-block}
.tg-btn-primary:hover{background:var(--tg-blue-dark);color:#fff;text-decoration:none;transform:translateY(-1px)}
.tg-btn-ghost{background:transparent;color:#fff;padding:12px 24px;border-radius:10px;border:1px solid rgba(255,255,255,0.28);font-size:16px;font-weight:500;text-decoration:none;transition:all 0.2s;display:inline-block}
.tg-btn-ghost:hover{border-color:rgba(255,255,255,0.6);background:rgba(255,255,255,0.06);color:#fff;text-decoration:none}
.tg-hero-stats{display:flex;justify-content:center;gap:40px;margin-top:40px;padding-top:28px;border-top:1px solid rgba(255,255,255,0.08);flex-wrap:wrap}
.tg-stat{text-align:center}
.tg-stat-num{color:#fff;font-size:30px;font-weight:700;line-height:1}
.tg-stat-label{color:rgba(255,255,255,0.54);font-size:14px;margin-top:4px}

/* PAGE WRAPPER */
.tg-page-wrapper,.tg-page-wrap{max-width:1160px;margin:0 auto;padding:42px 24px 48px}

/* FILTRE CATS */
.tg-cat-filter{margin-bottom:36px}
.tg-cat-filter-label{font-size:38px;font-weight:700;line-height:1.15;letter-spacing:-0.4px;color:var(--tg-text);margin-bottom:18px}
.tg-cats{display:flex;gap:8px;flex-wrap:wrap}
.tg-cat{background:#efefe8;border:1px solid #d5d7da;border-radius:999px;padding:8px 16px;font-size:16px;color:#4a5568;text-decoration:none;font-weight:500;transition:all 0.18s}
.tg-cat:hover,.tg-cat.active{background:var(--tg-navy);color:#fff;border-color:var(--tg-navy);text-decoration:none}
.tg-cat-count{opacity:0.65;font-size:13px}

/* SECTION HEADER */
.tg-section-header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px}
.tg-section-title{font-size:34px;font-weight:700;color:var(--tg-text);margin:0;letter-spacing:-0.3px}
.tg-section-link{font-size:16px;color:var(--tg-blue);text-decoration:none;font-weight:500}

/* GRILLE */
.tg-articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:960px){.tg-articles-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.tg-articles-grid{grid-template-columns:1fr}}

/* CARD */
.tg-card{background:var(--tg-white);border:0.5px solid var(--tg-border);border-radius:var(--tg-radius);overflow:hidden;transition:box-shadow 0.22s,transform 0.18s;display:flex;flex-direction:column}
.tg-card:hover{box-shadow:0 8px 32px rgba(13,27,62,0.12);transform:translateY(-3px)}
.tg-card-img-link{display:block;overflow:hidden}
.tg-card-img{width:100%;height:220px;object-fit:cover;display:block;transition:transform 0.35s}
.tg-card:hover .tg-card-img{transform:scale(1.04)}
.tg-card-img-placeholder{width:100%;height:220px;background:var(--tg-navy);display:flex;align-items:center;justify-content:center}
.tg-card-img-placeholder span{color:var(--tg-blue);font-size:52px;font-weight:700;opacity:0.6}
.tg-card-body{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
.tg-card-category{display:inline-block;background:rgba(78,168,222,0.1);color:var(--tg-blue);font-size:12px;font-weight:600;padding:4px 10px;border-radius:20px;margin-bottom:10px;text-decoration:none;width:fit-content;transition:all 0.18s}
.tg-card-category:hover{background:var(--tg-blue);color:#fff;text-decoration:none}
.tg-card-title{font-size:27px;font-weight:700;line-height:1.35;margin:0 0 10px;letter-spacing:-0.2px}
.tg-card-title a{color:var(--tg-text);text-decoration:none}
.tg-card-title a:hover{color:var(--tg-blue)}
.tg-card-meta{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--tg-muted);margin-bottom:10px}
.tg-dot{width:4px;height:4px;border-radius:50%;background:var(--tg-muted);display:inline-block}
.tg-card-excerpt{font-size:16px;color:var(--tg-muted);line-height:1.6;margin:0 0 14px;flex:1}
.tg-read-more{font-size:15px;font-weight:600;color:var(--tg-blue);text-decoration:none;display:inline-flex;align-items:center;gap:4px;transition:gap 0.18s;margin-top:auto}
.tg-read-more:hover{gap:8px;color:var(--tg-blue-dark);text-decoration:none}
.tg-no-posts{grid-column:1/-1;text-align:center;padding:48px;color:var(--tg-muted)}

/* NEWSLETTER */
.tg-newsletter-section{max-width:1160px;margin:0 auto 48px;background:#dfe8f6;border-radius:20px;padding:44px 24px;text-align:center}
.tg-newsletter-section h2{color:var(--tg-navy);font-size:36px;font-weight:700;margin-bottom:10px;letter-spacing:-0.3px}
.tg-newsletter-section>p{color:#4a5568;font-size:18px;max-width:820px;margin:0 auto 24px;line-height:1.65}
.tg-nl-form{display:flex;gap:12px;max-width:760px;margin:0 auto;flex-wrap:wrap;justify-content:center}
.tg-nl-form input[type="email"]{flex:1;min-width:280px;padding:14px 16px;border:1px solid #c7d0e2;border-radius:10px;background:#fff;color:#1a202c;font-size:18px;font-family:'Sora',sans-serif;outline:none}
.tg-nl-form input[type="email"]::placeholder{color:#6b7280}
.tg-nl-form input[type="email"]:focus{border-color:var(--tg-blue)}
.tg-nl-form button{background:#fff;color:#1a202c;padding:13px 24px;border-radius:10px;font-size:18px;font-weight:600;border:1px solid #adb9d0;cursor:pointer;font-family:'Sora',sans-serif}
.tg-nl-form button:hover{background:#f8fbff}
.tg-nl-notice,.tg-nl-note{font-size:14px;color:#5f6b84;margin-top:12px}

/* FOOTER */
.site-footer{background:var(--tg-navy)!important;color:rgba(255,255,255,0.5)!important;border-top:none!important}
.site-footer .inside-footer{max-width:1160px;margin:0 auto;padding:48px 24px 28px}
.tg-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.tg-footer-brand{color:#fff;font-size:18px;font-weight:700;margin-bottom:10px}
.tg-footer-brand span{color:var(--tg-blue)}
.tg-footer-desc{color:rgba(255,255,255,0.45);font-size:13.5px;line-height:1.65}
.tg-footer-col-title{color:rgba(255,255,255,0.6);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.6px;margin-bottom:14px}
.tg-footer-col a{display:block;color:rgba(255,255,255,0.45)!important;font-size:13.5px;text-decoration:none;margin-bottom:8px;transition:color 0.18s}
.tg-footer-col a:hover{color:rgba(255,255,255,0.85)!important}
.tg-footer-bottom{border-top:1px solid rgba(255,255,255,0.07);padding-top:22px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:12.5px;color:rgba(255,255,255,0.28)}

.tg-footer{background:var(--tg-navy);color:rgba(255,255,255,0.5)}
.tg-footer-inner{max-width:1160px;margin:0 auto;padding:48px 24px 28px}
.tg-footer .tg-footer-logo{color:#fff;font-size:30px;font-weight:700;margin-bottom:12px;letter-spacing:-0.3px}
.tg-footer .tg-footer-logo span{color:var(--tg-blue)}
.tg-footer .tg-footer-desc{color:rgba(255,255,255,0.5);font-size:16px;line-height:1.65}
.tg-footer .tg-footer-col-title{color:rgba(255,255,255,0.72);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:0.6px;margin-bottom:14px}
.tg-footer .tg-footer-col a{display:block;color:rgba(255,255,255,0.55);font-size:15px;text-decoration:none;margin-bottom:8px;transition:color 0.18s}
.tg-footer .tg-footer-col a:hover{color:#fff}
.tg-footer .tg-footer-bottom{border-top:1px solid rgba(255,255,255,0.1);padding-top:22px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;color:rgba(255,255,255,0.35)}

/* SINGLE */
.single .entry-title{font-size:clamp(22px,3.5vw,34px)!important;font-weight:700!important;line-height:1.22!important;color:var(--tg-navy)!important}
.single .entry-content{font-size:16px;line-height:1.78;color:#2D3748}
.single .entry-content h2{font-size:22px;font-weight:700;color:var(--tg-navy);margin:40px 0 16px;padding-bottom:8px;border-bottom:2px solid var(--tg-border)}
.single .entry-content a{color:var(--tg-blue)}
.tg-affiliate-box{background:linear-gradient(135deg,var(--tg-navy) 0%,var(--tg-navy-2) 100%);border-radius:var(--tg-radius);padding:24px 28px;margin:36px 0;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.tg-affiliate-box .tg-aff-text{flex:1;min-width:200px}
.tg-affiliate-box .tg-aff-text strong{color:#fff;font-size:15px;display:block;margin-bottom:4px}
.tg-affiliate-box .tg-aff-text span{color:rgba(255,255,255,0.65);font-size:13px}

/* RESPONSIVE */
@media(max-width:1100px){
  .tg-cat-filter-label{font-size:30px}
  .tg-section-title{font-size:30px}
  .tg-card-title{font-size:26px}
  .tg-card-excerpt{font-size:15px}
  .tg-footer .tg-footer-logo{font-size:30px}
  .tg-footer .tg-footer-desc,.tg-footer .tg-footer-col a,.tg-footer .tg-footer-col-title{font-size:15px}
  .tg-newsletter-section h2{font-size:36px}
  .tg-newsletter-section>p{font-size:18px}
  .tg-nl-form input[type="email"],.tg-nl-form button{font-size:16px}
}

@media(max-width:960px){
  .tg-header-inner{padding:12px 16px}
  .tg-nav,.tg-header-cta{display:none}
  .tg-burger{display:inline-flex;margin-left:auto}
  .tg-hero{padding:48px 20px 40px}
  .tg-hero h1{font-size:clamp(30px,9vw,46px)}
  .tg-hero .hero-desc{font-size:17px}
  .tg-btn-primary,.tg-btn-ghost{font-size:15px;padding:12px 18px}
  .tg-stat-num{font-size:30px}
  .tg-stat-label{font-size:14px}
  .tg-page-wrapper,.tg-page-wrap{padding:34px 16px 32px}
  .tg-cat-filter-label{font-size:30px;margin-bottom:14px}
  .tg-cat{font-size:15px;padding:9px 14px}
  .tg-cat-count{font-size:13px}
  .tg-section-title{font-size:32px}
  .tg-section-link{font-size:16px}
  .tg-card-img,.tg-card-img-placeholder{height:190px}
  .tg-card-body{padding:16px}
  .tg-card-category{font-size:12px}
  .tg-card-title{font-size:20px}
  .tg-card-meta{font-size:13px}
  .tg-card-excerpt{font-size:14px}
  .tg-read-more{font-size:14px}
  .tg-newsletter-section{margin:0 16px 38px;padding:34px 16px}
  .tg-newsletter-section h2{font-size:30px}
  .tg-newsletter-section>p{font-size:16px}
  .tg-nl-form input[type="email"],.tg-nl-form button{font-size:16px}
  .tg-footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .tg-footer .tg-footer-bottom{font-size:14px}
}

@media(max-width:560px){
  .tg-logo{font-size:26px}
  .tg-footer-grid{grid-template-columns:1fr}
  .tg-hero-stats{gap:24px}
  .tg-section-header{gap:8px;align-items:center}
  .tg-section-title{font-size:28px}
  .tg-section-link{font-size:15px}
}
