
:root{
  --green:#064c3b;
  --green-dark:#043f32;
  --green-mid:#08614b;
  --gold:#e5ae1d;
  --gold-light:#f2c74b;
  --ink:#12382f;
  --muted:#687b74;
  --border:#e5ebe8;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none}
.page-wrap{
  width:min(1580px,calc(100% - 64px));
  margin-inline:auto;
}

/* HEADER */
.site-header{
  height:96px;
  background:#fff;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
}
.header-grid{
  height:100%;
  display:grid;
  grid-template-columns:390px 1fr auto;
  align-items:center;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  height:100%;
  overflow:visible;
  min-width:0;
}
.brand-logo{
  display:block;
  width:72px;
  height:72px;
  flex:0 0 72px;
  object-fit:contain;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  line-height:1;
}
.brand-title{
  display:block;
  white-space:nowrap;
  font-size:30px;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.05;
}
.brand-title strong{
  color:#064c3b;
  font-style:normal;
  font-weight:850;
}
.brand-title em{
  color:#e2ad1d;
  font-style:normal;
  font-weight:850;
}
.brand-tagline{
  display:block;
  margin-top:7px;
  white-space:nowrap;
  color:#415c55;
  font-size:11px;
  line-height:1.2;
}
.main-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  height:100%;
}
.nav-link{
  height:100%;
  display:flex;
  align-items:center;
  color:#173d34;
  font-weight:600;
  font-size:15.5px;
  position:relative;
  white-space:nowrap;
}
.nav-link:hover{color:#b88508}
.nav-link.active:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:22px;
  height:3px;
  background:var(--gold);
  border-radius:3px;
}
.header-actions{
  display:flex;
  align-items:center;
  gap:16px;
  white-space:nowrap;
}
.lang-switch{
  border:0;
  background:transparent;
  color:#173d34;
  font-weight:700;
  font-size:15px;
}
.btn-header{
  height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 24px;
  border-radius:13px;
  font-weight:800;
  font-size:15px;
}
.btn-header.outline{
  border:1.5px solid #0a6b54;
  color:#07513f;
  background:#fff;
}
.btn-header.gold{
  border:1px solid var(--gold);
  color:#17372f;
  background:var(--gold);
}

/* HERO */
.hero{
  background:linear-gradient(110deg,#064638 0%,#075743 55%,#08705a 100%);
  color:#fff;
  overflow:hidden;
}
.hero-layout{
  min-height:500px;
  display:grid;
  grid-template-columns:minmax(420px,.95fr) minmax(340px,.78fr) minmax(500px,.98fr);
  align-items:stretch;
  gap:0;
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:42px 24px 36px 0;
  z-index:2;
}
.eyebrow{
  color:#f0f8f5;
  font-size:13px;
  font-weight:700;
  letter-spacing:.19em;
}
.hero-copy h1{
  margin:16px 0 18px;
  color:#fff;
  font-size:clamp(52px,4.5vw,77px);
  line-height:.96;
  letter-spacing:-.052em;
  font-weight:900;
}
.hero-copy h1 span{color:var(--gold-light)}
.hero-copy p{
  margin:0;
  max-width:590px;
  color:#edf6f2;
  font-size:17px;
  line-height:1.55;
}
.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:24px;
}
.hero-btn{
  height:52px;
  padding:0 25px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:850;
  font-size:16px;
}
.hero-btn.primary{
  background:linear-gradient(90deg,#e7b529,#f0c94a);
  color:#17382f;
}
.hero-btn.secondary{
  background:rgba(0,0,0,.06);
  border:2px solid rgba(255,255,255,.92);
  color:#fff;
}

.hero-photo{
  position:relative;
  min-height:500px;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(5,67,52,.72) 0%,rgba(5,76,59,.24) 28%,rgba(5,76,59,.12) 72%,rgba(5,87,67,.60) 100%),
    url("../img/hero-learning.c75e46a3d1f6.jpg") center center / cover no-repeat;
}
.hero-photo img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center bottom;
  transform:scale(.93);
  transform-origin:center bottom;
}
.hero-photo:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(6,70,55,.60) 0%,rgba(6,70,55,.15) 20%,transparent 45%,transparent 82%,rgba(7,91,70,.26) 100%),
    linear-gradient(0deg,rgba(5,65,51,.16),transparent 48%);
}

