/* ==========================================================================
   XINEO SA — Design system
   Palette dérivée du logo (bleu #4297ff / gris #4c4c4c) + accent rouge suisse
   Typo : Space Grotesk (display) / Inter (texte) / Raleway (labels)
   Grille suisse : filets fins, repères "+" (croix), alignements précis
   ========================================================================== */

:root{
  /* Couleurs */
  --blue:        #4297ff;
  --blue-dark:   #2c6fd1;
  --blue-tint:   #eaf2ff;
  --ink:         #1a1d21;
  --slate:       #4c4c4c;
  --slate-soft:  #767b82;
  --fog:         #f4f6f9;
  --line:        #e2e6eb;
  --white:       #ffffff;
  --red:         #d52b1e;

  /* Typo */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'Raleway', sans-serif;

  /* Rythme */
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --header-h: 84px;

  /* Ombres discrètes (usage rare) */
  --shadow-sm: 0 1px 2px rgba(26,29,33,.06);
  --shadow-md: 0 12px 32px rgba(26,29,33,.10);

  --ease: cubic-bezier(.22,.68,0,1);
}

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

body{
  margin:0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5{
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 4.6vw, 4.4rem); font-weight: 600; }
h2{ font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 600; }
h3{ font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4{ font-size: 1.05rem; font-weight: 600; }

p{ margin: 0 0 1.1em; color: var(--slate); }
a{ color: var(--blue); text-decoration: none; }
a:hover{ color: var(--blue-dark); }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }

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

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide{ max-width: 1440px; }

/* Eyebrow / label mono — encode une catégorie, pas une décoration */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.55em;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1em;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: var(--blue);
  display:inline-block;
}

/* Repère "+" — signature graphique, clin d'oeil suisse/technique,
   utilisé aux intersections de filets, jamais en décoration gratuite */
.tick{
  position: relative;
  width: 11px; height: 11px;
  flex: none;
}
.tick::before,.tick::after{
  content:"";
  position:absolute;
  background: var(--line);
}
.tick::before{ left:50%; top:0; width:1px; height:100%; transform:translateX(-50%); }
.tick::after{ top:50%; left:0; height:1px; width:100%; transform:translateY(-50%); }
.tick--accent::before,.tick--accent::after{ background: var(--blue); }

.hairline{
  border: 0; height:1px; background: var(--line); margin:0;
}

/* Boutons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--f-mono);
  font-size:.85rem;
  letter-spacing:.03em;
  padding: .95em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-primary:hover{ background: var(--blue); border-color: var(--blue); color:var(--white); }
.btn-outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover{ border-color: var(--ink); }
.btn-outline--light{ color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-outline--light:hover{ border-color: var(--white); }
.btn-sm{ padding:.6em 1.1em; font-size:.78rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  height: var(--header-h);
  display:flex;
  align-items:center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 2rem;
}
.site-header.is-scrolled,
.site-header.is-solid{
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* État opaque : au scroll, avec classe explicite, ou sur les pages sans hero */
.site-header.is-scrolled,
.site-header.is-solid,
body.page-single .site-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.brand{ display:flex; align-items:center; flex:none; }
.brand img{ height: 60px; width:auto; transition: filter .3s ease; }
.brand svg{ height: 60px; width:auto; }

/* Nav desktop */
.main-nav{ display:flex; }
.main-nav > ul{ display:flex; align-items:center; gap: 2.1rem; }
.main-nav > ul > li{ position:relative; }
.nav-link{
  font-family: var(--f-mono);
  font-size:.82rem;
  letter-spacing:.03em;
  color: var(--ink-nav, var(--ink));
  padding: .5em 0;
  display:inline-flex;
  align-items:center;
  gap:.4em;
  position:relative;
}
.site-header:not(.is-scrolled):not(.is-solid) .nav-link{ color:#fff; }
.nav-link::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width:0; height:1px;
  background: var(--blue);
  transition: width .25s var(--ease);
}
.nav-link:hover::after,
.nav-item.is-open > .nav-link::after{ width:100%; }
.nav-item.has-children > .nav-link .chev{
  width:8px; height:8px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform: rotate(45deg);
  margin-top:-3px;
  transition: transform .2s ease;
}

.nav-cta{ display:flex; align-items:center; gap:1.4rem; }

