/* Site BSG : règles dans DESIGN.md. Classes préfixées b- pour ne pas toucher au simulateur. */
@import url("polices.css");
:root {
  --marine: #13285C; --marine-fonce: #0B1A3D;
  --rouge: #C8202A; --rouge-fonce: #A3171F;
  --encre: #16202E; --doux: #4E5868;
  --fond: #FFFFFF; --creme: #F4F1EB; --trait: #DCD6CB;
  --titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texte: "Source Sans 3", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--marine); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }
.b-page { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .b-page { padding: 0 32px; } }
.b-evitement { position: absolute; left: 16px; top: -64px; background: var(--marine); color: #fff; padding: 8px 12px; z-index: 30; }
.b-evitement:focus { top: 8px; }

/* Barre haute + en-tête */
.b-barre { background: var(--marine); color: #fff; font-size: 14px; }
.b-barre .b-page { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.b-barre a { color: #fff; text-decoration: none; font: 700 20px/1 var(--titre); letter-spacing: 0.02em; white-space: nowrap; }
@media (max-width: 559px) { .b-barre .b-dispo { font-size: 13px; } .b-barre a { display: none; } .b-barre .b-page { justify-content: center; } }
.b-tete { background: #fff; border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 20; }
.b-tete .b-page { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.b-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--marine); margin-right: auto; }
.b-logo svg { width: 34px; height: 40px; flex: none; }
.b-logo b { display: block; font: 700 34px/1 var(--titre); letter-spacing: 0.01em; }
.b-logo span { display: block; font: 600 12px/1.2 var(--texte); letter-spacing: 0.08em; text-transform: uppercase; color: var(--doux); }
.b-menu { display: none; gap: 24px; }
.b-menu a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 0; border-bottom: 2px solid transparent; }
.b-menu a:hover, .b-menu a[aria-current="page"] { border-bottom-color: var(--rouge); }
@media (min-width: 1000px) { .b-menu { display: flex; } }
.b-tiroir { position: relative; }
.b-tiroir summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 4px; }
.b-tiroir summary::-webkit-details-marker { display: none; }
.b-tiroir nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--trait); min-width: 240px; padding: 8px 0; box-shadow: 0 8px 24px rgba(11, 26, 61, 0.12); }
.b-tiroir nav a { display: block; padding: 12px 16px; color: var(--encre); text-decoration: none; font-weight: 600; }
.b-tiroir nav a:hover { background: var(--creme); }
@media (min-width: 1000px) { .b-tiroir { display: none; } }

/* Boutons */
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 4px; border: 0;
  background: var(--rouge); color: #fff; font: 600 17px/1.2 var(--texte); text-decoration: none; cursor: pointer; }
