/* CIM AUTO : mise en page du site (accueil). Lit uniquement les tokens de la charte. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px; line-height: 28px;
  color: var(--encre); background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--rouge-texte); }
p { margin: 0 0 var(--espace-4); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 var(--espace-6); }

/* ===== Sections ===== */
.section { padding: var(--espace-24) 0; background: var(--surface); }
.section--atelier { background: var(--surface-atelier); }
.section__tete { margin-bottom: var(--espace-12); max-width: 820px; }
.section__tete .ca-filet { margin-bottom: var(--espace-8); }
.section__tete .ca-coupe, .section__tete .titre-2 { margin: 0; }
.section__intro { margin-top: var(--espace-4); color: var(--encre-douce); }
.titre-2 { font-size: 34px; line-height: 1.15; font-weight: 700; margin: 0; }
.titre-3 { font-size: 22px; line-height: 1.3; font-weight: 600; margin: 0 0 var(--espace-2); }
.chiffre { font-weight: 800; font-style: italic; }

.grille { display: grid; gap: var(--espace-6); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== Bandeau supérieur ===== */
.bandeau-haut { background: var(--surface-inverse); color: var(--encre-inverse); font-size: 13px; line-height: 18px; }
.bandeau-haut .conteneur { display: flex; justify-content: space-between; align-items: center; gap: var(--espace-4); padding-top: var(--espace-2); padding-bottom: var(--espace-2); }
.bandeau-haut a { color: var(--encre-inverse); text-decoration: none; display: inline-flex; align-items: center; gap: var(--espace-2); font-weight: 600; }
.bandeau-haut .ca-statut { --ouvert: #4cc26f; --encre-douce: #a3a3a0; }
.bandeau-haut__adresse { color: #a3a3a0; }

/* ===== Header ===== */
.entete { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: var(--trait-fin) solid var(--filet); }
.entete .conteneur { display: flex; align-items: center; gap: var(--espace-6); min-height: 104px; }
.entete__logo { display: block; flex: none; }
.entete__logo img { display: block; height: 80px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: var(--espace-6); margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a { color: var(--encre); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav > ul > li > a { display: inline-block; padding: var(--espace-6) 0; }
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a { color: var(--rouge-texte); }
.nav__sous {
  list-style: none; margin: 0; padding: var(--espace-3) 0;
  position: absolute; top: 100%; left: calc(var(--espace-4) * -1); min-width: 260px;
  background: var(--surface); border-top: var(--trait-fort) solid var(--encre); border-bottom: var(--trait-fin) solid var(--filet);
  display: none;
}
.nav li:hover > .nav__sous, .nav li:focus-within > .nav__sous { display: block; }
.nav__sous a { display: block; padding: var(--espace-2) var(--espace-4); font-size: 14px; }
.nav__sous a:hover { background: var(--surface-atelier); }
.entete .ca-btn { flex: none; padding: var(--espace-3) var(--espace-6); }
.burger { display: none; margin-left: auto; background: none; border: var(--trait-fort) solid var(--encre); width: 48px; height: 48px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 22px; height: 3px; background: var(--encre); margin: 4px auto; }

/* ===== Hero ===== */
.hero { padding-left: 0; padding-right: 0; }
.hero .conteneur { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--espace-12); align-items: center; }
.hero .ca-filet { margin-bottom: var(--espace-8); }
.hero__sous { font-size: 19px; line-height: 30px; color: var(--encre-douce); margin: var(--espace-6) 0 var(--espace-8); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--espace-4); align-items: center; margin-bottom: var(--espace-6); }
.hero .ca-photo { min-height: 420px; }

/* ===== Placeholders photo ===== */
.ca-photo b { display: block; color: var(--rouge-texte); font-style: italic; font-size: 15px; margin-bottom: var(--espace-1); }

/* ===== Offres ===== */
.offre { background: var(--surface-atelier); border-top: var(--trait-fort) solid var(--encre); padding: var(--espace-6); display: flex; flex-direction: column; gap: var(--espace-3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.offre__etiquette { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-style: italic; color: var(--rouge-texte); }
.offre__avantage { font-size: 34px; line-height: 1.1; }
.offre__conditions { font-size: 15px; line-height: 24px; color: var(--encre-douce); margin: 0; }
.offre .ca-btn { align-self: flex-start; margin-top: auto; padding: var(--espace-3) var(--espace-6); }
.lien-suite { display: inline-block; margin-top: var(--espace-8); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre); border-bottom: var(--trait-fin) solid var(--encre); text-decoration: none; }

/* ===== Prestations ===== */
.groupe { margin-bottom: var(--espace-12); }
.groupe:last-child { margin-bottom: 0; }
.groupe__titre { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 var(--espace-4); padding-bottom: var(--espace-2); border-bottom: var(--trait-fin) solid var(--encre); }
.section--atelier .ca-carte { background: var(--surface); }
.prestations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-6); }

/* ===== Atouts et étapes ===== */
.liste-num { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-6); }
.liste-num li { border-top: var(--trait-fort) solid var(--encre); padding-top: var(--espace-4); }
.liste-num__num { display: block; font-size: 13px; font-weight: 700; font-style: italic; color: var(--rouge-texte); letter-spacing: 0.08em; margin-bottom: var(--espace-2); }
.liste-num p { font-size: 15px; line-height: 24px; color: var(--encre-douce); margin: 0; }
.etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--espace-8); }
.etapes li { position: relative; }