/* FOUR SPACES */
.spaces-panel{
  align-self:center;
  margin-left:20px;
  background:#fbfcfb;
  color:var(--ink);
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 44px rgba(0,0,0,.16);
}
.spaces-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:3px 5px 14px;
}
.spaces-heading h2{
  margin:0;
  color:#123d33;
  font-size:19px;
  font-weight:900;
  line-height:1.15;
}
.spaces-heading span{
  color:#d99f08;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.04em;
  white-space:nowrap;
}
.spaces-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.space-card{
  min-height:165px;
  border-radius:14px;
  padding:17px 12px 13px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  color:inherit;
  transition:.18s ease;
}
.space-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(8,63,51,.08);
}
.space-icon{
  font-size:29px;
  line-height:1;
  margin-bottom:7px;
}
.space-card h3{
  margin:0 0 6px;
  font-size:16px;
  font-weight:900;
}
.space-card p{
  margin:0;
  color:inherit;
  font-size:13.4px;
  line-height:1.28;
}
.space-card b{
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  margin-top:11px;
  font-size:16px;
}
.space-card.pupil{background:linear-gradient(145deg,#dbeaff,#eff6ff);color:#174f97}
.space-card.pupil b{background:#3b84d6}
.space-card.student{background:linear-gradient(145deg,#ddf3e6,#eef9f2);color:#08754f}
.space-card.student b{background:#108b5e}
.space-card.teacher{background:linear-gradient(145deg,#fff0c5,#fff8e3);color:#8a6310}
.space-card.teacher b{background:#dda717}
.space-card.admin{background:linear-gradient(145deg,#e7dcff,#f4efff);color:#5b2aa4}
.space-card.admin b{background:#6330b7}

/* STATS */
.stats-band{
  background:linear-gradient(90deg,#064838,#075f4a);
  border-top:1px solid rgba(255,255,255,.18);
  color:#fff;
}
.stats-grid{
  min-height:104px;
  display:grid;
  grid-template-columns:repeat(4,1fr) 1.45fr;
  align-items:center;
}
.stat{
  min-height:64px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 22px;
  border-right:1px solid rgba(255,255,255,.22);
}
.stat-icon{font-size:30px}
.stat strong{display:block;font-size:20px}
.stat small{
  display:block;
  color:#d7e7e1;
  font-size:13px;
  margin-top:4px;
}
.quote{
  text-align:center;
  padding-left:22px;
}
.quote em{
  display:block;
  font-size:14px;
  line-height:1.4;
}
.quote strong{
  display:block;
  color:var(--gold-light);
  font-size:13px;
  margin-top:6px;
}

/* BENEFITS */
.benefits{
  background:#fff;
}
.benefits-grid{
  min-height:104px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  align-items:center;
}
.benefit{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 8px;
}
.benefit>span{
  font-size:30px;
  min-width:45px;
  text-align:center;
}
.benefit strong{
  display:block;
  color:#0a5d48;
  font-size:15px;
}
.benefit small{
  display:block;
  color:#6f8079;
  font-size:13px;
  margin-top:4px;
}

/* FORMS/DASHBOARDS */
.auth-card,.content-card,.metric-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 12px 30px rgba(8,63,51,.07);
}
.auth-card{max-width:590px;padding:32px}
.content-card{padding:28px}
.metric-card{padding:24px;display:flex;flex-direction:column;gap:5px}
.metric-card strong{font-size:2rem;color:var(--green)}
.dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
input:not([type=checkbox]),select,textarea{
  width:100%;
  border:1px solid #cfdad5;
  border-radius:10px;
  padding:.72rem .85rem;
  min-height:44px;
}

/* FOOTER */
.site-footer{
  background:#082f27;
  color:#dceae5;
  padding:28px 0;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:center;
}
.footer-grid small{
  display:block;
  color:#9fb8b0;
  margin-top:4px;
}

/* RESPONSIVE */
@media(max-width:1280px){
  .header-grid{grid-template-columns:350px 1fr auto}
  .brand-logo{width:64px;height:64px;flex-basis:64px}
  .brand-title{font-size:27px}
  .brand-tagline{font-size:10px}
  .main-nav{gap:18px}
  .hero-layout{grid-template-columns:1fr .72fr 1fr}
}
@media(max-width:1080px){
  .main-nav{display:none}
  .header-grid{grid-template-columns:1fr auto}
  .header-actions{justify-self:end}
  .hero-layout{
    grid-template-columns:1fr 1fr;
  }
  .hero-copy{grid-column:1/2}
  .hero-photo{grid-column:2/3}
  .spaces-panel{
    grid-column:1/3;
    margin:24px 0 36px;
  }
  .stats-grid{grid-template-columns:1fr 1fr}
  .quote{grid-column:1/3;padding:18px}
  .benefits-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .page-wrap{width:calc(100% - 28px)}
  .site-header{height:78px}
  .brand-logo{width:58px;height:58px;flex-basis:58px}
  .brand-title{font-size:23px}
  .brand-tagline{font-size:9px}
  .lang-switch,.btn-header.outline{display:none}
  .btn-header.gold{height:44px;padding:0 15px}
  .hero-layout{display:block}
  .hero-copy{padding:42px 0}
  .hero-copy h1{font-size:52px}
  .hero-copy p{font-size:16px}
  .hero-photo{height:360px;min-height:0}
  .spaces-panel{margin:24px 0 36px}
  .spaces-grid{grid-template-columns:1fr}
  .stats-grid,.benefits-grid{grid-template-columns:1fr}
  .quote{grid-column:auto}
  .stat{border-right:0;border-bottom:1px solid rgba(255,255,255,.18)}
  .footer-grid{flex-direction:column;align-items:flex-start}
}


/* LOT 4 — Calendrier */
.calendar-wrap{overflow-x:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));min-width:840px}.calendar-head>div{font-weight:800;background:#edf5f1;padding:12px;border:1px solid #dfe7e3;text-align:center}.calendar-day{min-height:120px;border:1px solid #e1e8e4;padding:10px;background:#fff}.calendar-day.empty{background:#f8faf9}.calendar-event{margin-top:8px;padding:7px;border-radius:8px;background:#eaf4f0;color:#0b5d4b;font-size:.78rem;line-height:1.25}
.calendar-event a{color:inherit;text-decoration:none}.calendar-event-trial{background:#fff0c7;color:#7b5200}.calendar-event-assessment{background:#eee2ff;color:#5821a5}.agenda-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5ece8}.agenda-row:last-child{border-bottom:0}.agenda-dot{width:12px;height:12px;border-radius:50%;background:#08775f;flex:none}.agenda-dot-trial{background:#e8a800}.agenda-dot-assessment{background:#7130cf}
.home-pricing-preview,.pricing-page{background:#f6faf8;padding:64px 0}.pricing-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.pricing-preview-item,.pricing-card{position:relative;background:#fff;border:1px solid #dfe9e5;border-radius:18px;padding:24px;box-shadow:0 10px 28px rgba(2,67,51,.07)}.pricing-preview-item{display:flex;flex-direction:column;gap:6px}.pricing-preview-item strong{font-size:1.15rem}.pricing-preview-item span{font-size:1.45rem;font-weight:800;color:#086d55}.pricing-card.featured{border:2px solid #e9ad12;transform:translateY(-8px)}.pricing-tag{font-size:.72rem;font-weight:800;letter-spacing:.1em;color:#08775f}.pricing-price{font-size:2rem;font-weight:900;color:#064c3b;margin:16px 0 0}.pricing-price small{font-size:.8rem;font-weight:600}.pricing-card ul{padding-left:20px;min-height:180px}.pricing-card li{margin-bottom:8px}.pricing-popular{position:absolute;right:16px;top:16px;background:#f6bc21;border-radius:20px;padding:5px 10px;font-size:.72rem;font-weight:800}@media(max-width:900px){.pricing-preview-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.pricing-preview-grid{grid-template-columns:1fr}.pricing-card.featured{transform:none}}

/* CORRECTION PHOTO ACCUEIL — desktop */

@media(min-width:1281px){
  .hero-layout{
    grid-template-columns:minmax(430px,.92fr) minmax(390px,.86fr) minmax(500px,1fr);
  }
  .hero-photo img{
    transform:scale(.90);
  }
}
@media(min-width:1081px) and (max-width:1280px){
  .hero-photo img{
    transform:scale(.94);
  }
}

@media(max-width:1080px){
  .hero-photo{
    background:
      linear-gradient(90deg,rgba(5,67,52,.35),rgba(5,87,67,.22)),
      url("../img/hero-learning.c75e46a3d1f6.jpg") center center / cover no-repeat;
  }
  .hero-photo img{
    object-fit:cover;
    object-position:center 42%;
    transform:none;
  }
}


/* =========================================================
   ACCUEIL — CORRECTION FIDÈLE À LA MAQUETTE VALIDÉE
   ========================================================= */

/* Les deux CTA restent sur la même ligne sur ordinateur. */
.hero-buttons{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:14px !important;
  margin-top:22px !important;
}
.hero-buttons .btn,
.hero-buttons a{
  width:auto !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
.hero-buttons .btn-primary{
  min-width:170px !important;
}
.hero-buttons .btn-video{
  min-width:220px !important;
}

/* Photo : utiliser directement le cadrage de référence, sans zoom CSS. */
.hero-photo{
  position:relative !important;
  min-height:448px !important;
  overflow:hidden !important;
  background:#075b46 !important;
}
.hero-photo img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  transform:none !important;
  max-width:none !important;
  z-index:1 !important;
}
.hero-photo:before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:2 !important;
  pointer-events:none !important;
  background:
    linear-gradient(90deg,rgba(4,73,55,.22) 0%,transparent 18%,transparent 84%,rgba(4,73,55,.18) 100%) !important;
}

/* Proportions desktop proches de la maquette : texte / photo / panneau. */
@media (min-width:1081px){
  .hero-layout{
    grid-template-columns:minmax(430px, .98fr) minmax(430px, .92fr) minmax(470px, 1fr) !important;
    align-items:stretch !important;
  }
  .hero-copy{
    min-width:0 !important;
  }
  .hero-copy h1{
    line-height:.96 !important;
  }
}

/* Sur tablette et mobile, autoriser le retour à la ligne des CTA. */
@media (max-width:1080px){
  .hero-buttons{
    flex-wrap:wrap !important;
  }
  .hero-photo{
    min-height:420px !important;
  }
  .hero-photo img{
    position:relative !important;
    object-fit:cover !important;
    object-position:center center !important;
  }
}

@media (max-width:640px){
  .hero-buttons{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .hero-buttons .btn,
  .hero-buttons a{
    width:100% !important;
    text-align:center !important;
  }
}


/* =========================================================
   ACCUEIL — PHOTO SEULE FINALE
   ========================================================= */

.hero-layout{
  display:grid !important;
  grid-template-columns:minmax(430px,.95fr) minmax(520px,1.06fr) minmax(470px,1fr) !important;
  align-items:stretch !important;
}

.hero-photo{
  position:relative !important;
  min-height:500px !important;
  overflow:hidden !important;
  background:#075b46 !important;
}

.hero-photo img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  transform:none !important;
  max-width:none !important;
  z-index:1 !important;
}

/* Léger fondu seulement : aucun texte ou élément HTML n'est dans l'image. */
.hero-photo:before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:2 !important;
  pointer-events:none !important;
  background:linear-gradient(
    90deg,
    rgba(4,73,55,.10) 0%,
    transparent 15%,
    transparent 88%,
    rgba(4,73,55,.08) 100%
  ) !important;
}

/* Les deux boutons restent sur une seule ligne sur ordinateur. */
.hero-buttons{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:14px !important;
  margin-top:22px !important;
}

.hero-buttons .btn,
.hero-buttons a{
  width:auto !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

.hero-buttons .btn-primary{
  min-width:170px !important;
}

.hero-buttons .btn-video{
  min-width:220px !important;
}

@media (max-width:1200px){
  .hero-layout{
    grid-template-columns:minmax(390px,.95fr) minmax(470px,1.03fr) minmax(430px,.95fr) !important;
  }
}

@media (max-width:1080px){
  .hero-layout{
    grid-template-columns:1fr !important;
  }

  .hero-photo{
    min-height:auto !important;
  }

  .hero-photo img{
    position:relative !important;
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
  }

  .hero-buttons{
    flex-wrap:wrap !important;
  }
}

@media (max-width:640px){
  .hero-buttons{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .hero-buttons .btn,
  .hero-buttons a{
    width:100% !important;
    text-align:center !important;
  }
}


/* =========================================================
   LOT 7.2 — CORRECTION LARGEUR / SCROLL HORIZONTAL
   Objectif : aucune barre de défilement horizontale.
   ========================================================= */

html, body {
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
}

img, svg, video {
  max-width:100%;
}

/* Le conteneur ne peut jamais dépasser le viewport. */
.page-wrap{
  width:min(1580px, calc(100% - 48px)) !important;
  max-width:1580px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Header fluide sur les écrans desktop usuels. */
.header-grid{
  grid-template-columns:minmax(270px, 1.15fr) minmax(500px, 1.7fr) auto !important;
  gap:18px !important;
}
.main-nav{gap:22px !important;}
.header-actions{gap:12px !important;}
.btn-header{padding-left:20px !important;padding-right:20px !important;}

/* HERO : colonnes proportionnelles au lieu de minimums fixes de 430/520/470px.
   C'était la cause principale du débordement horizontal. */
.hero-layout{
  width:min(1580px, calc(100% - 48px)) !important;
  max-width:1580px !important;
  grid-template-columns:minmax(0, 1.02fr) minmax(0, 1.05fr) minmax(0, 1.03fr) !important;
  gap:0 !important;
}

.hero-copy,
.hero-photo,
.spaces-panel{
  min-width:0 !important;
  max-width:100% !important;
}

.hero-copy{
  padding-right:22px !important;
}

.hero-copy h1{
  font-size:clamp(48px, 4.15vw, 72px) !important;
}

.hero-copy p{
  font-size:clamp(15px, 1.08vw, 17px) !important;
}

.hero-photo{
  min-height:500px !important;
}

.hero-photo img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}

.spaces-panel{
  width:auto !important;
  margin-left:18px !important;
  margin-right:0 !important;
  padding:16px !important;
}

.spaces-heading{
  gap:8px !important;
}
.spaces-heading h2{
  font-size:clamp(18px,1.35vw,23px) !important;
}
.spaces-heading span{
  white-space:nowrap !important;
  font-size:clamp(9px,.72vw,12px) !important;
}

/* Les cartes doivent rétrécir avec la colonne droite. */
.spaces-grid{
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:12px !important;
}
.space-card{
  min-width:0 !important;
  padding-left:10px !important;
  padding-right:10px !important;
}
.space-card p{
  overflow-wrap:anywhere;
}

/* Statistiques et avantages : pas de débordement. */
.stats-grid,
.benefits-grid{
  min-width:0 !important;
}
.stat, .benefit, .quote{
  min-width:0 !important;
}

/* Adaptation progressive avant le mode tablette. */
@media (max-width:1450px){
  .page-wrap,
  .hero-layout{
    width:calc(100% - 36px) !important;
  }
  .header-grid{
    grid-template-columns:minmax(250px,1fr) minmax(470px,1.65fr) auto !important;
  }
  .brand-logo{width:62px !important;height:62px !important;flex-basis:62px !important;}
  .brand-title{font-size:27px !important;}
  .main-nav{gap:17px !important;}
  .nav-link{font-size:14.5px !important;}
  .btn-header{padding-left:16px !important;padding-right:16px !important;}
  .hero-copy h1{font-size:clamp(46px,4.05vw,66px) !important;}
  .spaces-panel{margin-left:12px !important;}
}

@media (max-width:1250px){
  .site-header{height:auto !important;min-height:96px !important;}
  .header-grid{
    grid-template-columns:minmax(235px,1fr) auto !important;
    grid-template-areas:
      "brand actions"
      "nav nav" !important;
    row-gap:0 !important;
    padding-top:10px !important;
    padding-bottom:8px !important;
  }
  .brand{grid-area:brand !important;}
  .main-nav{
    grid-area:nav !important;
    min-height:46px !important;
    justify-content:center !important;
  }
  .header-actions{grid-area:actions !important;justify-content:flex-end !important;}
  .nav-link.active:after{bottom:4px !important;}

  .hero-layout{
    grid-template-columns:minmax(0,.95fr) minmax(0,.9fr) minmax(0,1.05fr) !important;
  }
  .hero-copy{padding-right:16px !important;}
  .hero-copy h1{font-size:clamp(43px,4vw,58px) !important;}
  .hero-buttons{gap:10px !important;}
  .hero-btn{padding-left:17px !important;padding-right:17px !important;font-size:14px !important;}
  .spaces-panel{margin-left:10px !important;padding:13px !important;}
  .space-card{padding-top:14px !important;padding-bottom:14px !important;}
}

/* Tablette/mobile : empilage propre, toujours sans scroll horizontal. */
@media (max-width:1080px){
  .page-wrap,
  .hero-layout{
    width:calc(100% - 32px) !important;
  }
  .hero-layout{
    grid-template-columns:1fr !important;
  }
  .hero-copy{padding:34px 0 28px !important;}
  .hero-photo{
    min-height:0 !important;
    height:auto !important;
  }
  .hero-photo img{
    position:relative !important;
    height:auto !important;
    object-fit:contain !important;
  }
  .spaces-panel{
    margin:20px 0 28px !important;
  }
}

@media (max-width:760px){
  .page-wrap,
  .hero-layout{width:calc(100% - 24px) !important;}
  .header-grid{
    display:flex !important;
    flex-wrap:wrap !important;
    height:auto !important;
  }
  .brand{width:100% !important;}
  .main-nav{
    width:100% !important;
    overflow-x:auto !important;
    justify-content:flex-start !important;
    padding-bottom:4px !important;
  }
  .header-actions{
    width:100% !important;
    flex-wrap:wrap !important;
  }
  .spaces-grid{grid-template-columns:1fr !important;}
}


/* =========================================================
   LOT 8 — MESSAGERIE & NOTIFICATIONS
   ========================================================= */

.header-comm-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border:1px solid #dce7e2;
  border-radius:12px;
  background:#fff;
  text-decoration:none;
  font-size:19px;
}

.header-comm-link:hover{
  border-color:#077456;
  background:#f4fbf8;
}

.header-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:20px;
  background:#c62828;
  color:#fff;
  font-size:11px;
  line-height:20px;
  text-align:center;
  font-weight:800;
}

.message-thread{
  max-height:560px;
  overflow-y:auto;
}

.message-bubble{
  max-width:75%;
  padding:12px 16px;
  border-radius:18px;
  background:#f2f4f3;
}

.message-bubble.mine{
  background:#e2f5ec;
  border:1px solid #c8e8da;
}

.notification-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 0;
  border-bottom:1px solid #e4ebe7;
}

.notification-row.unread{
  background:#f8fcfa;
  box-shadow:inset 4px 0 0 #087457;
  padding-left:14px;
  padding-right:10px;
}

@media(max-width:1250px){
  .header-comm-link{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
}

@media(max-width:760px){
  .notification-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .message-bubble{
    max-width:92%;
  }
}


/* Lot 9 — sécurité / audit */
.security-check{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:16px 0;
  border-bottom:1px solid #e3eae6;
}

.security-check:last-child{
  border-bottom:0;
}

.security-check.failed{
  background:#fffaf0;
  margin-left:-16px;
  margin-right:-16px;
  padding-left:16px;
  padding-right:16px;
}

@media(max-width:640px){
  .security-check{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* =========================================================
   LOT 9.1 — BILINGUE FR/EN + FOOTER ADS MALI
   ========================================================= */

.language-switcher{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:42px;
  padding:4px 9px;
  border:1px solid #d7e4de;
  border-radius:12px;
  background:#fff;
}

.language-option{
  appearance:none;
  border:0;
  background:transparent;
  color:#52645d;
  font-weight:800;
  font-size:14px;
  padding:5px 4px;
  cursor:pointer;
  line-height:1;
}

.language-option:hover{
  color:#075b46;
}

.language-option.active{
  color:#075b46;
  text-decoration:underline;
  text-decoration-color:#e7ad10;
  text-decoration-thickness:2px;
  text-underline-offset:5px;
}

.language-separator{
  color:#a5b2ac;
  font-weight:600;
}

.site-footer-detailed{
  padding:0;
  background:#063d31;
  color:#fff;
}

.footer-main{
  display:grid;
  grid-template-columns:minmax(260px,1.25fr) repeat(3,minmax(180px,1fr));
  gap:34px;
  padding-top:38px;
  padding-bottom:30px;
}

.footer-brand-block p{
  margin:8px 0 0;
  color:#c6d7d0;
  line-height:1.6;
}

.footer-brand-title{
  font-size:22px;
  font-weight:900;
  color:#fff;
}

.footer-tagline{
  color:#e7ad10 !important;
  font-weight:700;
}

.footer-column{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}

.footer-column strong{
  color:#fff;
  margin-bottom:4px;
  font-size:15px;
}

.footer-column span,
.footer-column a{
  color:#cbdad4;
  text-decoration:none;
  font-size:14px;
  overflow-wrap:anywhere;
}

.footer-column a:hover{
  color:#fff;
  text-decoration:underline;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-top:17px;
  padding-bottom:18px;
  border-top:1px solid rgba(255,255,255,.14);
  color:#afc4bb;
  font-size:13px;
}

@media(max-width:1050px){
  .footer-main{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px){
  .footer-main{
    grid-template-columns:1fr;
    gap:24px;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
  }

  .language-switcher{
    min-height:38px;
  }
}


/* =========================================================
   LOT 9.3 — TITRE DU PANNEAU DES 4 ESPACES
   ========================================================= */
@media (min-width: 900px){
  .spaces-heading{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    flex-wrap:nowrap !important;
  }

  .spaces-heading h2{
    white-space:nowrap !important;
    font-size:clamp(17px, 1.35vw, 22px) !important;
    line-height:1.15 !important;
    margin:0 !important;
  }

  .spaces-heading span{
    white-space:nowrap !important;
    flex:0 0 auto !important;
    font-size:clamp(9px, .72vw, 12px) !important;
  }
}


/* =========================================================
   LOT 9.4 — ACCUEIL FIDÈLE À LA MAQUETTE VALIDÉE
   ========================================================= */

.home-hero{
  background:#075844;
  overflow:hidden;
}

.hero-grid{
  display:grid;
  grid-template-columns: 31.5% 34.5% 34%;
  min-height:510px;
  width:100%;
  max-width:none;
  margin:0;
}

.hero-copy{
  padding:38px 32px 24px 56px;
  background:
    linear-gradient(135deg,rgba(8,95,72,.98),rgba(4,70,54,.98));
  color:#fff;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-kicker{
  font-size:14px;
  letter-spacing:2.4px;
  font-weight:900;
  margin-bottom:20px;
  white-space:nowrap;
}

.hero-copy h1{
  margin:0;
  font-size:clamp(54px,4.4vw,79px);
  line-height:.93;
  letter-spacing:-2.7px;
  font-weight:950;
  color:#fff;
}

.hero-copy h1 span{
  color:#f5c83f;
}

.hero-description{
  max-width:540px;
  margin:26px 0 0;
  font-size:16px;
  line-height:1.62;
  color:#fff;
}

.hero-buttons{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:14px;
  margin-top:24px;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:56px;
  padding:0 24px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
}

.hero-btn.primary{
  background:#f6c735;
  color:#053d32;
  border:2px solid #f6c735;
  min-width:178px;
}

.hero-btn.trial{
  background:#fff;
  color:#075844;
  border:2px solid #fff;
  flex:0 1 175px;
}

.hero-btn.secondary{
  background:rgba(4,67,53,.28);
  color:#fff;
  border:2px solid #fff;
  min-width:250px;
}

.hero-btn:hover{
  transform:translateY(-1px);
  text-decoration:none;
}

.hero-btn-play{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  color:#0c6a54;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  padding-left:2px;
}

.hero-photo{
  position:relative;
  min-height:510px;
  overflow:hidden;
  background:#075844;
}

.hero-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

.hero-photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(4,77,59,.14),transparent 14%,transparent 86%,rgba(4,77,59,.14));
  pointer-events:none;
}

.spaces-panel{
  align-self:center;
  margin:28px 26px 28px 22px;
  padding:18px 18px 20px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 6px 22px rgba(0,0,0,.12);
  min-width:0;
}

.spaces-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
  margin-bottom:14px;
}

.spaces-heading h2{
  margin:0;
  color:#063e33;
  font-size:clamp(18px,1.25vw,23px);
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.3px;
  white-space:nowrap;
}

.spaces-heading span{
  color:#e4a900;
  font-weight:900;
  font-size:clamp(9px,.68vw,12px);
  white-space:nowrap;
}

.spaces-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.space-card{
  min-height:168px;
  padding:16px 12px 14px;
  border-radius:14px;
  text-align:center;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  transition:transform .18s ease, box-shadow .18s ease;
}

.space-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.08);
  text-decoration:none;
}

.space-card.pupil{background:#dfeafb;color:#2455a4}
.space-card.student{background:#e4f4e9;color:#0b8252}
.space-card.teacher{background:#fff0c9;color:#8a5c00}
.space-card.admin{background:#eee2ff;color:#5f26b0}

.space-icon{
  font-size:34px;
  line-height:1;
  margin-bottom:6px;
}

.space-card h3{
  margin:0 0 8px;
  font-size:18px;
  font-weight:950;
  color:inherit;
}

.space-card p{
  margin:0;
  font-size:13px;
  line-height:1.34;
  color:inherit;
  max-width:210px;
}

.space-arrow{
  margin-top:auto;
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.pupil .space-arrow{background:#3889df}
.student .space-arrow{background:#0b945f}
.teacher .space-arrow{background:#e5a60a}
.admin .space-arrow{background:#672dc3}

/* Stats strip */
.home-stats{
  background:linear-gradient(90deg,#075845,#064b3b);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.22);
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) 1.7fr;
  align-items:center;
  min-height:120px;
}

.stat-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:24px 28px;
  border-right:1px solid rgba(255,255,255,.24);
}

.stat-icon{
  font-size:40px;
  line-height:1;
  filter:grayscale(1) brightness(2.2);
}

.stat-item strong{
  display:block;
  font-size:22px;
  line-height:1.05;
  font-weight:950;
  color:#fff;
  margin-bottom:6px;
}

.stat-item span{
  display:block;
  color:#e6f0ec;
  font-size:14px;
}

.stat-quote{
  text-align:center;
  padding:20px 30px;
}

.stat-quote blockquote{
  margin:0 0 8px;
  font-style:italic;
  line-height:1.4;
  color:#fff;
  font-size:16px;
}

.stat-quote cite{
  color:#f0b813;
  font-weight:800;
  font-style:normal;
}

/* Benefits */
.home-benefits{
  background:#fff;
  border-top:1px solid #e9eeeb;
}

.benefits-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  min-height:118px;
  align-items:center;
}

.benefit-item{
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px 36px;
  border-right:1px solid #e3e8e5;
}

.benefit-item:last-child{
  border-right:0;
}

.benefit-icon{
  font-size:38px;
  line-height:1;
}

.benefit-item strong{
  display:block;
  color:#063e33;
  font-size:16px;
  margin-bottom:5px;
  font-weight:900;
}

.benefit-item span{
  display:block;
  color:#69736f;
  font-size:13px;
}

/* Desktop tuning */
@media (max-width:1500px){
  .hero-copy{
    padding-left:42px;
    padding-right:24px;
  }

  .hero-copy h1{
    font-size:clamp(50px,4.25vw,68px);
  }

  .hero-description{
    font-size:15px;
  }

  .spaces-panel{
    margin-right:18px;
    margin-left:18px;
  }

  .space-card{
    min-height:160px;
  }
}

@media (max-width:1280px){
  .hero-grid{
    grid-template-columns: 33% 32% 35%;
  }

  .hero-copy h1{
    font-size:clamp(46px,4vw,60px);
  }

  .hero-kicker{
    font-size:12px;
    letter-spacing:1.8px;
  }

  .hero-btn{
    font-size:14px;
    padding:0 18px;
  }

  .hero-btn.secondary{
    min-width:215px;
  }

  .spaces-heading h2{
    font-size:18px;
  }

  .spaces-heading span{
    font-size:9px;
  }

  .space-card h3{
    font-size:16px;
  }

  .space-card p{
    font-size:12px;
  }

  .stats-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) 1.45fr;
  }

  .stat-item{
    padding-left:20px;
    padding-right:20px;
  }
}

/* Tablet */
@media (max-width:1050px){
  .hero-grid{
    grid-template-columns:1fr;
  }

  .hero-copy{
    padding:36px 28px;
  }

  .hero-copy h1{
    font-size:clamp(48px,9vw,72px);
  }

  .hero-photo{
    min-height:430px;
  }

  .spaces-panel{
    margin:22px;
  }

  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .stat-quote{
    grid-column:1 / -1;
    border-top:1px solid rgba(255,255,255,.2);
  }

  .benefits-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* LOT 10.1 — priorité finale après les correctifs historiques */
@media (min-width:1051px){
  .hero-grid{min-height:448px !important;grid-template-columns:minmax(0,32%) minmax(0,32%) minmax(0,36%) !important}
  .hero-copy{padding:30px 22px 25px 62px !important}
  .hero-copy h1{font-size:clamp(52px,4.15vw,72px) !important;line-height:.91 !important;letter-spacing:-2.2px !important}
  .hero-kicker{margin-bottom:16px !important}
  .hero-description{margin-top:18px !important;max-width:520px !important}
  .hero-buttons{margin-top:18px !important}
  .hero-photo{min-height:448px !important}
  .hero-photo img{object-position:center center !important}
  .spaces-panel{margin:26px 32px 26px 16px !important;padding:15px !important;border-radius:14px !important}
  .space-card{min-height:142px !important;padding-top:12px !important;padding-bottom:10px !important}
  .space-icon{font-size:30px !important}
  .space-arrow{width:30px !important;height:30px !important;font-size:18px !important}
}

.stats-grid{min-height:96px !important}
.stat-item{gap:15px !important;padding:18px 26px !important}
.stat-icon{width:43px !important;height:43px !important;flex:0 0 43px !important;color:#fff !important;font-size:0 !important;filter:none !important}
.stat-icon svg{display:block;width:100%;height:100%;fill:currentColor;overflow:visible}
.stat-item strong{font-size:19px !important;margin-bottom:5px !important}
.stat-item span{font-size:12px !important;white-space:nowrap}
.stat-quote{padding:14px 26px !important}
.stat-quote blockquote{font-size:14px !important;margin-bottom:5px !important}
.stat-quote cite{font-size:12px}

@media (max-width:1280px) and (min-width:1051px){
  .hero-copy{padding-left:30px !important}
  .hero-copy h1{font-size:clamp(43px,4vw,53px) !important}
  .hero-grid{grid-template-columns:minmax(0,33%) minmax(0,31%) minmax(0,36%) !important}
  .stat-item{padding-left:14px !important;padding-right:14px !important;gap:10px !important}
  .stat-icon{width:35px !important;height:35px !important;flex-basis:35px !important}
  .stat-item strong{font-size:17px !important}
  .stat-item span{font-size:10.5px !important}
}

@media (max-width:1050px){.stat-item span{white-space:normal}}

/* =========================================================
   LOT 10 — FINITION ACCUEIL CONFORME À LA MAQUETTE
   ========================================================= */
.home-hero{background:linear-gradient(115deg,#075b46 0%,#034c3b 100%)}

@media (min-width:1051px){
  .hero-grid{min-height:448px !important;grid-template-columns:minmax(0,36%) minmax(0,28%) minmax(0,36%) !important}
  .hero-copy{padding:30px 22px 25px 62px !important}
  .hero-copy h1{font-size:clamp(52px,4.15vw,72px) !important;line-height:.91 !important;letter-spacing:-2.2px !important}
  .hero-kicker{margin-bottom:16px !important}
  .hero-description{margin-top:18px !important;max-width:520px !important}
  .hero-buttons{margin-top:18px !important}
  .hero-photo{min-height:448px !important}
  .hero-photo img{object-position:center 48% !important}
  .spaces-panel{margin:26px 32px 26px 16px !important;padding:15px !important;border-radius:14px !important}
  .space-card{min-height:142px !important;padding-top:12px !important;padding-bottom:10px !important}
  .space-icon{font-size:30px !important}
  .space-arrow{width:30px !important;height:30px !important;font-size:18px !important}
}

.stats-grid{min-height:96px !important}
.stat-item{gap:15px !important;padding:18px 26px !important}
.stat-icon{width:43px;height:43px;flex:0 0 43px;color:#fff;font-size:0 !important;filter:none !important}
.stat-icon svg{display:block;width:100%;height:100%;fill:currentColor;overflow:visible}
.stat-item strong{font-size:19px !important;margin-bottom:5px !important}
.stat-item span{font-size:12px !important;white-space:nowrap}
.stat-quote{padding:14px 26px !important}
.stat-quote blockquote{font-size:14px !important;margin-bottom:5px !important}
.stat-quote cite{font-size:12px}

@media (max-width:1280px) and (min-width:1051px){
  .hero-copy{padding-left:30px !important}
  .hero-copy h1{font-size:clamp(43px,4vw,53px) !important}
  .hero-grid{grid-template-columns:minmax(0,34%) minmax(0,28%) minmax(0,38%) !important}
  .stat-item{padding-left:14px !important;padding-right:14px !important;gap:10px !important}
  .stat-icon{width:35px;height:35px;flex-basis:35px}
  .stat-item strong{font-size:17px !important}
  .stat-item span{font-size:10.5px !important}
}

@media (max-width:1050px){
  .stat-item span{white-space:normal}
}

/* Mobile */
@media (max-width:640px){
  .hero-copy{
    padding:28px 20px;
  }

  .hero-kicker{
    white-space:normal;
  }

  .hero-copy h1{
    font-size:clamp(42px,13vw,58px);
  }

  .hero-buttons{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-btn,
  .hero-btn.primary,
  .hero-btn.trial,
  .hero-btn.secondary{
    width:100%;
    min-width:0;
  }

  .spaces-panel{
    margin:16px;
    padding:14px;
  }

  .spaces-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .spaces-heading h2{
    white-space:normal;
  }

  .spaces-grid{
    grid-template-columns:1fr;
  }

  .stats-grid,
  .benefits-grid{
    grid-template-columns:1fr;
  }

  .stat-item,
  .benefit-item{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.16);
  }
}


/* Header adjustments — closer to validated mockup */
.site-header{
  min-height:86px !important;
}

.header-grid{
  min-height:86px !important;
  grid-template-columns:minmax(300px,1.05fr) minmax(520px,1.55fr) auto !important;
}

.brand-logo{
  width:72px !important;
  height:72px !important;
  flex-basis:72px !important;
}

.brand-title{
  font-size:28px !important;
}

.brand-tagline{
  font-size:12px !important;
}

.main-nav{
  gap:26px !important;
}

.nav-link{
  font-size:14px !important;
}

.btn-header{
  min-height:50px !important;
  padding:0 22px !important;
  border-radius:12px !important;
}


/* =========================================================
   LOT 9.5 — CORRECTION DÉBORDEMENT / LARGEUR ÉCRAN
   ========================================================= */

/* Empêche tout élément de dépasser la largeur du viewport */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

img,
svg,
video,
canvas{
  max-width:100%;
}

/* Header */
.site-header,
.header-grid,
.page-wrap{
  width:100%;
  max-width:100%;
}

.header-grid{
  grid-template-columns:minmax(260px,1.05fr) minmax(0,1.55fr) auto !important;
  padding-left:24px !important;
  padding-right:24px !important;
  gap:18px !important;
}

.main-nav{
  min-width:0 !important;
  gap:20px !important;
}

.header-actions{
  min-width:0 !important;
  gap:10px !important;
}

/* Hero : les colonnes peuvent réellement rétrécir */
.hero-grid{
  width:100% !important;
  max-width:100% !important;
  grid-template-columns:
    minmax(0,31%)
    minmax(0,34%)
    minmax(0,35%) !important;
  overflow:hidden !important;
}

.hero-copy,
.hero-photo,
.spaces-panel{
  min-width:0 !important;
  max-width:100% !important;
}

.hero-copy{
  padding-left:44px !important;
  padding-right:20px !important;
}

.hero-copy h1{
  font-size:clamp(48px,4vw,70px) !important;
  line-height:.94 !important;
}

.hero-description{
  font-size:15px !important;
  line-height:1.55 !important;
  max-width:100% !important;
}

/* Boutons sans dépassement */
.hero-buttons{
  gap:12px !important;
  min-width:0 !important;
}

.hero-btn{
  min-width:0 !important;
  padding-left:18px !important;
  padding-right:18px !important;
  font-size:15px !important;
}

.hero-btn.primary{
  flex:0 1 180px !important;
}

.hero-btn.secondary{
  flex:0 1 250px !important;
}

/* Le panneau droit ne pousse plus la grille */
.spaces-panel{
  width:auto !important;
  margin:26px 18px 26px 16px !important;
  padding:16px !important;
  overflow:hidden !important;
}

.spaces-heading{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
}

.spaces-heading h2{
  min-width:0 !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:clamp(16px,1.18vw,21px) !important;
  letter-spacing:-.35px !important;
}

.spaces-heading span{
  white-space:nowrap !important;
  font-size:clamp(8px,.60vw,10.5px) !important;
  max-width:100% !important;
}

.spaces-grid{
  min-width:0 !important;
  width:100% !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}

.space-card{
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  padding-left:10px !important;
  padding-right:10px !important;
}

.space-card h3{
  font-size:clamp(15px,1.15vw,18px) !important;
  max-width:100% !important;
}

.space-card p{
  font-size:clamp(11px,.84vw,13px) !important;
  line-height:1.32 !important;
  max-width:100% !important;
  overflow-wrap:anywhere !important;
}

/* Stats / bénéfices */
.home-stats,
.home-benefits,
.stats-grid,
.benefits-grid{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}

.stat-item,
.stat-quote,
.benefit-item{
  min-width:0 !important;
}

/* 1366–1599 : compacter sans casser la maquette */
@media (max-width:1599px){
  .header-grid{
    grid-template-columns:minmax(250px,.95fr) minmax(0,1.45fr) auto !important;
    gap:14px !important;
  }

  .brand-title{
    font-size:25px !important;
  }

  .brand-logo{
    width:64px !important;
    height:64px !important;
    flex-basis:64px !important;
  }

  .main-nav{
    gap:16px !important;
  }

  .nav-link{
    font-size:13.5px !important;
  }

  .btn-header{
    min-height:46px !important;
    padding:0 17px !important;
    font-size:13px !important;
  }

  .hero-grid{
    grid-template-columns:
      minmax(0,31.5%)
      minmax(0,33%)
      minmax(0,35.5%) !important;
  }

  .hero-copy{
    padding-left:34px !important;
  }

  .hero-copy h1{
    font-size:clamp(46px,3.8vw,62px) !important;
  }

  .hero-kicker{
    font-size:11.5px !important;
    letter-spacing:1.8px !important;
  }

  .hero-description{
    font-size:14px !important;
  }

  .hero-btn{
    font-size:13.5px !important;
    min-height:52px !important;
  }

  .spaces-panel{
    margin-left:12px !important;
    margin-right:12px !important;
    padding:14px !important;
  }

  .spaces-heading h2{
    font-size:16px !important;
  }

  .spaces-heading span{
    font-size:8.5px !important;
  }

  .space-card{
    min-height:150px !important;
  }

  .space-icon{
    font-size:29px !important;
  }

  .space-card h3{
    font-size:15px !important;
  }

  .space-card p{
    font-size:11px !important;
  }
}

/* Écrans portables */
@media (max-width:1280px){
  .header-grid{
    grid-template-columns:minmax(220px,.9fr) minmax(0,1.3fr) auto !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .brand-tagline{
    display:none !important;
  }

  .main-nav{
    gap:12px !important;
  }

  .nav-link{
    font-size:12.5px !important;
  }

  .hero-grid{
    grid-template-columns:
      minmax(0,32%)
      minmax(0,32%)
      minmax(0,36%) !important;
  }

  .hero-copy{
    padding-left:24px !important;
    padding-right:14px !important;
  }

  .hero-copy h1{
    font-size:clamp(42px,3.7vw,54px) !important;
  }

  .hero-description{
    font-size:13.5px !important;
  }

  .hero-buttons{
    gap:8px !important;
  }

  .hero-btn{
    padding-left:14px !important;
    padding-right:14px !important;
    font-size:12.5px !important;
  }

  .spaces-heading h2{
    font-size:15px !important;
  }

  .spaces-heading span{
    font-size:8px !important;
  }
}

/* Tablette : empilage avant tout débordement */
@media (max-width:1050px){
  .hero-grid{
    grid-template-columns:1fr !important;
    overflow:visible !important;
  }

  .hero-copy,
  .hero-photo,
  .spaces-panel{
    width:100% !important;
  }

  .spaces-panel{
    margin:20px !important;
  }

  .spaces-heading h2{
    overflow:visible !important;
    text-overflow:clip !important;
  }
}

/* LOT 10.2 — rendu final conforme à la référence */
@media (min-width:1051px){
  .hero-grid{height:440px !important;min-height:440px !important;grid-template-columns:minmax(0,32%) minmax(0,32%) minmax(0,36%) !important}
  .hero-copy{padding:20px 20px 20px 52px !important}
  .hero-copy h1{font-size:clamp(48px,3.65vw,59px) !important;line-height:.91 !important;letter-spacing:-2px !important}
  .hero-kicker{margin-bottom:12px !important}
  .hero-description{margin-top:13px !important;max-width:520px !important;line-height:1.45 !important}
  .hero-buttons{margin-top:14px !important}
  .hero-btn{min-height:48px !important}
  .hero-photo{height:440px !important;min-height:440px !important}
  .hero-photo img{object-position:center center !important}
  .spaces-panel{width:calc(100% - 36px) !important;max-width:calc(100% - 36px) !important;margin:18px 22px 18px 14px !important;padding:13px !important;border-radius:14px !important;overflow:hidden !important}
  .spaces-heading{min-width:0 !important;overflow:hidden !important;gap:8px !important}
  .spaces-heading h2{font-size:clamp(15px,1.05vw,18px) !important;overflow:visible !important;text-overflow:clip !important}
  .spaces-heading span{font-size:clamp(7px,.53vw,9px) !important}
  .space-card{min-height:154px !important;padding:10px 8px 8px !important}
  .space-icon{font-size:27px !important;margin-bottom:4px !important}
  .space-card h3{font-size:15px !important;margin-bottom:5px !important}
  .space-card p{font-size:11px !important;line-height:1.24 !important}
  .space-arrow{width:28px !important;height:28px !important;font-size:17px !important}
}
.stats-grid{min-height:96px !important}
.stat-item{gap:15px !important;padding:18px 26px !important}
.stat-icon{width:43px !important;height:43px !important;flex:0 0 43px !important;color:#fff !important;font-size:0 !important;filter:none !important}
.stat-icon svg{display:block;width:100%;height:100%;fill:currentColor;overflow:visible}
.stat-item strong{font-size:19px !important;margin-bottom:5px !important}
.stat-item span{font-size:12px !important;white-space:nowrap}
.stat-quote{padding:14px 26px !important}
.stat-quote blockquote{font-size:14px !important;margin-bottom:5px !important}
.stat-quote cite{font-size:12px}
@media (max-width:1280px) and (min-width:1051px){
  .hero-copy{padding-left:30px !important}
  .hero-copy h1{font-size:clamp(43px,4vw,53px) !important}
  .hero-grid{grid-template-columns:minmax(0,33%) minmax(0,31%) minmax(0,36%) !important}
  .stat-item{padding-left:14px !important;padding-right:14px !important;gap:10px !important}
  .stat-icon{width:35px !important;height:35px !important;flex-basis:35px !important}
  .stat-item strong{font-size:17px !important}
  .stat-item span{font-size:10.5px !important}
}
@media (max-width:1050px){.stat-item span{white-space:normal}}

@media (min-width:1051px) and (max-width:1599px){
  .hero-copy{padding-left:28px !important}
  .hero-copy h1{font-size:clamp(45px,3.55vw,54px) !important}
  .hero-description{font-size:13px !important}
  .hero-btn{font-size:12.5px !important;padding-left:12px !important;padding-right:12px !important}
  .spaces-panel{width:calc(100% - 24px) !important;max-width:calc(100% - 24px) !important;margin-left:12px !important;margin-right:12px !important}
}

/* Actions principales de l'accueil : trois boutons alignés et homogènes. */
.home-hero .hero-buttons{
  display:flex !important;
  width:100% !important;
  gap:10px !important;
}

.home-hero .hero-buttons .hero-btn{
  flex:1 1 0 !important;
  width:auto !important;
  min-width:0 !important;
  min-height:50px !important;
  padding:0 6px !important;
  border-radius:12px !important;
  font-size:11px !important;
  line-height:1.15 !important;
  text-align:center !important;
  gap:4px !important;
  overflow:hidden !important;
}

.home-hero .hero-buttons .hero-btn-play{
  width:16px !important;
  height:16px !important;
  flex:0 0 16px !important;
  margin:0 !important;
}

.home-hero .hero-buttons .hero-btn-icon{
  flex:0 0 auto !important;
  margin:0 !important;
}

.home-hero .hero-btn.trial,
.home-hero .hero-btn.primary{
  background:#f6c735 !important;
  color:#053d32 !important;
  border:2px solid #f6c735 !important;
}

.home-hero .hero-btn.secondary{
  background:rgba(4,67,53,.28) !important;
  color:#fff !important;
  border:2px solid #fff !important;
}

@media (max-width:640px){
  .home-hero .hero-buttons{
    flex-direction:column !important;
  }
  .home-hero .hero-buttons .hero-btn{
    flex:none !important;
    width:100% !important;
    font-size:14px !important;
  }
}

/* --------------------------------------------------------------------------
   Tarification v2 — affichage moderne et responsive
   -------------------------------------------------------------------------- */
.pricing-page-v2{background:#fff;padding:34px 0 28px;color:#0b1b34}
.pricing-page-v2 .pricing-shell{width:min(1680px,calc(100% - 48px));margin:0 auto}
.pricing-page-v2 .pricing-hero{max-width:1080px;margin:0 auto 20px}
.pricing-page-v2 .pricing-kicker{display:inline-flex;align-items:center;justify-content:center;padding:7px 24px;border-radius:999px;background:#d9f7e7;color:#08785d;font-size:.78rem;font-weight:900;letter-spacing:.16em}
.pricing-page-v2 .pricing-hero h1{margin:10px 0 6px;font-size:clamp(2rem,3vw,3.4rem);line-height:1.05;font-weight:900;letter-spacing:-.035em;color:#073a35}
.pricing-page-v2 .pricing-hero p{margin:0;color:#536179;font-size:clamp(.96rem,1.25vw,1.18rem)}
.pricing-page-v2 .pricing-trust{max-width:1230px;margin:22px auto 30px;display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.pricing-page-v2 .pricing-trust-item{display:flex;align-items:center;justify-content:center;gap:14px;min-width:0}
.pricing-page-v2 .pricing-trust-item>span:last-child{display:flex;flex-direction:column;min-width:0}
.pricing-page-v2 .pricing-trust-item strong{font-size:.98rem;color:#0b1b34}
.pricing-page-v2 .pricing-trust-item small{font-size:.88rem;color:#66758a}
.pricing-page-v2 .pricing-trust-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:1.42rem;font-weight:900;flex:0 0 auto}
.pricing-page-v2 .pricing-trust-icon--green{background:#dff9e9;color:#0b946c}.pricing-page-v2 .pricing-trust-icon--blue{background:#e6f2ff;color:#1874d1}.pricing-page-v2 .pricing-trust-icon--purple{background:#efe6ff;color:#6e35c9}
.pricing-page-v2 .pricing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:stretch}
.pricing-page-v2 .pricing-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1px solid #dce5ea;border-radius:16px;padding:24px 24px 22px;box-shadow:0 9px 30px rgba(31,58,78,.06);transform:none}
.pricing-page-v2 .pricing-card--featured{border:2px solid #10a875;padding-top:54px;box-shadow:0 12px 34px rgba(16,168,117,.12)}
.pricing-page-v2 .pricing-recommended{position:absolute;inset:0 0 auto;height:32px;display:flex;align-items:center;justify-content:center;background:#12a870;color:#fff;font-size:.78rem;font-weight:900;letter-spacing:.06em}
.pricing-page-v2 .pricing-card-head{display:flex;align-items:flex-start;gap:16px;min-height:76px}
.pricing-page-v2 .pricing-card-head--with-banner{min-height:76px}
.pricing-page-v2 .pricing-plan-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-size:1.45rem;font-weight:900}
.pricing-page-v2 .pricing-plan-icon--student{background:#dff9e9;color:#06916a}.pricing-page-v2 .pricing-plan-icon--essential{background:#e4f1ff;color:#176dca}.pricing-page-v2 .pricing-plan-icon--professional{background:#dff8ea;color:#07936a}.pricing-page-v2 .pricing-plan-icon--institutional{background:#efe7ff;color:#6935c3}
.pricing-page-v2 .pricing-card h2{margin:4px 0 2px;font-size:1.27rem;font-weight:900;color:#0c1529}
.pricing-page-v2 .pricing-card-head p{margin:0;line-height:1.25;color:#66758a;font-size:.91rem}
.pricing-page-v2 .pricing-amount{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:15px;white-space:normal}
.pricing-page-v2 .pricing-amount strong{font-size:clamp(2rem,2.2vw,2.7rem);line-height:1;font-weight:900;letter-spacing:-.035em;color:#0a1020}
.pricing-page-v2 .pricing-amount span{font-size:1rem;color:#536179}
.pricing-page-v2 .pricing-cycle,.pricing-page-v2 .pricing-annual-row{min-height:28px;margin-top:9px;color:#536179;font-size:.95rem}
.pricing-page-v2 .pricing-annual-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pricing-page-v2 .pricing-save{display:inline-flex;padding:4px 12px;border-radius:999px;background:#dff8e9;color:#0b8b62;font-size:.74rem;font-weight:800;white-space:nowrap}
.pricing-page-v2 .pricing-divider{height:1px;background:#e3e9ed;margin:14px 0 12px}
.pricing-page-v2 .pricing-features{list-style:none;margin:0 0 18px;padding:0;min-height:0;flex:1}
.pricing-page-v2 .pricing-features li{position:relative;padding-left:31px;margin:0 0 10px;color:#35455c;font-size:.92rem;line-height:1.28}
.pricing-page-v2 .pricing-features li::before{content:"✓";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#18a875;color:#fff;font-size:.7rem;font-weight:900}
.pricing-page-v2 .pricing-card--essential .pricing-features li::before{background:#247be1}.pricing-page-v2 .pricing-card--institutional .pricing-features li::before{background:#6e45d7}
.pricing-page-v2 .pricing-cta{margin-top:auto;min-height:46px;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:18px;text-decoration:none;font-weight:800;border:1px solid transparent;transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}
.pricing-page-v2 .pricing-cta:hover{transform:translateY(-1px);filter:brightness(.98);box-shadow:0 7px 16px rgba(0,0,0,.08)}
.pricing-page-v2 .pricing-cta--outline{border-color:#19a875;color:#07885f;background:#fff}.pricing-page-v2 .pricing-cta--blue{background:#267bec;color:#fff}.pricing-page-v2 .pricing-cta--green{background:#07956d;color:#fff}.pricing-page-v2 .pricing-cta--purple{background:#7149d8;color:#fff}
.pricing-page-v2 .pricing-custom-offer{max-width:1120px;margin:16px auto 8px;border:1px solid #cfeadf;background:#f1fbf6;border-radius:10px;padding:10px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#436157;font-size:.86rem}
.pricing-page-v2 .pricing-custom-offer strong{color:#185b48}.pricing-page-v2 .pricing-custom-offer a{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;border:1px solid #75bba3;border-radius:7px;padding:8px 22px;color:#0b7d5d;text-decoration:none;font-weight:800;background:#fff}
.pricing-page-v2 .pricing-info-icon{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;margin-right:7px;background:#19a875;color:#fff;font-size:.72rem;font-weight:900}
.pricing-page-v2 .pricing-bottom-trust{display:flex;justify-content:center;gap:0;margin-top:10px;color:#526177;font-size:.83rem}
.pricing-page-v2 .pricing-bottom-trust span{padding:0 28px;border-right:1px solid #d8e0e5}.pricing-page-v2 .pricing-bottom-trust span:last-child{border-right:0}
@media(max-width:1250px){.pricing-page-v2 .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-page-v2 .pricing-card{min-height:590px}}
@media(max-width:800px){.pricing-page-v2{padding-top:24px}.pricing-page-v2 .pricing-shell{width:min(100% - 28px,720px)}.pricing-page-v2 .pricing-trust{grid-template-columns:1fr;gap:12px;margin:18px 0 24px}.pricing-page-v2 .pricing-trust-item{justify-content:flex-start}.pricing-page-v2 .pricing-grid{grid-template-columns:1fr}.pricing-page-v2 .pricing-card{min-height:auto}.pricing-page-v2 .pricing-card--featured{order:-1}.pricing-page-v2 .pricing-custom-offer{flex-direction:column;align-items:stretch;text-align:center}.pricing-page-v2 .pricing-custom-offer a{justify-content:center}.pricing-page-v2 .pricing-bottom-trust{flex-wrap:wrap;row-gap:10px}.pricing-page-v2 .pricing-bottom-trust span{padding:0 14px}}
@media(max-width:430px){.pricing-page-v2 .pricing-card{padding:20px 18px}.pricing-page-v2 .pricing-card--featured{padding-top:51px}.pricing-page-v2 .pricing-card-head{gap:12px}.pricing-page-v2 .pricing-plan-icon{width:48px;height:48px}.pricing-page-v2 .pricing-amount strong{font-size:2rem}.pricing-page-v2 .pricing-bottom-trust span{border:0;width:100%;text-align:center}}
