/* CoachSports — feuille de style unique (remplace style.css / stydle.css) */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700.woff2) format("woff2"); }

:root {
  --bleu-nuit: #1d3a5c;
  --bleu: #3d6088;
  --bleu-moyen: #5888bb;
  --bleu-clair: #84b0d4;
  --bleu-pale: #eef4fa;
  --orange: #f26a0f;
  --orange-fonce: #d45500;
  --texte: #2c3e55;
  --gris: #6b7a8c;
  --rouge: #e0102a;
  --vert: #138a1b;
  --jaune: #f08a00;
  --bleu-titre: #1278aa;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(29, 58, 92, .12);
  --titres: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texte);
  background: var(--bleu-pale);
}
img { max-width: 100%; height: auto; }
a { color: var(--bleu-moyen); }
a:hover { color: var(--orange); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.conteneur { width: min(100% - 2rem, var(--largeur)); margin-inline: auto; }

/* ---------- Bandeau haut ---------- */
.bandeau-haut { background: var(--bleu-nuit); color: #cfe0f1; font-size: .85rem; }
.bandeau-haut .conteneur { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.bandeau-haut a { color: #fff; text-decoration: none; font-weight: 600; }
.bandeau-haut a:hover { color: var(--bleu-clair); }
.contacts-rapides { display: flex; gap: 1.25rem; }

/* ---------- En-tête ---------- */
.entete { background: #fff; box-shadow: 0 2px 12px rgba(29, 58, 92, .08); position: sticky; top: 0; z-index: 50; }
.entete .conteneur { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.marque { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--texte); flex-shrink: 0; }
.marque img { display: block; }
.marque-texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque-texte strong { font-family: var(--titres); font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; color: var(--bleu-nuit); }
.marque-texte span { font-size: .8rem; color: var(--gris); }

.nav-principale { margin-left: auto; }
.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.nav-principale li { list-style: none; padding: 0; }
.nav-principale a {
  display: block; padding: .5rem .55rem; border-radius: 8px; white-space: nowrap;
  font-family: var(--titres); font-weight: 600; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--bleu); text-decoration: none;
}
.nav-principale a:hover { background: var(--bleu-pale); color: var(--bleu-nuit); }
.nav-principale a[aria-current], .nav-principale a.actif { color: var(--orange); }

.menu-bouton { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--bleu-pale); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-bouton span:not(.sr) { display: block; height: 3px; border-radius: 2px; background: var(--bleu-nuit); transition: transform .2s, opacity .2s; }
.menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.sous-nav { background: var(--bleu); }
.sous-nav .conteneur { display: flex; gap: .25rem; flex-wrap: wrap; padding: .35rem 0; }
.sous-nav a { color: #fff; text-decoration: none; padding: .35rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.sous-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.sous-nav a[aria-current] { background: #fff; color: var(--bleu); }

/* ---------- Contenu ---------- */
.contenu { padding: 2rem 0 3rem; }
.page-accueil .contenu { padding-top: 0; }
.carte-page {
  background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 900px; margin: 0 auto;
}
.carte-page table { max-width: 100%; }
.carte-page table img { max-width: none; }
.carte-page td { vertical-align: top; }
.carte-page h1, .carte-page h2 { margin: 0; }

/* Classes héritées de l'ancien site, modernisées */
.titre01 { font-family: var(--titres); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; color: var(--orange); font-weight: 700; letter-spacing: .01em; display: inline-block; margin: 0 0 .5rem; }
.titre01bis { font-family: var(--titres); font-size: 1.7rem; color: #ff9046; font-style: italic; }
.titre02 { font-size: 1.05rem; font-weight: 700; }
.titre03 { font-family: var(--titres); font-size: 1.5rem; font-weight: 600; }
.titre04 { font-family: var(--titres); font-size: 1.3rem; color: var(--bleu-moyen); font-weight: 700; letter-spacing: .03em; }
.titreGris { font-family: var(--titres); font-size: 1.1rem; font-style: italic; font-weight: 600; color: #9aa3ad; }
.titreRouge, .titreVert, .titreJaune, .titreBleu { font-family: var(--titres); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.titreRouge { color: var(--rouge); }
.titreVert { color: var(--vert); }
.titreJaune { color: var(--jaune); }
.titreBleu { color: var(--bleu-titre); }
.txtBleu2 { font-weight: 700; color: var(--bleu-moyen); }
.txtBleu11 { color: var(--bleu-moyen); }
.txtRouge { color: #bb0000; }
.txtnoir { color: #000; }
.txtOrange, .txtOrange2 { color: var(--orange); }
.txtOrange2 { font-weight: 700; font-size: 1.05rem; }
.txtVert { color: var(--vert); }
.txtBlanc { color: #fff; }
.cheminFer, .cheminFer a { color: var(--gris); font-size: .88rem; text-decoration: none; }
.cheminFer a:hover { color: var(--orange); }
.carte-page ul { padding-left: 1.3rem; }
.carte-page li { list-style-image: url(../images/puce4.gif); padding: 2px 0; }
.LigneBasTableau { border-bottom: 1px solid var(--bleu-titre); }

/* Lignes cliquables (ex-onclick) */
.sRub { cursor: pointer; }
.sRub a { color: inherit; text-decoration: none; }
.sRub:hover .titre03, .sRub:hover .titreGris { color: var(--orange); }
.fondBouton, .fondSousRub {
  background: linear-gradient(90deg, var(--bleu-pale), #fff);
  border-radius: 0 10px 10px 0; padding: .35rem .8rem;
}
.sRub:hover .fondBouton { background: linear-gradient(90deg, #fde7d8, #fff); }

/* Labels (SAP, réduction, CESU) */
.labels { display: inline-flex; gap: .4rem; align-items: center; }

/* Diaporama (remplace le Flash du comité) */
.diapo { position: relative; width: 264px; max-width: 100%; aspect-ratio: 264 / 157; border-radius: 10px; overflow: hidden; }
.diapo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.diapo img.actif { opacity: 1; }

/* Vidéos */
a[data-video] { cursor: pointer; }
.video-modale { border: 0; padding: 0; width: min(92vw, 860px); background: #000; border-radius: 12px; overflow: visible; }
.video-modale::backdrop { background: rgba(10, 20, 35, .8); }
.video-cadre { aspect-ratio: 16 / 9; }
.video-cadre iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: 12px; }
.video-fermer { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 1.6rem; cursor: pointer; background: #fff; color: var(--bleu-nuit); }

/* ---------- Accueil ---------- */
.heros {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--bleu-nuit) 0%, var(--bleu) 55%, var(--bleu-moyen) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(5rem, 9vw, 7rem);
  margin-bottom: -4rem;
}
.heros::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 176, 212, .35), transparent 65%);
}
.heros .conteneur { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.heros h1 { font-family: var(--titres); font-weight: 700; font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 1.02; margin: .3rem 0 1rem; text-transform: uppercase; }
.heros h1 em { font-style: normal; color: #ffb27a; }
.heros .surtitre { font-family: var(--titres); letter-spacing: .12em; text-transform: uppercase; color: var(--bleu-clair); font-weight: 600; }
.heros p { font-size: 1.1rem; max-width: 34em; color: #e3edf7; }
.heros-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.bouton {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; background: var(--orange); color: #fff; transition: background .2s, transform .2s;
}
.bouton:hover { background: var(--orange-fonce); color: #fff; transform: translateY(-2px); }
.bouton.secondaire { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); }
.bouton.secondaire:hover { background: rgba(255,255,255,.22); }
.heros-labels { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }
.heros-labels figure { margin: 0; background: #fff; border-radius: 12px; padding: .6rem; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.heros-labels figcaption { font-size: .75rem; color: var(--bleu); font-weight: 600; margin-top: .3rem; max-width: 7.5em; line-height: 1.25; }
.heros-labels img { display: block; margin: 0 auto; height: 60px; width: auto; }

.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 2; }
.choix-carte {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); text-decoration: none; color: var(--texte); transition: transform .25s, box-shadow .25s;
}
.choix-carte:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(29, 58, 92, .2); color: var(--texte); }
.choix-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bleu-pale); }
.choix-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.choix-carte:hover .choix-photo img { transform: scale(1.05); }
.choix-corps { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.choix-logo { height: 40px; width: auto; align-self: flex-start; margin-bottom: .4rem; }
.choix-corps h2 { font-family: var(--titres); font-size: 1.8rem; line-height: 1.05; margin: 0 0 .5rem; color: var(--bleu-nuit); text-transform: uppercase; }
.choix-corps p { margin: 0 0 1rem; color: var(--gris); }
.choix-lien { margin-top: auto; font-weight: 700; color: var(--orange); }
.choix-carte:hover .choix-lien { text-decoration: underline; }

.bloc { margin-top: 3.5rem; }
.bloc-titre { font-family: var(--titres); font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--bleu-nuit); text-transform: uppercase; margin: 0 0 1.2rem; text-align: center; }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.atout { background: #fff; border-radius: var(--rayon); padding: 1.4rem; box-shadow: 0 4px 14px rgba(29, 58, 92, .07); }
.atout strong { display: block; font-family: var(--titres); font-size: 1.35rem; color: var(--bleu); margin-bottom: .3rem; }
.atout p { margin: 0; font-size: .95rem; color: var(--gris); }
.atout-icone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fde7d8; color: var(--orange); font-size: 1.3rem; margin-bottom: .7rem; }

.decouvrir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.decouvrir a {
  position: relative; display: block; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3;
  text-decoration: none; color: #fff; box-shadow: var(--ombre);
}
.decouvrir img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.decouvrir a:hover img { transform: scale(1.06); }
.decouvrir span {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(16, 33, 54, .88));
  font-family: var(--titres); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; line-height: 1.1;
}
.decouvrir small { display: block; font-family: system-ui, sans-serif; text-transform: none; font-weight: 400; font-size: .9rem; color: #d6e3f0; }

.appel {
  margin-top: 3.5rem; border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(120deg, var(--orange) 0%, #ff8a3d 100%); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.appel h2 { font-family: var(--titres); font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0; text-transform: uppercase; line-height: 1.05; }
.appel p { margin: .3rem 0 0; }
.appel .bouton { background: #fff; color: var(--orange-fonce); }
.appel .bouton:hover { background: var(--bleu-nuit); color: #fff; }

/* ---------- Pied de page ---------- */
.pied { background: var(--bleu-nuit); color: #b9cde2; font-size: .92rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
.pied h2 { font-family: var(--titres); color: #fff; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .05em; margin: 0 0 .6rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--bleu-clair); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { list-style: none; padding: .1rem 0; }
.pied-labels { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.pied-labels img { border-radius: 6px; background: #fff; padding: 3px; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .82rem; color: #8aa3bd; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) and (min-width: 1081px) {
  .marque-texte span { display: none; }
}
@media (max-width: 1080px) {
  .menu-bouton { display: flex; }
  .nav-principale { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 12px 24px rgba(29, 58, 92, .15); }
  .nav-principale.ouvert { display: block; }
  .nav-principale ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .nav-principale a { padding: .75rem .6rem; border-bottom: 1px solid var(--bleu-pale); border-radius: 0; }
  .atouts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .heros .conteneur { grid-template-columns: 1fr; }
  .heros-labels { justify-content: flex-start; }
  .choix, .decouvrir { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .marque-texte span { display: none; }
  .carte-page table img { max-width: 100%; }
  .marque img { width: 110px; height: auto; }
  .bandeau-haut .agrement { display: none; }
  .atouts { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  /* Les vieux tableaux de mise en page passent en colonne */
  .carte-page table, .carte-page tbody, .carte-page tr, .carte-page td { display: block; width: 100% !important; }
  .carte-page td[width="80"], .carte-page tr.sRub > td:first-child { display: none; }
  .carte-page tr.sRub { margin-bottom: .6rem; }
  .carte-page img[align="right"] { float: none !important; display: block; margin: .5rem auto; }
  .carte-page .tableau-tarifs, .carte-page .tableau-tarifs tbody { display: table; }
  .carte-page .tableau-tarifs tr { display: table-row; }
  .carte-page .tableau-tarifs td { display: table-cell; width: auto !important; }
}
