/* =========================================================
   GNA DIGITAL — feuille de style principale
   Tokens : couleurs, typographies, espacements
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* Couleurs */
  --ink:        #16130F;
  --ink-soft:   #4A4640;
  --paper:      #FBF8F4;
  --surface:    #F1EAE0;
  --surface-2:  #EAE1D3;
  --line:       #E1D7C6;
  --orange-1:   #FF8A2B;
  --orange-2:   #E63312;
  --blue:       #1E3FA0;
  --blue-dark:  #142B72;
  --white:      #FFFFFF;

  --grad-brand: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 100%);

  /* Typo */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Rythme */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --container: 1180px;
  --shadow-1: 0 2px 10px rgba(22,19,15,0.06);
  --shadow-2: 0 18px 44px rgba(22,19,15,0.14);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Eléments réutilisables ---------- */

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: inline-block;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(230,51,18,0.28);
}
.btn-primary:hover{ box-shadow: 0 14px 30px rgba(230,51,18,0.36); }
.btn-dark{
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover{ background: var(--blue-dark); }
.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--white); }
.btn-block{ width: 100%; }

.tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
}

.section{ padding: 84px 0; }
.section-tight{ padding: 56px 0; }
.section-alt{ background: var(--surface); }

.section-head{
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Logo mark (SVG maison) ---------- */
.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.logo-mark{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--white);
}
.logo-mark svg{ width: 24px; height: 24px; }
.logo span{ color: var(--orange-2); }

/* ---------- Header / Navigation ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,248,244,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color: var(--ink);
  border-color: var(--orange-2);
}
.nav-actions{ display: flex; align-items: center; gap: 18px; }
.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg{ width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 90px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 14px 0 18px;
}
.hero h1 em{
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede{
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}
.hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta .tag{ background: var(--white); box-shadow: var(--shadow-1); }

/* Visuel héros : logo + bulles flottantes (signature) */
.hero-visual{
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
}
.hero-orb{
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px dashed var(--line);
  display: grid;
  place-items: center;
  position: relative;
}
.hero-orb .logo-mark{
  width: 148px; height: 148px;
  border-width: 3px;
}
.hero-orb .logo-mark svg{ width: 88px; height: 88px; }

.bubble{
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 20px 20px 20px 4px;
  box-shadow: var(--shadow-2);
  animation: float 6s ease-in-out infinite;
}
.bubble span{ font-size: 0.95rem; padding: 0 4px; }
.bubble-1{ top: 4%; left: 2%; width: 96px; height: 64px; animation-delay: 0s; }
.bubble-2{ top: -2%; right: 8%; width: 108px; height: 68px; animation-delay: 1.4s; }
.bubble-3{ bottom: 6%; left: 14%; width: 100px; height: 64px; animation-delay: 2.8s; }
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

