/* Espace Éducation : bleu. Accueil natif, sans image de maquette. */
.ed{ background:#f5f8ff; padding:0 0 56px; }
.ed .ed-wrap{ max-width:1120px; margin:0 auto; padding:0 16px; }
.ed .ed-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.ed .ed-hero{ margin-top:14px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px; align-items:center; background:linear-gradient(110deg,#eef4ff 0%,#dbe8ff 55%,#bfd7ff 100%); border:1px solid #bfd7ff; border-radius:22px; padding:40px 40px 0; overflow:hidden; box-shadow:0 22px 50px -24px rgba(29,78,216,.45); }
.ed .ed-hero-texte{ padding-bottom:40px; }
.ed .ed-kicker{ color:#1d4ed8; font-weight:800; font-size:14px; margin:0 0 8px; }
.ed h1.ed-titre{ margin:0 0 6px; font-size:40px; line-height:1.12; color:#0b2a6b; font-weight:800; }
.ed .ed-sous{ margin:0 0 14px; font-size:22px; line-height:1.3; color:#1e40af; font-weight:700; }
.ed .ed-texte{ margin:0 0 24px; font-size:16px; line-height:1.55; color:#334155; }
.ed .ed-photo{ min-width:0; align-self:end; border-radius:18px 18px 0 0; overflow:hidden; min-height:260px; background:#dbeafe; }
.ed .ed-photo img{ display:block; width:100%; height:100%; object-fit:cover; object-position:center 20%; }
.ed .ed-btn{ display:inline-block; padding:13px 22px; border-radius:12px; font-weight:800; text-decoration:none; font-size:15px; }
.ed .ed-btn-plein{ background:#1d4ed8; color:#fff; box-shadow:0 10px 20px -12px rgba(29,78,216,.9); }
.ed .ed-btn-plein:hover{ background:#1e40af; }
.ed .ed-cartes{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; list-style:none; margin:-28px 0 0; padding:0; position:relative; }
.ed .ed-carte{ display:flex; flex-direction:column; gap:10px; height:100%; min-width:0; background:#fff; border:1px solid #dbeafe; border-radius:18px; padding:22px 18px 18px; color:#0b2a6b; text-decoration:none; box-shadow:0 14px 30px -20px rgba(29,78,216,.45); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ed .ed-carte:hover{ transform:translateY(-3px); border-color:#60a5fa; box-shadow:0 20px 36px -18px rgba(29,78,216,.55); }
.ed .ed-icone{ width:50px; height:50px; border-radius:15px; background:#dbeafe; color:#1d4ed8; display:flex; align-items:center; justify-content:center; }
.ed .ed-icone svg{ width:27px; height:27px; }
.ed .ed-carte strong{ font-size:17px; line-height:1.3; }
.ed .ed-carte .ed-t{ font-size:14px; color:#475569; line-height:1.5; }
.ed .ed-carte .ed-suite{ margin-top:auto; color:#1d4ed8; font-weight:700; font-size:14px; }
.ed .ed-bloc{ margin-top:44px; }
.ed h2.ed-titre2{ margin:0 0 8px; font-size:24px; color:#0b2a6b; font-weight:800; }
.ed .ed-intro{ margin:0 0 16px; color:#475569; font-size:15px; line-height:1.55; max-width:720px; }
.ed .ed-bandeau{ margin-top:44px; display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; background:linear-gradient(120deg,#0b2a6b,#1d4ed8); color:#fff; border-radius:20px; padding:22px 28px; }
.ed .ed-bandeau p{ margin:0; font-size:18px; font-weight:700; line-height:1.4; }
.ed .ed-bandeau a{ background:#fff; color:#0b2a6b; font-weight:800; text-decoration:none; padding:12px 18px; border-radius:12px; white-space:nowrap; }
@media (max-width:960px){
  .ed .ed-hero{ grid-template-columns:1fr; padding:28px 24px 0; }
  .ed .ed-hero-texte{ padding-bottom:24px; }
  .ed .ed-photo{ min-height:220px; aspect-ratio:16/10; height:auto; }
  .ed .ed-cartes{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ed .ed-bandeau{ grid-template-columns:1fr; text-align:center; justify-items:center; }
}
@media (max-width:600px){
  .ed .ed-wrap{ padding:0 12px; }
  .ed .ed-hero{ border-radius:16px; padding:22px 18px 0; margin-top:12px; }
  .ed h1.ed-titre{ font-size:28px; }
  .ed .ed-sous{ font-size:18px; }
  .ed .ed-texte{ font-size:14.5px; margin-bottom:18px; }
  .ed .ed-btn{ display:block; text-align:center; }
  .ed .ed-cartes{ grid-template-columns:minmax(0,1fr); gap:12px; }
  /* Téléphone : icône et titre sur une ligne, texte et lien pleine largeur.
     Évite les mots coupés au milieu dans une colonne trop étroite. */
  .ed .ed-carte{ flex-direction:row; flex-wrap:wrap; align-items:center; padding:16px 14px; border-radius:14px; column-gap:14px; row-gap:8px; }
  .ed .ed-carte .ed-icone{ flex:none; width:44px; height:44px; }
  .ed .ed-carte strong{ flex:1 1 0; min-width:0; font-size:16px; overflow-wrap:break-word; hyphens:auto; }
  .ed .ed-carte .ed-t{ flex:0 0 100%; font-size:14px; }
  .ed .ed-carte .ed-suite{ flex:0 0 100%; margin-top:0; padding-top:2px; }
  .ed h2.ed-titre2{ font-size:21px; }
  .ed .ed-bandeau{ padding:20px 18px; }
  .ed .ed-bandeau p{ font-size:16px; }
  .ed .ed-bandeau a{ width:100%; text-align:center; box-sizing:border-box; }
}