/* ===== Avis ===== */
.avis { margin: 0; background: var(--surface-atelier); border-top: var(--trait-fort) solid var(--encre); padding: var(--espace-6); display: flex; flex-direction: column; gap: var(--espace-4); }
.avis blockquote { margin: 0; font-size: 16px; line-height: 26px; }
.avis figcaption { font-size: 14px; line-height: 20px; color: var(--encre-douce); }
.avis figcaption b { color: var(--encre); }
.avis-actions { display: flex; flex-wrap: wrap; gap: var(--espace-4); align-items: center; margin-top: var(--espace-8); }
.avis-actions p { margin: 0; font-size: 15px; color: var(--encre-douce); }

/* ===== Bandeau d'appel (noir) ===== */
.bandeau-appel { background: var(--surface-inverse); color: var(--encre-inverse); padding: var(--espace-16) 0; }
.bandeau-appel .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--espace-6); text-align: left; }
.bandeau-appel__question { font-size: 22px; line-height: 1.3; font-weight: 600; margin: 0; }
.bandeau-appel__num { font-size: 56px; line-height: 1; color: var(--encre-inverse); text-decoration: none; }
.bandeau-appel__horaires { font-size: 15px; color: #a3a3a0; margin: var(--espace-2) 0 0; }

/* ===== Présentation ===== */
.presentation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--espace-12); align-items: center; }
.presentation .ca-photo { min-height: 380px; }
.equipements { list-style: none; padding: 0; margin: var(--espace-6) 0 var(--espace-8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--espace-6); }
.equipements li { border-top: var(--trait-fin) solid var(--filet); padding: var(--espace-2) 0; font-size: 15px; line-height: 24px; }
.equipements li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--rouge); margin-right: var(--espace-3); transform: skewX(var(--pente)); }

/* ===== Zone ===== */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--espace-12); align-items: start; }
.zone .ca-photo { min-height: 380px; }
.cercle { margin-bottom: var(--espace-8); }
.cercle__titre { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 var(--espace-3); padding-bottom: var(--espace-2); border-bottom: var(--trait-fin) solid var(--encre); }
.communes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--espace-2) var(--espace-6); font-size: 15px; }
.communes a { color: var(--encre); font-weight: 600; text-decoration: none; border-bottom: var(--trait-fin) solid var(--rouge); }
.communes a:hover { color: var(--rouge-texte); }
.communes .adresse { color: var(--rouge-texte); font-weight: 600; }

