/* Polices Barlow et Barlow Condensed (SIL Open Font License), hébergées localement — sous-ensemble latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-700.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Autopropp — feuille de style partagée (mobile d'abord) */

:root {
  --bleu: #0b3a88;
  --bleu-fonce: #072a63;
  --bleu-pale: #e8eef8;
  --rouge: #d8232a;
  --orange: #f15a24;
  --texte: #1c2333;
  --texte-doux: #4a5568;
  --fond: #ffffff;
  --gris: #f4f6fa;
  --bordure: #d9e0ec;
  --rayon: 12px;
  --ombre: 0 6px 24px rgba(11, 58, 136, 0.12);
  --largeur: 1100px;
  --titres: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --corps: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--bleu); }
a:hover { color: var(--rouge); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--titres);
  font-weight: 700;
  line-height: 1.1;
  color: var(--bleu);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }

.lien-evitement {
  position: absolute; left: -999px; top: 0;
  background: var(--bleu); color: #fff; padding: 8px 12px; z-index: 100;
}
.lien-evitement:focus { left: 8px; top: 8px; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 4px solid var(--bleu);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.entete__barre {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 8px; padding-bottom: 8px;
}
.entete__logo img { width: 140px; }

.embauche {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  background: var(--rouge); color: #fff;
  font-family: var(--titres); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  text-align: center; padding: 6px 16px;
}
.embauche a { color: #fff; text-decoration: none; white-space: nowrap; }
.embauche a:hover { text-decoration: underline; color: #fff; }

.menu-bouton {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1rem var(--titres); text-transform: uppercase;
  color: #fff; background: var(--bleu);
  border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer;
}
.menu-bouton__icone,
.menu-bouton__icone::before,
.menu-bouton__icone::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s;
}
.menu-bouton__icone { position: relative; }
.menu-bouton__icone::before, .menu-bouton__icone::after { content: ""; position: absolute; left: 0; }
.menu-bouton__icone::before { top: -6px; }
.menu-bouton__icone::after { top: 6px; }
.menu-bouton[aria-expanded="true"] .menu-bouton__icone { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-bouton__icone::before { transform: translateY(6px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton__icone::after { transform: translateY(-6px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 12px 16px;
  font: 700 1.15rem var(--titres); text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--bleu); text-decoration: none;
}
.nav a:hover { color: var(--rouge); }
.nav a[aria-current="page"] { color: var(--rouge); }

/* Mobile : menu repliable (seulement si le JS est actif) */
.js .nav { display: none; border-top: 1px solid var(--bordure); }
.js .nav.est-ouvert { display: block; }
.nav li + li { border-top: 1px solid var(--bordure); }
.no-js .menu-bouton { display: none; }

@media (min-width: 860px) {
  .entete__logo img { width: 170px; }
  .menu-bouton { display: none; }
  .js .nav, .nav { display: block; border: 0; }
  .nav ul { display: flex; gap: 4px; }
  .nav li + li { border: 0; }
  .nav a { padding: 8px 12px; border-radius: 6px; }
  .nav a[aria-current="page"] { background: var(--bleu); color: #fff; }
  .entete__barre { flex-wrap: nowrap; }
}

/* ---------- Motifs décoratifs (repris du site d'origine) ---------- */

.hachures {
  height: 14px; border: 0; margin: 0 0 1.5rem;
  background: repeating-linear-gradient(-60deg, var(--bleu) 0 3px, transparent 3px 9px);
}
.hachures--blanches {
  background: repeating-linear-gradient(-60deg, #fff 0 3px, transparent 3px 9px);
}

.titre-page {
  position: relative; overflow: hidden;
  background: var(--bleu); color: #fff;
  padding: 2.2rem 0 1.8rem;
}
.titre-page::before,
.titre-page::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; width: 70px;
  background: rgba(255, 255, 255, 0.1); transform: skewX(-40deg);
}
.titre-page::before { right: 12%; }
.titre-page::after { right: calc(12% + 100px); width: 24px; }
.titre-page h1 { color: #fff; margin: 0; }
.titre-page p { margin: 0.4rem 0 0; font-size: 1.15rem; opacity: 0.92; }

/* ---------- Sections ---------- */

.section { padding: 2.5rem 0; }
.section--grise { background: var(--gris); }
.section--bleue { background: var(--bleu); color: #fff; }
.section--bleue h2, .section--bleue h3 { color: #fff; }

.bouton {
  display: inline-block;
  font: 700 1.15rem var(--titres); text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; background: var(--rouge);
  padding: 12px 22px; border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 0 #9e1a1f;
  transition: transform 0.1s, box-shadow 0.1s;
}
.bouton:hover { color: #fff; transform: translateY(1px); box-shadow: 0 3px 0 #9e1a1f; }
.bouton--bleu { background: var(--bleu); box-shadow: 0 4px 0 var(--bleu-fonce); }
.bouton--bleu:hover { box-shadow: 0 3px 0 var(--bleu-fonce); }

/* ---------- Accueil ---------- */

.heros {
  position: relative; overflow: hidden;
  background:
    linear-gradient(-50deg, transparent 0 58%, var(--bleu) 58% 72%, transparent 72%) right bottom / 100% 42% no-repeat,
    #fff;
  padding: 2rem 0 2.5rem;
}
.heros__grille { display: grid; gap: 1.5rem; align-items: center; }
.heros__accroche { font-family: var(--titres); font-weight: 700; text-transform: uppercase; color: var(--bleu); }
.heros__accroche .petit { display: block; font-size: clamp(1.4rem, 4.5vw, 2rem); }
.heros__accroche .grand {
  display: block; font-size: clamp(2.8rem, 11vw, 4.6rem); line-height: 0.95; color: var(--rouge);
}
.heros__appel { margin-top: 1.5rem; }
.heros__appel p {
  font-family: var(--titres); font-size: 1.3rem; font-weight: 600;
  text-transform: uppercase; color: var(--texte-doux); margin-bottom: 0.6rem;
}

.encadre {
  background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 1.5rem; border-top: 6px solid var(--bleu);
}
.slogan {
  font-family: var(--titres); font-weight: 700; font-size: 1.5rem;
  color: var(--rouge); text-transform: uppercase; margin: 0;
}

@media (min-width: 860px) {
  .heros {
    padding: 3rem 0 3.5rem;
    background:
      linear-gradient(-50deg, transparent 0 46%, var(--bleu) 46% 54%, transparent 54%) right center / 55% 100% no-repeat,
      linear-gradient(-50deg, transparent 0 40%, var(--bleu) 40% 46%, transparent 46%) left top / 18% 60% no-repeat,
      #fff;
  }
  .heros__grille { grid-template-columns: 1fr 1.25fr; gap: 2rem; }
  .duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
}

/* ---------- Tableaux de prix ---------- */

.tableau-defilant { overflow-x: auto; }

.prix {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
}
.prix caption {
  text-align: left; font: 700 1.6rem var(--titres); color: var(--bleu);
  text-transform: uppercase; padding-bottom: 0.5rem;
}
.prix th, .prix td { padding: 12px 10px; text-align: left; vertical-align: middle; }
.prix thead th {
  background: var(--bleu); color: #fff;
  font: 700 1rem var(--titres); text-transform: uppercase; letter-spacing: 0.03em;
}
.prix tbody tr:nth-child(even) { background: var(--gris); }
.prix tbody th { font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.prix tbody th small {
  display: block; font-weight: 500; font-size: 0.85rem; color: var(--texte-doux); text-transform: uppercase;
}
.prix .montant {
  text-align: right; white-space: nowrap;
  font: 700 1.25rem var(--titres); color: var(--bleu);
}
.prix .montant small { display: block; font: 500 0.78rem var(--corps); color: var(--texte-doux); }
.prix thead .montant { color: #fff; font-size: 1rem; white-space: normal; line-height: 1.15; }
@media (max-width: 480px) {
  .prix th, .prix td { padding: 10px 7px; }
  .prix tbody th { font-size: 0.9rem; }
  .prix .montant { font-size: 1.12rem; }
}

.mention {
  font-family: var(--titres); font-weight: 700; text-transform: uppercase;
  font-size: 1.15rem; color: var(--bleu); margin: 1.5rem 0 0.2rem; text-align: center;
}
.mention + p { text-align: center; color: var(--texte-doux); }

.note-prix { font-size: 0.9rem; color: var(--texte-doux); margin-top: 0.6rem; }

/* ---------- Cartes (forfaits / services) ---------- */

.cartes { display: grid; gap: 1.5rem; }
.carte {
  background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 1.5rem; display: flex; flex-direction: column;
  border-top: 6px solid var(--bleu);
}
.carte--vedette { border-top-color: var(--rouge); position: relative; }
.carte__entete { display: flex; align-items: center; gap: 14px; margin-bottom: 0.8rem; }
.carte__entete img { width: 96px; flex: none; }
.carte__entete h2, .carte__entete h3 { margin: 0; }
.carte .prix { box-shadow: none; border: 1px solid var(--bordure); margin-top: auto; }
.carte .prix tbody th { font-weight: 600; }

@media (min-width: 700px) {
  .cartes--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cartes--3 { grid-template-columns: repeat(3, 1fr); }
}

.service {
  display: grid; gap: 1rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--bordure);
}
.service:last-child { border-bottom: 0; }
.service h3 { display: flex; align-items: center; gap: 10px; }
.service h3::before {
  content: ""; flex: none; width: 12px; height: 20px; background: var(--bleu);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}
.service img { border-radius: 8px; width: 100%; max-width: 250px; }
@media (min-width: 700px) {
  .service--image { grid-template-columns: 1fr 250px; gap: 2rem; }
}

/* ---------- Nous joindre ---------- */

.coordonnees { display: grid; gap: 1.5rem; }
.coordonnees h2 { font-size: 1.6rem; text-transform: uppercase; }
.adresse { font-style: normal; font-size: 1.15rem; }

.horaire { width: 100%; border-collapse: collapse; }
.horaire th, .horaire td { padding: 8px 0; border-bottom: 1px solid var(--bordure); text-align: left; }
.horaire td { text-align: right; font-weight: 600; }
.horaire .ferme { color: var(--rouge); }

.notes { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.95rem; color: var(--texte-doux); }
.notes li { padding-left: 1.4em; position: relative; margin-bottom: 0.5em; }
.notes li::before { content: "**"; position: absolute; left: 0; color: var(--rouge); font-weight: 700; }

.tel-grand {
  display: inline-block; font: 700 clamp(1.8rem, 7vw, 2.4rem) var(--titres);
  color: var(--rouge); text-decoration: none;
}

.carte-geo { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--gris); }
.carte-geo iframe { width: 100%; height: 360px; border: 0; }

.facade { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; }
.contact-bas { display: grid; gap: 1.5rem; }

@media (min-width: 860px) {
  .coordonnees { grid-template-columns: repeat(3, 1fr); }
  .contact-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
}

/* ---------- Pied de page ---------- */

.pied { background: var(--bleu-fonce); color: #dbe4f3; padding: 2rem 0 1.5rem; font-size: 0.95rem; }
.pied a { color: #fff; }
.pied__grille { display: grid; gap: 1.2rem; }
.pied strong { color: #fff; font-family: var(--titres); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pied address { font-style: normal; }
.pied__copie { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.5rem; padding-top: 1rem; text-align: center; }
@media (min-width: 700px) {
  .pied__grille { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.carte-geo__invite {
  min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; padding: 1.5rem; text-align: center;
  background:
    repeating-linear-gradient(-60deg, rgba(11, 58, 136, 0.06) 0 3px, transparent 3px 14px),
    var(--bleu-pale);
}
.carte-geo__invite p { margin: 0 0 0.6rem; }
.carte-geo__invite .bouton { margin: 0.4rem 0 0.8rem; }
