/* =========================================================
   HÉRA EVENTS — style.css (FULL PERFECT)
   - Desktop : grilles carrées premium
   - Tablette/Mobile : swipe horizontal (scroll-snap)
   - Overlay texte dans l'image (jamais en dessous)
   - Hero image + hero vidéo (moins coupé, réglable)
   - Callout premium + encart "Comment l’utiliser"
   - Flèche catalogue : assets/img/fleche.png
   - Split / Panel (pages activités)
========================================================= */

/* =========================
   VARIABLES / RESET
========================= */
:root{
  --primary:#18174a;
  --accent:#575bbe;
  --soft:#f3f1ea;
  --text:#1a1f2e;
  --muted:#6b7280;

  --radius:22px;
  --shadow:0 18px 42px rgba(0,0,0,.22);
  --shadowSoft:0 18px 45px rgba(0,0,0,.14);

  --max:1120px;
  --headerH:72px;

  /* ✅ HERO : réglage rapide */
  --heroH: 75vh;          /* augmente = moins de coupe visible */
  --heroFocus: 50% 35%;   /* X Y : 50% 20% = montre + le haut */
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
main,section,header,footer{max-width:100%;overflow-x:hidden}

/* container */
.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* =========================
   HEADER / NAV
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--primary);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:var(--headerH);
  gap:16px;
}

.brand{display:flex;align-items:center;flex:0 0 auto}
.brand-logo{height:44px;object-fit:contain}

.nav{
  display:flex;
  gap:16px;
  align-items:center;
}

.nav-link{
  color:#fff;
  font-size:14px;
  padding:8px 12px;
  border-radius:10px;
  white-space:nowrap;
}

.nav-link:hover,
.nav-link.is-active{background:rgba(255,255,255,.15)}

.nav-cta{border:1px solid rgba(255,255,255,.5)}

.burger{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:10px;
  border-radius:12px;
}

.burger span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  margin:5px 0;
}

/* menu mobile */
@media (max-width:900px){
  .burger{display:block}

  .nav{
    position:fixed;
    left:12px;
    right:12px;
    top:var(--headerH);
    background:rgba(24,23,74,.98);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 16px 40px rgba(0,0,0,.35);
    border-radius:18px;
    padding:14px;
    flex-direction:column;
    gap:8px;
    display:none;
    z-index:60;
  }
  .nav.is-open{display:flex}
  .nav-link{width:100%; text-align:center; padding:12px 14px}
}

/* =========================
   HERO (image + vidéo)
========================= */
.hero{
  position:relative;
  min-height:var(--heroH);
  background-size:cover;
  background-position:var(--heroFocus);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}

.hero.hero-short{
  min-height:calc(var(--heroH) - 12vh);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.20), transparent 70%);
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  padding:48px 0;
  color:#fff;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  opacity:.90;
}

.hero h1{margin:6px 0 0;font-size:42px}
.lead{max-width:68ch;line-height:1.6;opacity:.95}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

@media (max-width:768px){
  .hero h1{font-size:32px}
}

/* ✅ hero vidéo */
.hero.hero-video{background:#000}
.hero-video__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--heroFocus);
  z-index:0;
  transform:scale(1.01);
}

/* bouton ghost sur hero */
.btn-ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.65);
  color:#fff;
}

/* =========================
   SECTIONS / TITRES
========================= */
.section{padding:64px 0}
.section-soft{background:var(--soft)}

.section-title{
  text-align:center;
  max-width:820px;
  margin:0 auto 36px;
}

.section-title h2{margin:10px 0;font-size:32px}
.section-title p{color:var(--muted);line-height:1.6;margin:0}

.semi-sun{
  width:260px;
  height:120px;
  margin:0 auto 16px;
  background:url("../img/demi-sun.png") no-repeat center bottom / contain;
}

@media (max-width:600px){
  .section{padding:48px 0}
  .section-title h2{font-size:26px}
}

/* =========================
   BUTTONS (standard)
========================= */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 22px rgba(0,0,0,.16);
}
.btn:hover{filter:brightness(1.05)}

/* =========================
   TEXT CARDS
========================= */
.cards{display:grid;gap:16px}
.cards-3{grid-template-columns:repeat(3,1fr)}

.card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 14px 40px rgba(0,0,0,.08);
  padding:18px;
}
.card h3{margin:0 0 8px}
.card p{margin:0;color:var(--muted);line-height:1.6}

@media (max-width:980px){
  .cards-3{grid-template-columns:1fr}
}

/* =========================================================
   ✅ TILES CONTAINERS (ancien + nouveau)
   Support : .tiles, .grid-4, .grid-3xl, .catalogue-grid
========================================================= */
.tiles,
.grid-4,
.catalogue-grid{
  display:grid;
  gap:16px;
  width:100%;
}

/* desktop colonnes */
.tiles--4,
.grid-4{ grid-template-columns:repeat(4,1fr); }