/* ===== Conseils ===== */
.article { display: block; text-decoration: none; color: var(--encre); border-top: var(--trait-fort) solid var(--encre); }
.article .ca-photo { min-height: 180px; border-top: 0; }
.article__corps { padding: var(--espace-4) 0; }
.article__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-style: italic; color: var(--rouge-texte); }
.article:hover .titre-3 { color: var(--rouge-texte); }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--espace-12); align-items: start; }
.carte-maps { position: relative; min-height: 420px; background: var(--surface); border: var(--trait-fin) dashed var(--encre-douce); display: grid; place-items: center; text-align: center; padding: var(--espace-6); }
.carte-maps iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte-maps p { color: var(--encre-douce); font-size: 15px; }
.coordonnees address { font-style: normal; font-size: 19px; line-height: 30px; margin-bottom: var(--espace-4); }
.contact__num { display: inline-block; font-size: 44px; line-height: 1.1; color: var(--encre); text-decoration: none; margin: var(--espace-4) 0 var(--espace-6); }
.horaires { width: 100%; border-collapse: collapse; margin: var(--espace-6) 0 var(--espace-8); font-size: 15px; }
.horaires th, .horaires td { text-align: left; padding: var(--espace-2) 0; border-bottom: var(--trait-fin) solid var(--filet); font-weight: 400; }
.horaires td { text-align: right; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { font-weight: 700; color: var(--encre); }
.horaires tr.aujourdhui th::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--rouge); margin-right: var(--espace-2); transform: skewX(var(--pente)); }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--espace-4); margin-top: var(--espace-6); }

/* ===== Pied de page ===== */
.pied { background: var(--surface-inverse); color: #a3a3a0; padding: var(--espace-16) 0 var(--espace-8); font-size: 15px; line-height: 24px; margin-top: 0; }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--espace-8); }
.pied__logo { display: block; width: 180px; height: auto; margin-bottom: var(--espace-4); }
.pied h2 { color: var(--encre-inverse); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 var(--espace-3); padding-bottom: var(--espace-2); border-bottom: var(--trait-fin) solid #2e2e2e; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 2px 0; }
.pied a { color: #a3a3a0; text-decoration: none; }
.pied a:hover { color: var(--encre-inverse); }
.pied address { font-style: normal; }
.pied__num { color: var(--encre-inverse) !important; font-size: 22px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--espace-4); border-top: var(--trait-fin) solid #2e2e2e; margin-top: var(--espace-12); padding-top: var(--espace-6); font-size: 13px; }
.pied__bas ul { display: flex; gap: var(--espace-6); flex-wrap: wrap; }

/* ===== Barre d'appel mobile ===== */
.ca-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; padding-bottom: env(safe-area-inset-bottom); }
.ca-barre .ca-statut { --ouvert: #4cc26f; --encre-douce: #a3a3a0; transform: none; border: 0; padding: 0; }
.ca-barre .ca-statut > * { transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav > ul { gap: var(--espace-4); }
  .nav a { font-size: 14px; }
  .prestations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav, .entete .ca-btn { display: none; }
  .burger { display: block; }
  .entete.ouvert .nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-top: var(--trait-fort) solid var(--encre); border-bottom: var(--trait-fin) solid var(--filet); }
  .entete.ouvert .nav > ul { flex-direction: column; gap: 0; padding: var(--espace-2) var(--espace-6) var(--espace-4); }
  .entete.ouvert .nav > ul > li > a { padding: var(--espace-3) 0; }
  .entete.ouvert .nav__sous { display: block; position: static; border: 0; padding: 0 0 var(--espace-2) var(--espace-4); min-width: 0; }
  .hero .conteneur, .presentation, .zone, .contact { grid-template-columns: minmax(0, 1fr); }
  .grille--3, .grille--4, .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prestations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 26px; padding-bottom: var(--espace-16); }
  .ca-barre { display: grid; }
  .bandeau-haut__adresse { display: none; }
  .section { padding: var(--espace-16) 0; }
  .entete .conteneur { min-height: 72px; }
  .entete__logo img { height: 64px; }
  .ca-hero.hero { padding-top: var(--espace-12); }
  .hero__actions .ca-btn--appel { width: 100%; justify-content: center; }
  .hero .ca-photo { min-height: 240px; }
  .titre-2 { font-size: 28px; }
  .grille--3, .grille--4, .etapes, .prestations, .pied__grille, .equipements { grid-template-columns: minmax(0, 1fr); }
  .bandeau-appel__num { font-size: 40px; }
  .contact__num { font-size: 34px; }
  .carte-maps, .zone .ca-photo, .presentation .ca-photo { min-height: 260px; }
}
