/* =========================================================
   Espace Dominique Savio – feuille de style
   Charte graphique d'origine : Open Sans, rose #dc8cdb,
   accent #d473d4, dégradé rose → pêche, titres marine #002060
   ========================================================= */
:root {
  --rose: #dc8cdb;
  --rose-fonce: #d473d4;
  --peche: #f6bf9f;
  --marine: #002060;
  --texte: #4a4a4a;
  --gris: #7a7a7a;
  --noir: #111;
  --fond-doux: #fdf5fc;
  --degrade: linear-gradient(-145deg, rgba(219,138,222,1) 0%, rgba(246,191,159,1) 100%);
  --ombre: 0 0 15px rgba(0,0,0,.06);
  --ombre-forte: 0 12px 30px rgba(180,90,180,.18);
  --rayon: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: #fff;
  color: var(--texte);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-fonce); text-decoration: none; transition: opacity .3s, color .3s; }
a:hover { opacity: .8; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--noir); }
::selection { background: var(--rose); color: #fff; }
.rose { color: var(--rose-fonce); }
.conteneur { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.evitement { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 999; }
.evitement:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rose-fonce); outline-offset: 2px; }

section { padding: 90px 0 0; position: relative; overflow-x: clip; }

/* Titres de section (comme le gabarit d'origine) */
.titre-section { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }
.titre-section h6 { font-size: 13px; text-transform: uppercase; color: var(--gris); font-weight: 600; letter-spacing: .5px; }
.titre-section h2 { margin-top: 12px; font-size: 30px; line-height: 1.3; font-weight: 800; text-transform: uppercase; }
.titre-section h2 em, h1 em, .contact h2 em { font-style: normal; color: var(--rose); }