/* ---------- Bandeau infos rapides ---------- */
.strip{
  background: var(--ink);
  color: var(--white);
}
.strip .container{
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.strip-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.strip-item svg{ width: 20px; height: 20px; flex-shrink: 0; color: var(--orange-1); }

/* ---------- Cartes formation ---------- */
.grid-formations{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-formation{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-formation:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}
.card-icon{
  width: 52px; height: 52px;
  border-radius: var(--radius-s);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.card-icon svg{ width: 26px; height: 26px; color: var(--orange-2); }
.card-formation h3{ font-size: 1.2rem; margin-bottom: 4px; }
.card-formation p{ color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; flex-grow: 1; }
.card-formation .tag{ align-self: flex-start; }

/* ---------- Piliers / avantages ---------- */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar{
  padding: 28px;
  border-radius: var(--radius-m);
  background: var(--white);
  border: 1px solid var(--line);
}
.pillar .num{
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--orange-2);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pillar h3{ font-size: 1.15rem; margin: 8px 0 8px; }
.pillar p{ color: var(--ink-soft); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- CTA bloc ---------- */
.cta-block{
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-block h2{ color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.cta-block p{ color: #C9C4BB; margin-bottom: 0; max-width: 440px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 26px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-about p{ color: var(--ink-soft); font-size: 0.94rem; max-width: 300px; }
.footer-col h4{
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ font-size: 0.94rem; color: var(--ink); }
.footer-col a:hover{ color: var(--orange-2); }
.footer-social{ display: flex; gap: 12px; margin-top: 6px; }
.footer-social a{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: var(--white);
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover{ background: var(--grad-brand); transform: translateY(-2px); }
.footer-social svg{ width: 17px; height: 17px; }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Page header (sous-pages) ---------- */
.page-hero{
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1{ font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 12px; }
.page-hero p{ color: var(--ink-soft); max-width: 560px; font-size: 1.05rem; margin-bottom: 0; }

/* ---------- À propos ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-visual{
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 40px;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.about-visual .logo-mark{ width: 160px; height: 160px; border-width: 3px; }
.about-visual .logo-mark svg{ width: 96px; height: 96px; }
.stat-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.stat{
  text-align: center;
  padding: 20px 10px;
  border-radius: var(--radius-m);
  background: var(--white);
  border: 1px solid var(--line);
}
.stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--orange-2);
}
.stat span{ font-size: 0.82rem; color: var(--ink-soft); }

.value-list{ display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.value-list li{ display: flex; gap: 14px; align-items: flex-start; list-style: none; }
.value-list .dot{
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}
.contact-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.contact-card .card-icon{ flex-shrink: 0; }
.contact-card h3{ font-size: 1.02rem; margin-bottom: 4px; }
.contact-card p{ margin-bottom: 0; color: var(--ink-soft); font-size: 0.94rem; }
.contact-card a{ color: var(--blue); font-weight: 600; }

.map-frame{
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-top: 16px;
  height: 220px;
}
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

.form-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px;
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--orange-2);
  background: var(--white);
}
.field textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size: 0.84rem; color: var(--ink-soft); margin-top: 10px; }
.form-success{
  display: none;
  align-items: center;
  gap: 10px;
  background: #EAF6EA;
  border: 1px solid #B9DEB9;
  color: #23632B;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-success.show{ display: flex; }

/* ---------- Blog ---------- */
.grid-blog{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-blog{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-blog:hover{ transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card-blog-cover{
  height: 140px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
}
.card-blog-cover svg{ width: 40px; height: 40px; color: rgba(255,255,255,0.85); }
.card-blog-body{ padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-blog-meta{ display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.card-blog-meta .dot-sep{ width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }
.card-blog h3{ font-size: 1.12rem; margin-bottom: 2px; }
.card-blog p{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; flex-grow: 1; }
.card-blog-link{ font-size: 0.88rem; font-weight: 700; color: var(--orange-2); margin-top: 6px; }

.article-header{ max-width: 720px; margin: 0 auto; text-align: left; }
.article-header .tag{ margin-bottom: 14px; }
.article-header h1{ font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article-meta{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

.article-cover{
  max-width: 860px;
  margin: 36px auto 0;
  height: 220px;
  border-radius: var(--radius-l);
  background: var(--grad-brand);
  display: grid;
  place-items: center;
}
.article-cover svg{ width: 56px; height: 56px; color: rgba(255,255,255,0.85); }

.article-body{
  max-width: 680px;
  margin: 40px auto 0;
  font-size: 1.05rem;
}
.article-body h3{
  font-size: 1.2rem;
  margin-top: 1.6em;
}
.article-body p{ color: var(--ink-soft); }
.article-body p:first-of-type{ color: var(--ink); font-size: 1.1rem; }

.article-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.article-back:hover{ color: var(--ink); }

.article-cta{
  max-width: 680px;
  margin: 48px auto 0;
}

/* ---------- FAQ (accordéon) ---------- */
.faq{ max-width: 720px; }
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-q{
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-q svg{ width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-q svg{ transform: rotate(45deg); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p{ padding: 0 4px 20px; color: var(--ink-soft); margin: 0; }

/* ---------- WhatsApp bouton flottant ---------- */
.wa-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform 0.18s ease;
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 28px; height: 28px; color: var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ height: 320px; order: -1; }
  .grid-formations{ grid-template-columns: repeat(2, 1fr); }
  .grid-blog{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    inset: 68px 16px auto 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links a{ padding: 10px 4px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a{ border-bottom: none; }
  .nav-links.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle{ display: inline-flex; }
  .nav-actions .btn-primary{ display: none; }

  .section{ padding: 60px 0; }
  .grid-formations{ grid-template-columns: 1fr; }
  .grid-blog{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .stat-row{ grid-template-columns: 1fr; gap: 12px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 26px; }
  .cta-block{ padding: 36px 26px; flex-direction: column; text-align: center; }
  .form-row{ grid-template-columns: 1fr; }
  .strip .container{ justify-content: center; text-align: center; }
  .bubble{ display: none; }
  .hero-orb{ width: 220px; height: 220px; }
  .hero-orb .logo-mark{ width: 108px; height: 108px; }
  .hero-orb .logo-mark svg{ width: 64px; height: 64px; }
}

@media (max-width: 460px){
  .container{ padding: 0 18px; }
  .hero{ padding: 40px 0 60px; }
}