.tiles--3xl,
.grid-3xl{ grid-template-columns:repeat(3,1fr); }

.tiles--catalogue,
.catalogue-grid{ grid-template-columns:repeat(3,1fr); }

/* =========================================================
   ✅ TILE PREMIUM GLOBAL
========================================================= */
.tile{
  position:relative;
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  background:#000;
  box-shadow:var(--shadow);
  aspect-ratio:1 / 1;
  isolation:isolate;
}
.tile::before{content:"";display:block;padding-top:100%} /* fallback */

.tile img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  opacity:.94;
  transform:scale(1.02);
  transition:transform .35s ease;
}
.tile:hover img{transform:scale(1.06)}

.tile-label{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:16px;
  color:#fff;
  font-weight:900;
  font-size:18px;
  letter-spacing:.02em;
  z-index:2;
  background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.25), transparent);
}

/* =========================================================
   ✅ SWIPE TABLETTE/MOBILE
========================================================= */
@media (max-width:1024px){
  .tiles,
  .grid-4,
  .catalogue-grid{
    display:flex;
    overflow-x:auto;
    gap:16px;
    padding:2px 2px 12px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .tiles::-webkit-scrollbar,
  .grid-4::-webkit-scrollbar,
  .catalogue-grid::-webkit-scrollbar{display:none}

  .tile{
    flex:0 0 68%;
    scroll-snap-align:start;
  }
}

@media (max-width:600px){
  .tile{flex:0 0 84%}
  .tile-label{font-size:16px;padding:14px}
}

/* =========================
   CATALOGUE LAYOUT (grille + encart)
========================= */
.catalogue{
  display:grid;
  grid-template-columns:2.2fr 1fr;
  gap:32px;
  align-items:start;
  position:relative;
}

@media (max-width:1024px){
  .catalogue{grid-template-columns:1fr}
}

/* Encadré "Comment l’utiliser" */
.catalogue-text{
  background:#fff;
  border-radius:22px;
  box-shadow:var(--shadowSoft);
  padding:26px 26px 22px;
}
.catalogue-text h3{margin:0 0 12px;font-size:20px}
.catalogue-text .muted{margin:0 0 14px;color:var(--muted);line-height:1.6}

.list{margin:0 0 18px; padding-left:18px}
.catalogue-text .list li{margin:8px 0;line-height:1.45}

@media (max-width:600px){
  .catalogue-text{padding:22px 20px}
}

/* ✅ Flèche PNG (assets/img/fleche.png) */
.fleche{
  position:absolute;
  right:18px;
  bottom:22px;
  width:220px;
  height:120px;
  background:url("../img/fleche.png") no-repeat center / contain;
  opacity:.95;
  pointer-events:none;
}
@media (max-width:1024px){
  .fleche{display:none}
}

/* =========================
   CALLOUT premium (dégradé)
========================= */
.callout{
  margin-top:48px;
  padding:26px 28px;
  border-radius:22px;
  color:#fff;
  background:linear-gradient(135deg, rgba(87,91,190,.92), rgba(24,23,74,.92));
  box-shadow:0 18px 45px rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.callout h3{margin:0 0 8px;font-size:20px;line-height:1.2;color:#fff}
.callout p{margin:0;color:rgba(255,255,255,.92);line-height:1.55;max-width:70ch}

.callout .btn{
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
  white-space:nowrap;
}

@media (max-width:820px){
  .callout{flex-direction:column;align-items:flex-start}
  .callout .btn{width:100%;text-align:center}
}

/* =========================
   PAGE ACTIVITÉ : split / panel
========================= */
.split{
  display:grid;
  grid-template-columns:1.35fr .85fr;
  gap:28px;
  align-items:start;
}

.split h2{margin:0 0 14px;font-size:26px}
.split .muted{color:var(--muted);line-height:1.6}

.panel{
  background:#fff;
  border-radius:22px;
  box-shadow:var(--shadowSoft);
  padding:22px;
  position:sticky;
  top:calc(var(--headerH) + 18px);
}

@media (max-width:980px){
  .split{grid-template-columns:1fr}
  .panel{position:static}
}

/* =========================
   FOOTER
========================= */
.site-footer{
  background:var(--primary);
  color:#fff;
  padding:28px 0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}

.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{opacity:.92}
.footer-links a:hover{opacity:1}

/* =========================================================
   CONTACT (info-box + form) — rendu comme ta capture
========================================================= */

.contact-split{
  align-items:center; /* pour que les deux colonnes soient jolies */
}

.info-box{
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadowSoft);
  padding:18px 18px 10px;
  margin:12px 0 14px;
}

.info-box p{
  margin:0 0 10px;
  line-height:1.45;
}

.info-box a{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
}

.info-box a:hover{
  text-decoration:underline;
}

/* panel contact : un peu plus "carte formulaire" */
.contact-panel{
  padding:22px;
}

/* FORM */
.form{
  margin-top:10px;
  display:grid;
  gap:14px;
}

.field{
  display:grid;
  gap:8px;
  font-size:13px;
  font-weight:700;
  color:var(--text);
}

.field span{
  display:block;
}

.field input,
.field textarea{
  width:100%;
  border:1px solid rgba(26,31,46,.14);
  border-radius:12px;
  padding:12px 12px;
  font:inherit;
  font-weight:600;
  background:#fff;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(0,0,0,.03);
}

.field textarea{
  resize:vertical;
  min-height:140px;
}

.field input:focus,
.field textarea:focus{
  border-color:rgba(87,91,190,.55);
  box-shadow:0 0 0 4px rgba(87,91,190,.15);
}

/* checkbox */
.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:12px;
  font-weight:700;
  color:var(--text);
  margin-top:2px;
}

.checkbox input{
  margin-top:3px;
  width:16px;
  height:16px;
}

/* bouton pleine largeur (comme sur ta capture) */
.btn-full{
  width:100%;
  text-align:center;
  padding:12px 18px;
}

/* texte petit */
.small{
  font-size:12px;
  margin:8px 0 0;
}

/* mobile : tout en colonne */
@media (max-width:980px){
  .contact-split{
    align-items:stretch;
  }
}

/* =========================================================
   LEGAL PAGE — Mentions légales (premium)
========================================================= */

:root{
  /* si pas déjà dans ton CSS, garde ces variables */
  --shadowSoft: 0 14px 40px rgba(0,0,0,.08);
}

/* panel global */
.legal-panel{
  margin-bottom:18px;
}

.legal-title{
  margin:0 0 12px;
}

/* sommaire */
.legal-toc{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 0;
}

.legal-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:#fff;
  box-shadow:var(--shadowSoft);
  border:1px solid rgba(26,31,46,.08);
  font-weight:800;
  font-size:13px;
}