.b-btn:hover { background: var(--rouge-fonce); }
.b-btn.b-second { background: transparent; color: var(--marine); box-shadow: inset 0 0 0 2px var(--marine); }
.b-btn.b-second:hover { background: var(--marine); color: #fff; }
.b-btn svg { width: 20px; height: 20px; flex: none; }
.b-tete .b-btn { min-height: 44px; padding: 10px 16px; }
@media (max-width: 419px) { .b-tete .b-btn span { display: none; } }

/* Ouverture */
.b-ouverture { padding: 40px 0 48px; }
.b-ouverture .b-page { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .b-ouverture { padding: 64px 0; } .b-ouverture .b-page { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } }
.b-surtitre { font: 600 13px/1.3 var(--texte); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rouge); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--titre); color: var(--marine); margin: 0; text-wrap: balance; }
h1 { font-size: 36px; line-height: 1.05; font-weight: 700; }
@media (min-width: 720px) { h1 { font-size: 48px; } }
h2 { font-size: 30px; line-height: 1.1; font-weight: 700; }
@media (min-width: 720px) { h2 { font-size: 36px; } }
h3 { font-size: 23px; line-height: 1.15; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.b-chapo { font-size: 19px; color: var(--doux); margin-top: 16px; max-width: 34em; }
.b-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.b-tel-gros { display: block; font: 700 40px/1 var(--titre); color: var(--marine); text-decoration: none; margin-top: 24px; letter-spacing: 0.01em; }
.b-tel-gros small { display: block; font: 400 15px/1.4 var(--texte); color: var(--doux); margin-top: 4px; }

/* Photos légendées */
.b-photo { margin: 0; }
.b-photo img { width: 100%; height: auto; border-radius: 2px; background: var(--creme); }
.b-photo figcaption { font-style: italic; font-size: 14px; line-height: 1.4; color: var(--doux); margin-top: 8px; }
.b-photo.b-haute img { aspect-ratio: 4 / 5; object-fit: cover; }
.b-ouverture .b-photo img { max-height: 560px; object-fit: cover; }

/* Bandeau des engagements */
.b-engagements { background: var(--marine); color: #fff; }
.b-engagements ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: 1120px; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .b-engagements ul { grid-template-columns: repeat(4, 1fr); padding: 0 32px; } }
.b-engagements li { padding: 20px 16px; font: 600 21px/1.15 var(--titre); letter-spacing: 0.01em; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.b-engagements li:nth-child(2n + 1) { border-left: 0; }
@media (min-width: 880px) { .b-engagements li:nth-child(2n + 1) { border-left: 1px solid rgba(255, 255, 255, 0.22); } .b-engagements li:first-child { border-left: 0; padding-left: 0; } }
.b-engagements small { display: block; font: 400 14px/1.4 var(--texte); color: #C9D2E6; margin-top: 4px; letter-spacing: 0; }

/* Sections */
.b-section { padding: 56px 0; }
@media (min-width: 720px) { .b-section { padding: 80px 0; } }
.b-section.b-creme { background: var(--creme); }
.b-intro { color: var(--doux); margin-top: 12px; max-width: 40em; }
.b-rangee { display: grid; gap: 24px; align-items: center; margin-top: 40px; }
@media (min-width: 820px) { .b-rangee { grid-template-columns: 5fr 7fr; gap: 48px; } .b-rangee.b-inverse > :first-child { order: 2; } .b-rangee .b-photo.b-haute img { max-height: 520px; } }
.b-rangee p + p { margin-top: 12px; }
.b-rangee .b-lien { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--rouge); }
.b-duo { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.b-texte { max-width: 40em; }
.b-texte p + p, .b-texte ul + p, .b-texte p + ul { margin-top: 14px; }
.b-texte ul { padding-left: 20px; margin: 0; }
.b-texte li + li { margin-top: 6px; }

/* Grille des services (accueil) */
/* Carrousel « Ce que je fais » : une diapositive par métier, photo entière et texte, défilement natif */
.b-carrousel { margin-top: 40px; }
.b-car-piste { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; border: 1px solid var(--trait); background: #fff; }
.b-car-piste::-webkit-scrollbar { display: none; }
.b-car-piste:focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; }
.b-car-piste > li { flex: 0 0 100%; scroll-snap-align: start; display: grid; gap: 20px; align-content: start; padding: 20px; }
.b-car-piste img { display: block; width: 100%; height: 320px; object-fit: contain; background: var(--creme); border-radius: 2px; }
.b-car-piste h3 a { color: inherit; text-decoration: none; }
.b-car-piste h3 a:hover { text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 4px; }
.b-car-piste p { color: var(--doux); margin-top: 8px; font-size: 16px; }
.b-car-piste .b-lien { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--rouge); }
/* Ordinateur : les 4 métiers en cartes 2 x 2, sans défilement (la navigation se masque seule, rien ne déborde). */
@media (min-width: 860px) {
  .b-car-piste { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: visible; scroll-snap-type: none; background: var(--trait); }
  .b-car-piste > li { background: #fff; padding: 24px; gap: 16px; }
  .b-car-piste img { height: 300px; }
}
.b-car-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.b-car-nav[hidden] { display: none; }
.b-car-nav > button { width: 40px; height: 40px; border: 1px solid var(--trait); border-radius: 4px; background: #fff; color: var(--marine); font: 600 24px/1 var(--texte); cursor: pointer; }
.b-car-nav > button:disabled { opacity: 0.35; cursor: default; }
.b-car-points { display: flex; gap: 2px; }
.b-car-points button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.b-car-points button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--trait); }
.b-car-points button[aria-current="true"]::before { background: var(--rouge); }
@media (prefers-reduced-motion: no-preference) { .b-car-piste { scroll-behavior: smooth; } }

/* Étapes */
.b-etapes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; counter-reset: e; border-top: 1px solid var(--trait); }
@media (min-width: 820px) { .b-etapes { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.b-etapes li { counter-increment: e; padding: 24px 0; border-bottom: 1px solid var(--trait); }
@media (min-width: 820px) { .b-etapes li { padding: 0 32px 0 0; border-bottom: 0; } .b-etapes li + li { padding-left: 32px; border-left: 1px solid var(--trait); } }
.b-etapes li::before { content: counter(e); display: block; font: 700 44px/1 var(--titre); color: var(--rouge); margin-bottom: 8px; }
.b-etapes p { color: var(--doux); margin-top: 8px; }

/* Citation de Youcef */
.b-citation { margin: 0; border-left: 4px solid var(--rouge); padding: 4px 0 4px 20px; }
.b-citation p { font: 600 26px/1.2 var(--titre); color: var(--marine); }
@media (min-width: 720px) { .b-citation p { font-size: 30px; } }
.b-citation footer { margin-top: 12px; color: var(--doux); font-size: 15px; }

/* Encadré simulateur */
.b-simu { background: var(--marine); color: #fff; padding: 32px 24px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .b-simu { grid-template-columns: 1fr auto; padding: 40px; } }
.b-simu h2 { color: #fff; }
.b-simu p { color: #C9D2E6; margin-top: 8px; }

/* Demande de devis */
.b-devis { display: grid; gap: 40px; }
@media (min-width: 880px) { .b-devis { grid-template-columns: 1fr 1fr; gap: 64px; } }
.b-form label { display: block; font-weight: 600; margin: 18px 0 6px; }
.b-form label:first-child { margin-top: 0; }
.b-form .b-facultatif { color: var(--doux); font-weight: 400; }
.b-form input, .b-form select, .b-form textarea { width: 100%; min-height: 48px; font: inherit; padding: 10px 14px; border: 1px solid #B9B2A5; border-radius: 4px; background: #fff; color: var(--encre); }
.b-form textarea { min-height: 112px; resize: vertical; }
.b-form .b-accord { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin-top: 20px; cursor: pointer; }
.b-form .b-accord input { width: 20px; min-height: 0; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--rouge); }
.b-form .b-erreur { color: var(--rouge-fonce); font-size: 15px; margin-top: 6px; }
.b-form .b-ko { border-color: var(--rouge); }
.b-form .b-discret { color: var(--doux); font-size: 15px; margin-top: 14px; }
[hidden] { display: none !important; }

/* Pied */
.b-pied { background: var(--marine-fonce); color: #C9D2E6; font-size: 15px; }
.b-pied .b-page { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 820px) { .b-pied .b-page { grid-template-columns: 2fr 1fr 1fr; } }
.b-pied h2 { color: #fff; font-size: 22px; }
.b-pied a { color: #fff; }
.b-pied ul { list-style: none; padding: 0; margin: 12px 0 0; }
.b-pied li + li { margin-top: 6px; }
.b-pied p { margin-top: 8px; }
.b-pied .b-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 20px; font-size: 13px; }
.b-texte h2 + p, .b-rangee h2 + p, .b-rangee h2 + .b-intro { margin-top: 14px; }

/* Ouverture marine (accueil) */
.b-ouverture.b-marine { background: var(--marine); color: #fff; }
.b-marine h1 { color: #fff; font-size: 40px; line-height: 1.02; }
@media (min-width: 720px) { .b-marine h1 { font-size: 60px; } }
.b-marine .b-surtitre { color: #C9D2E6; }
.b-marine .b-chapo { color: #DCE3F0; }
.b-marine .b-btn.b-second { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.b-marine .b-btn.b-second:hover { background: #fff; color: var(--marine); }
.b-marine .b-photo figcaption { color: #C9D2E6; }
.b-marine .b-photo img { background: var(--marine-fonce); }

/* Rangée de preuves (sous l'ouverture marine) */
.b-preuves { background: var(--creme); border-bottom: 1px solid var(--trait); }
.b-preuves ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 880px) { .b-preuves ul { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.b-preuves li { padding: 18px 12px; font-size: 14px; line-height: 1.35; color: var(--doux); border-left: 1px solid var(--trait); }
.b-preuves li:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
@media (max-width: 879px) { .b-preuves li:nth-child(n + 3) { border-top: 1px solid var(--trait); } }
@media (min-width: 880px) { .b-preuves li { padding: 22px 20px; } .b-preuves li:nth-child(2n + 1) { border-left: 1px solid var(--trait); padding-left: 20px; } .b-preuves li:first-child { border-left: 0; padding-left: 0; } }
.b-preuves b { display: block; font: 700 20px/1.1 var(--titre); color: var(--marine); margin-bottom: 2px; letter-spacing: 0.01em; }

/* Avis (affichés seulement après confirmation) */
.b-avis { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 820px) { .b-avis { grid-template-columns: 1fr 1fr; } }

/* Bouton Appeler fixe en bas de l'écran, mobile seulement */
.b-appel-fixe { display: none; }
@media (max-width: 719px) {
  .b-appel-fixe { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    min-height: 56px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--rouge); color: #fff;
    font: 700 21px/1 var(--titre); letter-spacing: 0.02em; text-decoration: none; box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12); }
  .b-appel-fixe svg { width: 22px; height: 22px; flex: none; }
  .b-appel-fixe:active { background: var(--rouge-fonce); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Passe design du 23/11 (après-midi) : collage d'ouverture, témoin, galerie */
.b-collage { position: relative; margin: 0; padding: 0 0 28px 0; }
.b-collage .b-c1 { position: relative; width: 86%; margin-left: auto; }
.b-collage .b-c1 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; display: block; }
.b-collage .b-c2, .b-collage .b-c3 { position: absolute; border: 4px solid var(--marine); border-radius: 2px; background: var(--marine); }
.b-collage .b-c2 { width: 40%; left: 0; bottom: 56px; }
.b-collage .b-c2 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.b-collage .b-c3 { width: 30%; aspect-ratio: 1; object-fit: cover; right: -8px; top: -16px; display: none; }
.b-collage figcaption { position: absolute; left: 0; bottom: 0; font-style: italic; font-size: 13px; color: #C9D2E6; }
@media (min-width: 880px) {
  .b-collage { padding-bottom: 32px; }
  .b-collage .b-c1 { width: 78%; }
  .b-collage .b-c1 img { max-height: 600px; }
  .b-collage .b-c3 { display: block; }
  .b-collage .b-c2 { width: 38%; bottom: 72px; }
  .b-marine h1 { font-size: 72px; line-height: 0.98; }
  .b-ouverture.b-marine { padding: 80px 0 72px; }
}
.b-temoin { margin: 32px 0 0; display: grid; gap: 20px; align-items: center; }
.b-temoin img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--trait); }
@media (min-width: 720px) { .b-temoin { grid-template-columns: 160px 1fr; gap: 40px; max-width: 920px; } .b-temoin img { width: 160px; height: 160px; } .b-temoin .b-citation p { font-size: 34px; } }
.b-galerie { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .b-galerie { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 880px) { .b-galerie-3 { grid-template-columns: repeat(3, 1fr); } }
.b-galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; display: block; }
.b-galerie img.b-haut { object-position: 50% 15%; }
.b-galerie span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--doux); }
.b-collage img, .b-galerie img, .b-temoin img { height: auto; }
.b-temoin img { height: 112px; }
@media (min-width: 720px) { .b-temoin img { height: 160px; } }
/* Réalisations (photos du 23/11 12h32) : grandes vignettes verticales */
.b-galerie.b-grande { grid-template-columns: 1fr 1fr; margin-top: 40px; }
.b-galerie.b-grande img { aspect-ratio: 4 / 5; }
@media (min-width: 880px) { .b-galerie.b-grande { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.b-marine .b-galerie span { color: #C9D2E6; }
.b-marine > .b-page > .b-lien { display: inline-block; margin-top: 28px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.b-section.b-marine { background: var(--marine); color: #fff; }
.b-section.b-marine h2 { color: #fff; }
.b-citation-seule { max-width: 760px; margin: 32px 0 0; }

/* Retours de Youcef du 23/11 au soir : ouverture avant / après, ordre des services */
.b-tag { position: absolute; left: 8px; top: 8px; background: var(--marine-fonce); color: #fff; font: 700 14px/1 var(--titre); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 2px; }
.b-tag.b-apres { background: var(--rouge); }
.b-collage .b-c1 .b-tag { left: auto; right: 12px; top: auto; bottom: 12px; font-size: 15px; padding: 9px 12px; }
.b-chapo-liste { list-style: none; margin: 20px 0 0; padding: 0; max-width: 36em; }
.b-chapo-liste li { position: relative; padding: 10px 0 10px 22px; color: #DCE3F0; font-size: 18px; line-height: 1.4; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.b-chapo-liste li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 3px; background: var(--rouge); }
.b-liste { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--trait); max-width: 760px; }
.b-liste li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--trait); }
.b-liste li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 3px; background: var(--rouge); }
@media (min-width: 880px) { .b-liste { grid-template-columns: 1fr 1fr; column-gap: 40px; max-width: none; } }
.b-section > .b-page > .b-lien { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--rouge); text-decoration: underline; text-underline-offset: 4px; }
.b-avaps { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 880px) { .b-avaps { grid-template-columns: 1fr 1fr; gap: 32px; } }
.b-avap { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b-avap > div { position: relative; }
.b-avap img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; display: block; }
.b-avap figcaption { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; color: var(--doux); margin-top: 4px; }
.b-marine .b-avap figcaption { color: #C9D2E6; }
.b-ouverture .b-avap { max-width: 560px; }
@media (min-width: 1000px) { .b-section.b-marine > .b-page > .b-lien { color: #fff; } }

/* « J'ai besoin de… » dans l'ouverture : mène au formulaire, service déjà choisi. */
.b-besoin { margin-top: 28px; }
.b-besoin p { font-weight: 600; color: #DCE3F0; }
.b-besoin ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.b-besoin a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; font-weight: 600; }
.b-besoin a:hover { background: #fff; color: var(--marine); }
.b-besoin a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