/* Dropdown niveau 2 (desktop) */
.submenu{
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border:1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  opacity:0;
  visibility:hidden;
  transform: translateY(6px);
  transition: all .2s var(--ease);
}
.nav-item.has-children:hover > .submenu,
.nav-item.has-children.is-open > .submenu{
  opacity:1; visibility:visible; transform:translateY(0);
}
.submenu li{ position:relative; }
.submenu .submenu-link{
  display:flex; align-items:center; justify-content:space-between; gap:.5em;
  padding:.62em .8em;
  font-size:.86rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.submenu .submenu-link:hover{ background: var(--fog); color: var(--blue); }
.submenu-group-label{
  font-family: var(--f-mono);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color: var(--slate-soft);
  padding: .8em .8em .3em;
}
.submenu-group-label:first-child{ padding-top:.4em; }

/* Sous-sous-menu (niveau 3, desktop) : flyout à droite */
.submenu .submenu{
  top: -0.5rem;
  left: 100%;
  margin-left: 4px;
}
.submenu li.has-children > .submenu-link .chev-right{
  width:6px; height:6px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform: rotate(-45deg);
}
.submenu li.has-children:hover > .submenu,
.submenu li.has-children.is-open > .submenu{
  opacity:1; visibility:visible; transform:translateY(0);
}

/* Burger */
.burger{
  display:none;
  width: 40px; height:40px;
  border:0; background:transparent;
  cursor:pointer;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:6px;
  padding:0;
}
.burger span{
  display:block; height:1.5px; width:100%;
  background: currentColor;
  transition: all .3s var(--ease);
}
.site-header:not(.is-scrolled):not(.is-solid) .burger{ color:#fff; }
.site-header:not(.is-scrolled):not(.is-solid) .nav-cta-btn{
  color:#fff;
  border-color: rgba(255,255,255,.35);
}
.site-header:not(.is-scrolled):not(.is-solid) .nav-cta-btn:hover{
  border-color:#fff;
}
.burger span:nth-child(2){ width:70%; }
.burger.is-active span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); width:100%;}
.burger.is-active span:nth-child(2){ opacity:0; }
.burger.is-active span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); width:100%;}

/* Sidebar mobile (droite) */
.sidebar-overlay{
  position:fixed; inset:0;
  background: rgba(26,29,33,.45);
  opacity:0; visibility:hidden;
  transition: opacity .3s ease;
  z-index: 600;
}
.sidebar-overlay.is-open{ opacity:1; visibility:visible; }

.mobile-sidebar{
  position:fixed;
  top:0; right:0; bottom:0;
  width: min(400px, 88vw);
  background: var(--ink);
  color: var(--white);
  z-index: 700;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  overflow-y:auto;
  padding: 1.6rem 1.5rem 3rem;
}
.mobile-sidebar.is-open{ transform: translateX(0); }
.mobile-sidebar-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 1.6rem;
}
.mobile-sidebar-head .brand svg path,
.mobile-sidebar-head .brand img{ filter: brightness(0) invert(1); }
.sidebar-close{
  width:40px;height:40px; border:0; background:transparent; color:#fff; cursor:pointer;
  font-size:1.4rem; line-height:1;
}
.mobile-nav > li{ border-top:1px solid rgba(255,255,255,.12); }
.mobile-nav > li:first-child{ border-top:0; }
.mobile-nav-link{
  display:flex; align-items:center; justify-content:space-between;
  padding: 1em .1em;
  font-family: var(--f-mono);
  font-size:.92rem;
  letter-spacing:.02em;
  color: #fff;
}
.mobile-nav .toggle-arrow{
  width:9px;height:9px;
  border-right:1px solid rgba(255,255,255,.6);
  border-bottom:1px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex:none;
}
.mobile-nav li.is-open > .mobile-nav-link .toggle-arrow{ transform: rotate(225deg); }
.mobile-submenu{
  max-height:0;
  overflow:hidden;
  transition: max-height .3s var(--ease);
  padding-left: .9rem;
  border-left: 1px solid rgba(255,255,255,.12);
  margin-left:.1rem;
}
.mobile-nav li.is-open > .mobile-submenu{ max-height: 900px; }
.mobile-submenu .submenu-group-label{ color: rgba(255,255,255,.45); }
.mobile-submenu .submenu-link{ color: rgba(255,255,255,.85); padding:.7em .3em; font-size:.86rem; }
.mobile-submenu li.has-children > .mobile-submenu{ padding-left:.9rem; }