.legal-chip:hover{
  transform:translateY(-1px);
}

.legal-note{
  margin-top:14px;
}

/* grille des sections */
.legal-grid{
  display:grid;
  gap:16px;
  margin-top:16px;
}

.legal-card{
  padding:22px;
}

/* en-tête section (badge + titre) */
.legal-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.legal-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(87,91,190,.14);
  color:var(--primary);
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(87,91,190,.25);
}

/* listes plus clean */
.legal-list{
  margin-top:10px;
  line-height:1.7;
}

.legal-list li{
  margin:6px 0;
}

/* encadré important */
.legal-highlight{
  margin-top:14px;
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(90deg, rgba(87,91,190,.16), rgba(87,91,190,.06));
  border:1px solid rgba(87,91,190,.18);
}

/* details */
.legal-details{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(26,31,46,.10);
  box-shadow:var(--shadowSoft);
}

.legal-details summary{
  cursor:pointer;
  font-weight:900;
}

.legal-details summary::-webkit-details-marker{
  display:none;
}

.legal-details summary::after{
  content:"▼";
  float:right;
  opacity:.7;
  font-size:12px;
}

.legal-details[open] summary::after{
  content:"▲";
}

@media (max-width:900px){
  .legal-card{padding:18px;}
}

/* =========================================================
   CAROUSEL — Compatible avec JS (is-active)
   - 1 slide visible à la fois
   - boutons + dots + swipe
========================================================= */

.carousel{
  position:relative;
  width:100%;
  border-radius:22px;
  overflow:hidden;
  background:#000;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  margin: 0 0 26px;
}

/* hauteur "moins coupée" : tu ajustes ici */
.carousel-track{
  position:relative;
  width:100%;
  height: clamp(280px, 40vw, 520px);
}

/* ✅ toutes les slides sont superposées (stack) */
.carousel-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transform: scale(1.01);
  transition: opacity .45s ease, transform .45s ease;
}

/* ✅ une seule visible */
.carousel-slide.is-active{
  opacity:1;
  pointer-events:auto;
  transform: scale(1);
}

.carousel-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* overlay léger (premium) */
.carousel::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(to top, rgba(0,0,0,.25), transparent 55%);
  z-index:1;
}

/* boutons */
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background: rgba(10,10,20,.45);
  color:#fff;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:3;
  backdrop-filter: blur(6px);
}

.carousel-btn:hover{background: rgba(10,10,20,.62)}
.carousel-btn.prev{left:14px}
.carousel-btn.next{right:14px}

/* dots */
.carousel-dots{
  position:absolute;
  left:0; right:0;
  bottom:14px;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:3;
  padding:0 12px;
}

.carousel-dots .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,.45);
  cursor:pointer;
  padding:0;
}

.carousel-dots .dot.is-active{
  background:#fff;
  width:18px;
}

/* responsive */
@media (max-width:900px){
  .carousel-track{height: clamp(240px, 62vw, 420px);}
  .carousel-btn{width:40px;height:40px;font-size:26px;}
}