/* Bouton dégradé */
.bouton-degrade {
  display: inline-block; color: #fff; background: var(--degrade);
  padding: 13px 32px; border-radius: 5px; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .5px; box-shadow: var(--ombre-forte);
  transition: transform .3s, opacity .3s;
}
.bouton-degrade:hover { color: #fff; transform: translateY(-2px); opacity: .92; }

/* =================== En-tête =================== */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  transition: background .4s, box-shadow .4s;
}
.entete.defile { background: var(--degrade); box-shadow: 0 0 10px rgba(0,0,0,.15); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.logo { background: rgba(255,255,255,.85); border-radius: 12px; padding: 4px 10px; }
.logo img { width: 250px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu a, .menu button {
  display: block; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600;
  text-transform: uppercase; color: #1e1e1e; background: none; border: 0; cursor: pointer;
  border-radius: 20px; letter-spacing: .3px;
}
.menu a:hover, .menu button:hover, .menu a.actif { color: var(--rose); opacity: 1; }
.entete.defile .menu > li > a, .entete.defile .menu > li > button { color: #fff; }
.entete.defile .menu > li > a.actif { background: rgba(255,255,255,.25); }
.sous-menu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: #fff; border-radius: 10px; box-shadow: var(--ombre-forte);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s;
}
.a-sous-menu:hover .sous-menu, .a-sous-menu.ouvert .sous-menu, .a-sous-menu:focus-within .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { text-transform: none; font-weight: 500; font-size: 14px; border-radius: 0; color: #1e1e1e !important; }
.sous-menu a:hover { background: var(--fond-doux); color: var(--rose-fonce) !important; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 3px; background: var(--rose-fonce); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.entete.defile .burger span { background: #fff; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =================== Accueil =================== */
.accueil { padding-top: 130px; position: relative; }
/* décor à pois (remplace les images décoratives du gabarit) */
.accueil::before, .pratique::before, .contact::before {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  background-image: radial-gradient(circle, rgba(219,138,222,.45) 2.5px, transparent 3px);
  background-size: 18px 18px;
}
.accueil::before { width: 380px; height: 380px; right: -120px; top: 90px; }
.accueil::after {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 420px; left: -110px; top: 420px;
  border-radius: 0 220px 220px 0; background: radial-gradient(circle, rgba(246,191,159,.55) 2.5px, transparent 3px) 0 0 / 18px 18px;
}
.accueil__grille { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.accueil__texte h6 { font-size: 17px; font-weight: 700; color: #777; }
.disciplines { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.disciplines li {
  font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  background: var(--fond-doux); color: var(--rose-fonce); border: 1px solid rgba(219,138,222,.4);
}
.accueil h1 { margin: 22px 0 22px; font-size: 60px; line-height: 1.12; font-weight: 800; color: var(--marine); }
.pastilles { list-style: none; padding: 0; margin: 0 0 14px; }
.pastilles li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.pastilles li::before { content: "■"; color: var(--rose-fonce); position: absolute; left: 0; font-size: 12px; top: 2px; }
.choeur { font-size: 14px; margin: 0 0 26px; padding-left: 22px; position: relative; }
.choeur::before { content: "⦿"; color: var(--rose-fonce); position: absolute; left: 0; }
.accueil__image img { width: 100%; animation: flotter 6s ease-in-out infinite; }
.slogan { text-align: center; font-weight: 700; font-size: 18px; margin: 10px 0 0; color: var(--noir); }
.slogan b { color: var(--rose-fonce); }
@keyframes flotter { 50% { transform: translateY(-10px); } }

.mouvement { list-style: none; margin: 40px 0 0; padding: 26px 30px; background: var(--fond-doux); border-radius: var(--rayon); border-left: 5px solid var(--rose); }
.mouvement li { position: relative; padding-left: 22px; margin: 6px 0; }
.mouvement li::before { content: "■"; color: var(--rose-fonce); position: absolute; left: 0; font-size: 12px; top: 2px; }

/* =================== Lecteur audio =================== */
.lecteur {
  position: relative; margin-top: 50px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  background: var(--degrade); color: #fff; border-radius: 20px; padding: 18px 24px; box-shadow: var(--ombre-forte);
}
.lecteur__disque { width: 64px; height: 64px; border-radius: 50%; background: repeating-radial-gradient(circle, #3d3a5c 0 2px, #4b4870 2px 4px); display: grid; place-items: center; }
.lecteur__disque span { width: 22px; height: 22px; border-radius: 50%; background: #ffd23f; border: 3px solid #fff; }
.lecteur.joue .lecteur__disque { animation: tourner 3s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }
.lecteur__label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .9; font-weight: 600; }
.lecteur__titre { margin: 0; font-size: 19px; font-weight: 800; color: #fff; }
.lecteur__progression { display: flex; align-items: center; gap: 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.lecteur__progression input { flex: 1; accent-color: #fff; cursor: pointer; }
.lecteur__commandes { display: flex; gap: 8px; }
.lecteur__commandes button {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.15);
  color: #fff; font-size: 16px; cursor: pointer; transition: background .2s, transform .2s;
}
.lecteur__commandes button:hover { background: rgba(255,255,255,.35); transform: scale(1.06); }
.lecteur__commandes .lecteur__lire { width: 52px; height: 52px; background: #fff; color: var(--rose-fonce); font-size: 20px; border-color: #fff; }
.lecteur__liste {
  grid-column: 1 / -1; margin: 0; padding: 8px; list-style: none; background: rgba(255,255,255,.95);
  border-radius: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; counter-reset: piste;
}
.lecteur__liste[hidden] { display: none; }
.lecteur__liste button {
  width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--texte); counter-increment: piste;
}
.lecteur__liste button::before { content: counter(piste) ". "; color: var(--rose-fonce); font-weight: 700; }
.lecteur__liste button:hover { background: var(--fond-doux); }
.lecteur__liste button.en-cours { background: var(--rose); color: #fff; font-weight: 700; }
.lecteur__liste button.en-cours::before { color: #fff; }

/* =================== Activités (carrousel) =================== */
.carrousel { position: relative; }
.carrousel__piste {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 15px 4px 25px; scrollbar-width: none;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.carte-activite {
  scroll-snap-align: start; background: #fff; border-radius: var(--rayon); padding: 40px 26px 30px; text-align: center;
  box-shadow: var(--ombre); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.carte-activite::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--degrade); }
.carte-activite:hover { transform: translateY(-8px); box-shadow: var(--ombre-forte); }
.carte-activite img { width: 86px; height: 86px; margin: 0 auto 18px; transition: transform .5s; }
.carte-activite:hover img { transform: rotate(-8deg) scale(1.08); }
.carte-activite h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.carte-activite p { margin: 0 0 12px; font-size: 14px; }
.coches { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; display: inline-block; align-self: center; }
.coches li { padding-left: 24px; position: relative; font-size: 14px; margin: 3px 0; }
.coches li::before { content: "✔"; color: var(--rose-fonce); position: absolute; left: 0; }
.chansons { margin-top: auto; text-align: left; background: var(--fond-doux); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.chansons p { font-weight: 700; margin-bottom: 6px; font-size: 13px; }
.chansons button {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 3px 0; cursor: pointer;
  font: inherit; color: var(--texte);
}
.chansons button::before { content: "▶ "; color: var(--rose-fonce); font-size: 11px; }
.chansons button:hover { color: var(--rose-fonce); }
.carte-activite .lien-plus { margin-top: auto; font-weight: 700; }
.carrousel__fleche {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; box-shadow: var(--ombre-forte); color: var(--rose-fonce); font-size: 28px; line-height: 1; cursor: pointer;
  display: none;
}
.carrousel__fleche--g { left: -14px; } .carrousel__fleche--d { right: -14px; }
.carrousel__points { display: none; justify-content: center; gap: 8px; margin-top: 8px; }
.carrousel__points button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #ddd; cursor: pointer; padding: 0; }
.carrousel__points button.actif { background: var(--rose); }

/* =================== En pratique (onglets) =================== */
.pratique { position: relative; }
.pratique::before { width: 290px; height: 290px; left: -150px; top: 60px; }
.onglets { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.onglets__menu { display: flex; flex-direction: column; gap: 18px; }
.onglets__menu button {
  font: inherit; font-size: 17px; font-weight: 800; color: var(--noir); background: #fff; cursor: pointer;
  padding: 14px 20px; border-radius: 5px; border: 3px solid rgba(219,138,222,.5); text-align: center; transition: all .4s;
}
.onglets__menu button:hover { border-color: var(--rose); }
.onglets__menu button[aria-selected="true"] { color: var(--rose); border-color: var(--rose); box-shadow: var(--ombre-forte); }
.panneau {
  display: grid; grid-template-columns: 300px 1fr; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden;
  animation: glisser .6s cubic-bezier(.075,.82,.165,1);
}
.panneau[hidden] { display: none; }
@keyframes glisser { from { opacity: 0; transform: translateX(40px); } }
.panneau__image { background: linear-gradient(-145deg, #f7e0f7, #fde8db); display: flex; align-items: center; }
.panneau__image img { width: 100%; }
.panneau__texte { padding: 36px 40px; }
.panneau__texte h3 { font-size: 21px; font-weight: 800; margin-bottom: 18px; }
.panneau__texte p { text-align: justify; margin: 0 0 12px; font-size: 14.5px; }
.infos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 6px; }
.infos li { background: var(--fond-doux); border: 1px solid rgba(219,138,222,.45); border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.infos li::before { content: "✔ "; color: var(--rose-fonce); }
.groupe { padding: 16px 18px; border-radius: 12px; background: var(--fond-doux); margin-bottom: 14px; }
.groupe h4 { color: var(--rose-fonce); font-size: 17px; }
.groupe .infos li { background: #fff; }
.groupe p { margin: 0; }

/* =================== Formation =================== */
.formation__carte { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.formation__carte img { width: 100%; height: 100%; object-fit: cover; }
.formation__texte { padding: 36px 40px; }
.formation__texte h3 { font-size: 18px; font-weight: 800; margin: 18px 0 14px; }
.formation__texte p { text-align: justify; }
.titre-section h2 small { display: block; font-size: 16px; color: var(--gris); text-transform: none; font-weight: 600; margin-top: 4px; }
.formation__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.point { background: var(--fond-doux); border-radius: 12px; padding: 18px; border-top: 4px solid var(--rose); }
.point h4 { color: var(--rose-fonce); font-size: 16px; margin-bottom: 6px; }
.point p { font-size: 13.5px; margin: 0; text-align: left; }
.formation__contact { text-align: center !important; margin-top: 24px; font-weight: 700; }

/* BACV : suite du texte du carrousel */
.bacv { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 36px 40px; margin-bottom: 40px; position: relative; overflow: hidden; }
.bacv::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--degrade); }
.bacv h3 { font-size: 24px; font-weight: 800; color: var(--marine); margin-bottom: 26px; }
.bacv__frise { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: etape; }
.bacv__frise li { position: relative; text-align: center; padding: 46px 8px 0; counter-increment: etape; line-height: 1.35; }
.bacv__frise li::before {
  content: counter(etape); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; background: var(--degrade); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.bacv__frise li::after { content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 3px; background: rgba(219,138,222,.35); }
.bacv__frise li:last-child::after { display: none; }
.bacv__frise b { display: block; color: var(--noir); font-size: 14px; }
.bacv__frise span { font-size: 13px; color: var(--rose-fonce); font-weight: 600; }
.bacv__texte p { text-align: justify; font-size: 14.5px; }
.bacv__alire { background: #fff8e6; border: 2px solid #ffd23f; border-radius: 12px; padding: 20px 24px; margin-top: 10px; }
.bacv__alire h4 { font-size: 17px; margin-bottom: 10px; }
.bacv__alire h4::before { content: "⚠️ "; }
.bacv__alire ul { margin: 0; padding-left: 20px; }
.bacv__alire li { margin: 6px 0; font-size: 14.5px; }
.bacv__alire li::marker { color: var(--rose-fonce); }
.carte-activite .note { font-size: 13px; font-style: italic; color: var(--gris); }
.exergue {
  position: relative; margin: 4px 0 16px; padding: 18px 16px 14px; border-radius: 12px; text-align: left;
  background: linear-gradient(-145deg, #a947ad 0%, #c8644a 100%); color: #fff; font-size: 13.5px; line-height: 1.55; box-shadow: var(--ombre-forte);
}
.exergue::before {
  content: "★"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: #ffd23f; color: #7b3fa0; font-size: 14px; display: grid; place-items: center;
}
.exergue b { color: #fff; }
.exergue a { color: #fff; font-weight: 800; text-decoration: underline; }

/* =================== Contact =================== */
.contact { position: relative; padding-bottom: 60px; }
.contact::before { width: 340px; height: 340px; right: -140px; bottom: 40px; }
.contact__grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact__carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px; text-align: center; }
.contact__carte iframe { width: 100%; height: 440px; border: 0; border-radius: 10px; }
.contact__bloc h2 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.contact__info, .contact__adresse { display: flex; align-items: center; gap: 14px; color: var(--texte); margin: 0 0 14px; line-height: 1.4; }
.contact__rond { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--degrade); display: grid; place-items: center; font-size: 20px; }
.contact__formulaire { width: 100%; height: 520px; border: 0; border-radius: 10px; background: var(--fond-doux); margin-top: 8px; }

/* =================== Pied de page =================== */
.pied { background: var(--degrade); color: #fff; text-align: center; padding: 26px 0; }
.pied p { margin: 2px 0; }
.pied__credits { opacity: .9; }
.haut {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; z-index: 90;
  background: var(--degrade); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--ombre-forte);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.haut.visible { opacity: 1; pointer-events: auto; }

/* Apparition au défilement */
[data-apparition] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
[data-apparition].vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-apparition] { opacity: 1; transform: none; }
}

/* =================== Adaptation écrans =================== */
@media (max-width: 1100px) {
  .carrousel__piste { grid-auto-columns: calc((100% - 20px) / 2); }
  .carrousel__fleche { display: block; }
  .carrousel__points { display: flex; }
}
@media (max-width: 991px) {
  .burger { display: block; }
  nav { position: absolute; top: 100%; left: 0; right: 0; }
  .menu {
    flex-direction: column; align-items: stretch; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .4s ease; gap: 0;
  }
  .menu.ouvert { max-height: 80vh; overflow-y: auto; }
  .menu > li > a, .menu > li > button { padding: 14px 20px; border-radius: 0; border-top: 1px solid #f2e6f1; width: 100%; text-align: left; color: #1e1e1e !important; }
  .entete.defile .menu > li > a.actif { background: var(--fond-doux); }
  .sous-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 8px 16px; border-radius: 0; }
  .a-sous-menu.ouvert .sous-menu { display: block; }
  .accueil__grille, .contact__grille { grid-template-columns: 1fr; }
  .accueil h1 { font-size: 44px; }
  .onglets { grid-template-columns: 1fr; gap: 20px; }
  .onglets__menu { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 6px; }
  .onglets__menu button { flex: none; font-size: 14px; padding: 10px 14px; }
  .formation__points { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  section { padding-top: 70px; }
  .logo img { width: 180px; }
  .accueil { padding-top: 100px; }
  .accueil h1 { font-size: 36px; }
  .titre-section h2 { font-size: 24px; }
  .carrousel__piste { grid-auto-columns: 88%; }
  .carrousel__fleche { display: none; }
  .panneau, .formation__carte { grid-template-columns: 1fr; }
  .panneau__image img, .formation__carte img { max-height: 280px; }
  .panneau__texte, .formation__texte { padding: 24px 20px; }
  .lecteur { grid-template-columns: 1fr; text-align: center; padding: 18px; gap: 12px; }
  .lecteur__disque { display: none; }
  .lecteur__commandes { justify-content: center; }
  .mouvement { padding: 20px 18px; }
  .contact__carte iframe { height: 320px; }
  .accueil::before, .accueil::after, .pratique::before, .contact::before { display: none; }
  .panneau__texte p, .formation__texte p, .bacv__texte p { text-align: left; }
  .bacv { padding: 26px 20px; }
  .bacv h3 { font-size: 20px; }
  .bacv__frise { grid-template-columns: 1fr; gap: 14px; }
  .bacv__frise li { text-align: left; padding: 4px 0 0 48px; min-height: 34px; }
  .bacv__frise li::before { left: 0; transform: none; }
  .bacv__frise li::after { top: 34px; left: 16px; width: 3px; height: calc(100% - 20px); }
  .bacv__alire { padding: 16px 16px; }
}