/* ==========================================================================
   SECTIONS génériques
   ========================================================================== */
.section{ padding: clamp(4rem, 8vw, 7.5rem) 0; position:relative; }
.section--fog{ background: var(--fog); }
.section--dark{ background: var(--ink); color: var(--white); }
.section--dark p{ color: rgba(255,255,255,.68); }
.section--dark h2, .section--dark h3{ color:#fff; }
.section--border-top{ border-top:1px solid var(--line); }

.section-head{
  max-width: 680px;
  margin-bottom: 3rem;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }
.section-head.center .eyebrow::before{ display:none; }

.section-frame{
  position:relative;
}
.section-frame::before,.section-frame::after{
  content:"";
  position:absolute;
  width:11px;height:11px;
}

.last-section{padding-bottom:0px;}


/* Reveal au scroll */
.reveal{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   HERO (page d'accueil)
   ========================================================================== */
.hero{
  position:relative;
  min-height: 100svh;
  display:flex;
  align-items:center;
  color:#fff;
  background: linear-gradient(160deg,#1a1d21 0%,#242833 55%,#1c3a63 100%);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 72%);
  pointer-events:none;
}
.hero-glow{
  position:absolute;
  width: 620px; height:620px;
  right:-140px; top:-160px;
  background: radial-gradient(circle, rgba(66,151,255,.35), transparent 65%);
  filter: blur(10px);
  pointer-events:none;
}
.hero .container{ position:relative; z-index:2; padding-top: var(--header-h); }
.hero-eyebrow{
  font-family: var(--f-mono);
  font-size:.82rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: #9cc2ff;
  display:flex; align-items:center; gap:.7em;
  margin-bottom: 1.6em;
}
.hero-eyebrow .tick::before,.hero-eyebrow .tick::after{ background:#9cc2ff; }
.hero h1{ max-width: 15ch; color:#fff; }
.hero h1 em{ font-style:normal; color: var(--blue); }
.hero-sub{
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 46ch;
  margin: 1.4rem 0 2.4rem;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom: 3.2rem; }
.hero-meta{
  display:flex; flex-wrap:wrap; gap: 2.4rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  max-width: 720px;
}
.hero-meta-item{ font-family: var(--f-mono); }
.hero-meta-item b{ display:block; font-size:1.6rem; color:#fff; font-weight:600; }
.hero-meta-item span{ font-size:.76rem; color: rgba(255,255,255,.55); letter-spacing:.04em; }
.hero-scroll{
  position:absolute; left: var(--gutter); bottom: 2rem;
  display:flex; align-items:center; gap:.7em;
  font-family: var(--f-mono); font-size:.72rem; letter-spacing:.1em;
  color: rgba(255,255,255,.55);
  text-transform:uppercase;
}
.hero-scroll::after{
  content:"";
  width:1px; height:34px;
  background: linear-gradient(#fff, transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse{ 0%,100%{opacity:.25} 50%{opacity:1} }

/* ==========================================================================
   A PROPOS
   ========================================================================== */
.about-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items:start;
}
.about-figure{
  position:relative;
  border:1px solid var(--line);
  padding: 2.2rem;
  background: var(--fog);
}
.about-figure .stat-big{
  font-family: var(--f-display);
  font-size: clamp(3rem,6vw,4.6rem);
  font-weight:600;
  color: var(--ink);
  line-height:1;
}
.about-figure .stat-label{
  font-family: var(--f-mono);
  font-size:.78rem;
  color: var(--slate-soft);
  margin-top:.6rem;
  letter-spacing:.03em;
}
.about-figure .hairline{ margin: 1.6rem 0; }
.about-copy p{ font-size: 1.04rem; }
.about-copy p:first-of-type{ font-size:1.18rem; color: var(--ink); }

/* ==========================================================================
   PRESTATIONS
   ========================================================================== */
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:1px;
  background: var(--line);
  border:1px solid var(--line);
}
.service-card{
  background: var(--white);
  padding: 2.4rem 2.1rem;
  display:flex; flex-direction:column;
  transition: background .3s ease;
}
.service-card:hover{ background: var(--fog); }
.service-index{
  font-family: var(--f-mono);
  font-size:.76rem;
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.service-card h3{ margin-bottom:.6rem; }
.service-card p{ font-size:.94rem; flex:1; }
.service-card .btn{ margin-top:1.4rem; align-self:flex-start; }

/* ==========================================================================
   FORMATIONS
   ========================================================================== */
.formation-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.formation-card{ border:1px solid var(--line); }
.formation-media{
  aspect-ratio: 4/3;
  background: var(--fog);
  overflow:hidden;
}
.formation-media img{ width:100%; height:100%; object-fit:cover; }
.formation-body{ padding: 1.6rem 1.7rem 1.9rem; }
.formation-body h3{ font-size:1.1rem; }
.check-list li{
  display:flex; gap:.7em; align-items:flex-start;
  font-size:.9rem; color: var(--slate);
  padding:.35em 0;
}
.check-list li::before{
  content:"";
  width:6px;height:6px;
  border-radius:50%;
  background: var(--blue);
  margin-top:.55em;
  flex:none;
}

/* Counters */
.counter-row{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.counter-item{
  padding: 2.6rem 1rem;
  text-align:center;
  border-left:1px solid var(--line);
}
.counter-item:first-child{ border-left:0; }
.counter-num{
  font-family: var(--f-display);
  font-size: clamp(2.4rem,5vw,3.4rem);
  font-weight:600;
  color: var(--blue);
}
.counter-label{ font-size:.85rem; color: var(--slate-soft); margin-top:.4rem; }

/* CTA band */
.cta-band{
  background: var(--ink);
  color:#fff;
  padding: clamp(3rem,6vw,5rem) 0;
  text-align:center;
}
.cta-band h2{ color:#fff; margin-bottom:.5rem; }
.cta-band p{ color: rgba(255,255,255,.65); max-width:56ch; margin:0 auto 2rem; }
.cta-actions{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

.cta-actions-btn {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem;
  margin: 2.5rem auto 0 auto !important; /* Centrage horizontal garanti */
  width: 100%;
  max-width: max-content; /* S'adapte à la largeur exacte des 2 boutons */
  text-align: center;
}

/* Sécurité supplémentaire : s'assure que les liens restent des éléments inline-flex */
.cta-actions-btn .btn {
  margin: 0;
}
/* Variantes spécifiques aux boutons CTA s'appuyant sur votre classe .btn */
.btn-cta-primary {
  background-color: var(--blue, #0052cc);
  color: #ffffff;
  border-color: var(--blue, #0052cc);
}

.btn-cta-primary:hover {
  background-color: transparent;
  color: var(--blue, #0052cc);
}

.btn-cta-secondary {
  background-color: transparent;
  color: var(--blue, #0052cc);
  border-color: var(--blue, #0052cc);
}

.btn-cta-secondary:hover {
  background-color: var(--blue, #0052cc);
  color: #ffffff;
}

/* Ajustement mobile uniquement */
@media (max-width: 576px) {
  .cta-actions-btn {
    flex-direction: column !important;
  }
  .cta-actions-btn .btn {
    width: 100%;
    justify-content: center;
  }
}


/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,5rem);
}
.contact-info h3{ font-size:.95rem; text-transform:uppercase; letter-spacing:.05em; font-family:var(--f-mono); color:var(--slate-soft); font-weight:500; margin-bottom:1rem;}
.contact-info a{ color: var(--ink); }
.contact-info a:hover{ color: var(--blue); }
.contact-block{ margin-bottom:2rem; }
.contact-map{ border:1px solid var(--line); height:100%; min-height:260px; }
.contact-map iframe{ width:100%; height:100%; min-height:260px; border:0; filter: grayscale(0.15); }

/* Bande carte plein écran (100% largeur, opacité pour foncer + contenu par-dessus) */
.map-band{
  position: relative;
  width: 100%;
  height: clamp(360px, 48vw, 520px);
  overflow: hidden;
}
.map-band-media{ position:absolute; inset:0; }
.map-band-media iframe{ width:100%; height:100%; border:0; filter: grayscale(.25); }
.map-band-overlay{
  position:absolute; inset:0;
  background: rgba(26,29,33,.6);
  pointer-events:none;
}
.map-band-content{
  position:relative; z-index:2;
  height:100%;
  display:flex; flex-direction:column; justify-content:center;
  color:#fff;
}
.map-band-content .eyebrow{ color:#9cc2ff; }
.map-band-content .eyebrow::before{ background:#9cc2ff; }
.map-band-content h2{ color:#fff; max-width:20ch; }
.map-band-content p{ color: rgba(255,255,255,.75); max-width:46ch; margin-bottom:1.6rem; }

/* Liens secondaires sous "Horaires" (ouvrent une modal) */
.contact-modal-links{
  display:flex; gap:1rem; flex-wrap:wrap;
  margin-top:.6rem;
  font-family: var(--f-mono);
  font-size:.82rem;
}
.contact-modal-links a{ color: var(--ink); border-bottom:1px solid var(--line); }
.contact-modal-links a:hover{ color: var(--blue); border-color: var(--blue); }

/* ==========================================================================
   MODALES
   ========================================================================== */
.modal-overlay{
  position: fixed; inset:0;
  background: rgba(26,29,33,.55);
  display:flex; align-items:center; justify-content:center;
  padding: 1.5rem;
  opacity:0; visibility:hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 900;
}
.modal-overlay.is-open{ opacity:1; visibility:visible; }
.modal-box{
  background:#fff;
  width: 1024px; max-width: 95%;
  max-height: 85vh;
  overflow-y:auto;
  padding: 2.6rem 2.2rem 2.2rem;
  position:relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: translateY(18px);
  transition: transform .3s var(--ease);
}
.modal-overlay.is-open .modal-box{ transform:translateY(0); }
.modal-close{
  position:absolute; top:.9rem; right:.9rem;
  width:38px; height:38px;
  border:0; background:transparent;
  color: var(--slate-soft);
  font-size:1.5rem; line-height:1;
  cursor:pointer;
  transition: color .2s ease;
}
.modal-close:hover{ color: var(--ink); }
.modal-box h3{ margin-bottom:.9rem; padding-right:1.5rem; }
.modal-body p:last-child{ margin-bottom:0; }
.modal-footer{
  display:flex; justify-content:flex-end;
  margin-top:1.8rem;
}

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field{ margin-bottom:1rem; }
.field label{ display:block; font-family:var(--f-mono); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--slate-soft); margin-bottom:.5em; }
.field input, .field textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  padding:.85em 1em;
  font-family: var(--f-body);
  font-size:.95rem;
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus{ border-color: var(--blue); outline:none; }
.field textarea{ resize:vertical; min-height:130px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.7); }
.footer-top{
  padding: 1.6rem 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  flex-wrap:wrap;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-copy{ font-family: var(--f-mono); font-size:.78rem; display:flex; gap:1.2rem; align-items:center; flex-wrap:wrap; }
.footer-copy a{ color: rgba(255,255,255,.6); }
.footer-copy a:hover{ color:#fff; }
.footer-keywords{
  display:flex; flex-wrap:wrap; gap:.5rem .6rem;
  justify-content:center;
  font-family: var(--f-mono);
  font-size:.72rem;
  color: rgba(255,255,255,.4);
  max-width: 620px;
}
.footer-keywords span::after{ content:"·"; margin-left:.6rem; color: rgba(255,255,255,.25); }
.footer-keywords span:last-child::after{ content:""; }
.footer-social{ display:flex; gap:.7rem; }
.footer-social a{
  width:36px; height:36px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  transition: all .2s ease;
}
.footer-social a:hover{ border-color:var(--blue); background:var(--blue); }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{ padding: 1.1rem 0 1.6rem; text-align:center; }
.footer-bottom small{ font-family:var(--f-mono); font-size:.7rem; color: rgba(255,255,255,.32); letter-spacing:.03em; }

/* ==========================================================================
   PAGE GÉNÉRIQUE — blocs réutilisables (page-template.php)
   ========================================================================== */
.page-hero{
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--fog);
}
.page-hero .eyebrow{ margin-bottom:.9rem; }
.page-hero h1{ font-size: clamp(2rem,4vw,3rem); max-width: 22ch; }
.breadcrumb{
  font-family: var(--f-mono); font-size:.75rem; color: var(--slate-soft);
  display:flex; gap:.5em; align-items:center; margin-bottom:1.4rem;
}
.breadcrumb a{ color: var(--slate-soft); }
.breadcrumb a:hover{ color: var(--blue); }

.block{ padding: clamp(3rem,6vw,5.5rem) 0; }
.block + .block{ border-top:1px solid var(--line); }

/* Article simple */
.block-article{ max-width: 1024px; margin:0 auto; }
.block-article h2{ margin-top: 1.6em; }
.block-article p{ font-size:1.05rem; }
.block-article figure{ margin: 2rem 0; }
.block-article figcaption{ font-family:var(--f-mono); font-size:.78rem; color:var(--slate-soft); margin-top:.6rem; }

/* 2 colonnes image / texte (les deux sens) */
.block-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,5rem);
  align-items:center;
}
.block-split.reverse .block-split-media{ order:2; }
.block-split-media{ border:1px solid var(--line); overflow:hidden; aspect-ratio:5/4; }
.block-split-media img{ width:100%; height:100%; object-fit:cover; }
.block-split-text .eyebrow{ margin-bottom:.9rem; }

/* 3 colonnes */
.block-trio{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.block-trio-item{ background:#fff; padding: 2rem 1.8rem; }
.block-trio-item .tick{ margin-bottom:1.2rem; }

/* Call to action (bloc, distinct de la bande pleine largeur) */
.block-cta{
  border:1px solid var(--line);
  padding: clamp(2.4rem,5vw,3.6rem);
  display:flex; align-items:center; justify-content:space-between;
  gap:2rem; flex-wrap:wrap;
  background: var(--fog);
}
.block-cta h3{ margin-bottom:.4rem; }
.block-cta p{ margin:0; }

/* Présentation produit */
.product-panel{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem,5vw,4.5rem);
  align-items:center;
}
.product-panel.reverse .product-visual{ order:2; }
.product-visual{
  border:1px solid var(--line);
  background: linear-gradient(150deg, var(--fog), #fff);
  aspect-ratio: 4/3;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.product-visual .product-mark{
  font-family: var(--f-display);
  font-weight:600;
  font-size: 1.7rem;
  color: var(--ink);
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
}
.product-visual .product-mark span{
  width:56px; height:56px; border-radius:50%;
  background: var(--blue-tint);
  display:flex; align-items:center; justify-content:center;
  color: var(--blue);
  font-size:1.3rem;
}
.product-tags{ display:flex; gap:.5rem; flex-wrap:wrap; margin: 1.1rem 0 1.4rem; }
.product-tags span{
  font-family: var(--f-mono);
  font-size:.7rem; letter-spacing:.04em;
  border:1px solid var(--line);
  padding:.35em .7em;
  color: var(--slate-soft);
}
.product-panel + .product-panel{ margin-top: clamp(3rem,7vw,6rem); padding-top: clamp(3rem,7vw,6rem); border-top:1px solid var(--line); }


table {
    border-collapse: collapse;
}


button:focus {
    outline: 1px dotted;
    outline: 5px auto -webkit-focus-ring-color
}

button,input,optgroup,select,textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit
}

button,input {
    overflow: visible
}

button,select {
    text-transform: none
}

/* ==========================================================================
   UTILITAIRES
   ========================================================================== */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
.only-desktop{ display:block; }
.only-mobile{ display:none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .about-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .formation-grid{ grid-template-columns: repeat(2,1fr); }
  .product-panel{ grid-template-columns:1fr; }
  .product-panel.reverse .product-visual{ order:0; }
}

@media (max-width: 900px){
  .main-nav, .nav-cta .btn-outline{ display:none; }
  .burger{ display:flex; }
  .only-desktop{ display:none; }
  .only-mobile{ display:block; }
  .contact-grid{ grid-template-columns:1fr; }
  .block-split{ grid-template-columns:1fr; }
  .block-split.reverse .block-split-media{ order:0; }
  .block-trio{ grid-template-columns:1fr; }
  .counter-row{ grid-template-columns:1fr; }
  .counter-item{ border-left:0; border-top:1px solid var(--line); }
  .counter-item:first-child{ border-top:0; }
}

@media (max-width: 620px){
  .services-grid{ grid-template-columns:1fr; }
  .formation-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-top{ flex-direction:column; text-align:center; }
  .hero-meta{ gap:1.6rem 2rem; }
}
