/* RDB Immobilier — feuille de style du site public */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 500 650;
  font-style: normal;
  font-display: swap;
}

:root {
  --marine: #0e1f3a;
  --marine-2: #1a2f52;
  --bleu: #1587cd;          /* bleu du logo, pour les grandes surfaces et les accents */
  --bleu-fonce: #0f6fad;    /* boutons et liens : contraste suffisant sur fond blanc */
  --bleu-tres-fonce: #0b5687;
  --bleu-pale: #e8f2fa;
  --texte: #233046;
  --doux: #555f70;
  --fond: #ffffff;
  --teinte: #f6f4ef;
  --trait: #e2ded4;
  --trait-champ: #9aa3b2;
  --erreur: #b42318;
  --erreur-fond: #fdf1f0;
  --succes: #1e7b3a;
  --succes-fond: #e8f5ec;
  --rayon: 14px;
  --rayon-petit: 10px;
  --ombre: 0 1px 2px rgba(14, 31, 58, .05), 0 10px 30px rgba(14, 31, 58, .07);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gouttiere: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu-fonce); text-underline-offset: 3px; }
a:hover { color: var(--bleu-tres-fonce); }
:focus-visible { outline: 3px solid rgba(21, 135, 205, .55); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--marine); line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-size: .95em; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.petit, .champ__aide, .mention-donnees, .mention-envoi, .note-obligatoire, .fil, figcaption { line-height: 1.55; }
[hidden] { display: none !important; }
::selection { background: var(--bleu-pale); color: var(--marine); }
input, textarea { caret-color: var(--bleu-fonce); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bleu-fonce); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

.conteneur { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur--etroit { max-width: 820px; }
.centre { text-align: center; }
.petit { font-size: .9rem; color: var(--doux); }
.lien-evitement { position: absolute; left: -999px; top: 8px; background: var(--marine); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.lien-evitement:focus { left: 8px; }
.titre-espace { margin-top: 2.2em; }
.facultatif { font-weight: 400; color: var(--doux); font-size: .92em; }
.js-seulement { display: none; }
.js .js-seulement { display: flex; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: var(--rayon-petit);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.25; text-align: center; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.bouton--principal { background: var(--bleu-fonce); color: #fff; }
.bouton--principal:hover { background: var(--bleu-tres-fonce); color: #fff; }
.bouton--secondaire { background: #fff; color: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.bouton--secondaire:hover { background: var(--bleu-pale); color: var(--bleu-tres-fonce); }
.bouton--clair { background: #fff; color: var(--marine); }
.bouton--clair:hover { background: var(--bleu-pale); color: var(--marine); }
.bouton--contour { background: #fff; color: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.bouton--discret { background: transparent; color: var(--marine); border-color: var(--trait-champ); }
.bouton--discret:hover { background: var(--teinte); color: var(--marine); }
.bouton--large { min-width: 280px; }
.bouton[disabled] { opacity: .65; cursor: progress; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--trait); }
.entete__barre { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.entete__logo { flex: none; margin-right: auto; }
.entete__logo img { width: auto; height: 52px; }
.entete__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.entete__nav a { display: block; white-space: nowrap; padding: 10px 11px; border-radius: 8px; color: var(--marine); text-decoration: none; font-size: .95rem; font-weight: 500; }
.entete__nav a:hover { background: var(--teinte); }
.entete__nav a[aria-current="page"] { color: var(--bleu-fonce); box-shadow: inset 0 -2px 0 var(--bleu); border-radius: 0; }
.entete__telephone-menu { display: none !important; }
.entete__telephone { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--trait); border-radius: 999px; color: var(--marine); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.entete__telephone svg { fill: none; stroke: currentColor; stroke-width: 2; }
.entete__telephone:hover { border-color: var(--bleu); color: var(--bleu-fonce); }
.entete__menu { display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--trait); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; color: var(--marine); cursor: pointer; }
.entete__menu-icone, .entete__menu-icone::before, .entete__menu-icone::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.entete__menu-icone::before, .entete__menu-icone::after { content: ""; position: absolute; left: 0; }
.entete__menu-icone::before { top: -6px; }
.entete__menu-icone::after { top: 6px; }
.entete__menu[aria-expanded="true"] .entete__menu-icone { background: transparent; }
.entete__menu[aria-expanded="true"] .entete__menu-icone::before { top: 0; transform: rotate(45deg); }
.entete__menu[aria-expanded="true"] .entete__menu-icone::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .js .entete__menu { display: inline-flex; }
  .js .entete__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--trait); box-shadow: 0 18px 30px rgba(14, 31, 58, .12); padding: 8px var(--gouttiere) 20px; }
  .js .entete__nav.est-ouvert { display: block; }
  .js .entete__nav ul { flex-direction: column; gap: 0; }
  .js .entete__nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--teinte); border-radius: 0; }
  .js .entete__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--bleu); padding-left: 12px; }
  .js .entete__telephone-menu { display: flex !important; justify-content: center; margin-top: 16px; padding: 14px; border-radius: var(--rayon-petit); background: var(--bleu-fonce); color: #fff !important; font-weight: 600; }
  .no-js .entete__barre { flex-wrap: wrap; padding-bottom: 10px; }
  .no-js .entete__nav { order: 5; width: 100%; }
  .no-js .entete__nav ul { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .entete__barre { min-height: 64px; gap: 10px; }
  .entete__logo img { height: 36px; }
  .entete__telephone { padding: 0; width: 46px; height: 46px; justify-content: center; }
  .entete__telephone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .entete__menu-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .entete__menu { padding: 0; width: 46px; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--teinte { background: var(--teinte); }
.section--marine { background: var(--marine); color: #dfe6f0; }
.section--marine h2 { color: #fff; }
.section--formulaire { padding-top: clamp(32px, 4vw, 56px); }
.section__entete { max-width: 720px; margin-bottom: 36px; }
.section__titre { margin-bottom: 32px; }
.section--compacte { padding: clamp(40px, 5vw, 64px) 0; }
.bandeau-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.bandeau-action > div { flex: 1 1 420px; }
.bandeau-action p { margin: 0; }
.bandeau-action h2 { margin-bottom: .4em; }
@media (max-width: 560px) { .bandeau-action .bouton { width: 100%; } }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.grille-2--centre { align-items: center; }
.texte-mesure { max-width: 46ch; color: var(--doux); }
@media (max-width: 860px) { .grille-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Accueil ---------- */
.hero { background: linear-gradient(180deg, var(--teinte) 0%, #fff 100%); padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 4vw, 56px); }
.actions--hero { flex-direction: column; align-items: stretch; max-width: 400px; margin-bottom: 0; }
.actions--hero .bouton { width: 100%; }
.hero__grille { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__intro { font-size: 1.2rem; color: var(--doux); max-width: 34em; }
.liste-coches li::before, .engagements li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bleu-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6fad' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 18px; box-shadow: var(--ombre); }
.hero__photo figcaption { margin-top: 10px; font-size: .875rem; color: var(--doux); }
@media (max-width: 860px) {
  .hero__grille { grid-template-columns: minmax(0, 1fr); }
  .hero__photo img { aspect-ratio: 16 / 10; }
  .hero__intro { font-size: 1.08rem; }
}
@media (max-width: 560px) {
  .actions .bouton { width: 100%; }
}

.etapes { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: etape; }
.etape { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; }
.etapes--frise .etape { background: none; border: 0; border-top: 1px solid var(--trait); border-radius: 0; padding: 24px 8px 0 0; position: relative; }
.etapes--frise .etape__numero { position: absolute; top: -21px; left: 0; box-shadow: 0 0 0 6px #fff; }
.etapes--frise .etape h3 { margin-top: 28px; }
.etape__numero { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--marine); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 16px; }
.etape p { color: var(--doux); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: minmax(0, 1fr); } }



.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.offre { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 32px; background: #fff; }
.offre .bouton { margin-top: auto; }
.offre--mandat { border-color: var(--marine); }
.offre__conditions { font-size: .95rem; color: var(--doux); border-top: 1px solid var(--trait); padding-top: 14px; margin-bottom: 22px; }
@media (max-width: 760px) { .offres { grid-template-columns: minmax(0, 1fr); } .offre { padding: 24px; } .offre .bouton { width: 100%; } }

.lien-externe { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.lien-externe a { font-weight: 600; }
.lien-externe a::after { content: " ↗"; }
.lien-externe span { font-size: .9rem; color: var(--doux); }

.bandeau-agence { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.bandeau-agence > div { flex: 1 1 520px; }
.bandeau-agence h2 { margin-bottom: .4em; }
.bandeau-agence p { margin: 0 0 .4em; max-width: 60ch; }
.bandeau-agence__adresse { color: var(--doux); font-size: .98rem; }
.photo-cadre { margin: 0; }
.photo-cadre img { width: 100%; border-radius: var(--rayon); aspect-ratio: 4 / 3; object-fit: cover; }
.photo-cadre figcaption { font-size: .875rem; color: var(--doux); margin-top: 8px; }
.photos-agence { display: grid; gap: 20px; }
.photos-agence--ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
@media (max-width: 760px) { .photos-agence--ligne { grid-template-columns: minmax(0, 1fr); } }

.coordonnees { margin: 20px 0; display: grid; gap: 10px; }
.coordonnees div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.coordonnees dt { color: var(--doux); font-size: .95rem; }
.coordonnees dd { margin: 0; }
.coordonnees--grandes dd { font-size: 1.1rem; }
@media (max-width: 480px) { .coordonnees div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--trait); margin-bottom: 24px; }
.faq__item { border-bottom: 1px solid var(--trait); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; color: var(--marine); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--bleu-fonce); border-bottom: 2px solid var(--bleu-fonce); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__reponse { padding: 0 0 18px; color: var(--texte); }
.faq__reponse p:last-child { margin: 0; }

/* ---------- Pages intérieures ---------- */
.bandeau-page { background: var(--teinte); padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--trait); }
.bandeau-page--marine { background: var(--marine); color: #dfe6f0; border-bottom: 0; }
.bandeau-page--marine h1 { color: #fff; }
.bandeau-page--marine .fil, .bandeau-page--marine .fil a { color: #c7d3e3; }
.bandeau-page__intro { font-size: 1.15rem; max-width: 46em; color: var(--doux); }
.bandeau-page--marine .bandeau-page__intro { color: #dfe6f0; }
.fil { font-size: .9rem; color: var(--doux); margin-bottom: 14px; }
.engagements { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; max-width: 760px; font-size: 1rem; color: var(--marine); }
.engagements li { display: flex; gap: 10px; align-items: flex-start; }
.engagements li::before { margin-top: 4px; }
@media (max-width: 640px) { .engagements { grid-template-columns: minmax(0, 1fr); } }
.bandeau-page__appel { margin: 18px 0 0; font-weight: 500; }
.bandeau-page__appel a { font-weight: 650; white-space: nowrap; }
.bandeau-page .lien-externe { margin-top: 14px; }
.pastilles { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .92rem; font-weight: 500; color: var(--marine); }
.texte-long h2 { margin-top: 1.6em; font-size: 1.5rem; }
.texte-long h2:first-child { margin-top: 0; }
.liste-coches { list-style: none; padding: 0; }
.liste-coches li { display: flex; gap: 10px; margin-bottom: 10px; }
.liste-coches li::before { margin-top: 4px; }
.liste-coches--claire li { color: var(--marine); }
.liste-numeros { padding-left: 1.2em; }
.liste-numeros li { margin-bottom: 8px; }
.liste-liens { list-style: none; padding: 0; }
.liste-liens li { margin-bottom: 8px; }


/* ---------- Formulaires ---------- */
.conteneur--formulaire { max-width: 820px; }
.renvoi { margin: 24px 4px 0; color: var(--doux); }
.carte-formulaire { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid var(--trait); border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--ombre); }
.info-telephone { font-size: .98rem; }

form fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
form legend { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--marine); padding: 0; margin-bottom: 18px; }
.intro-formulaire { font-size: 1.05rem; color: var(--marine); margin-bottom: 24px; }
.note-obligatoire { font-size: .92rem; color: var(--doux); }
.rangee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.rangee--npa { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.rangee--date { align-items: end; }
@media (max-width: 640px) {
  .rangee { grid-template-columns: minmax(0, 1fr); }
  /* Champs courts : restent côte à côte sur téléphone pour raccourcir le formulaire. */
  .rangee--npa { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 12px; }
  .rangee--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}

.champ { margin-bottom: 20px; min-width: 0; }
.champ > label, .champ--radios > legend { display: block; font-weight: 600; font-size: .98rem; color: var(--marine); margin-bottom: 6px; font-family: var(--sans); }
.champ--radios > legend { font-size: .98rem; margin-bottom: 6px; }
.champ__aide { font-size: .9rem; color: var(--doux); margin: -2px 0 8px; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ input[type="date"], .champ input[type="number"], .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--texte);
  background: #fff; border: 1px solid var(--trait-champ); border-radius: var(--rayon-petit); appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.champ select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1f3a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.champ input[type="date"] { min-width: 0; }
.champ textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(21, 135, 205, .25); }
.champ [aria-invalid="true"] { border-color: var(--erreur) !important; background-color: var(--erreur-fond); }
.champ__erreur { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; color: var(--erreur); font-size: .92rem; font-weight: 500; }
.champ__erreur::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--erreur); color: #fff; font-size: .75rem; font-weight: 700; }
.champ--court { max-width: 320px; }
.champ--case { display: flex; gap: 12px; align-items: flex-start; }
.champ--case input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--bleu-fonce); }
.champ--case label { padding: 2px 0; }
.champ--case label { font-weight: 400; font-size: .98rem; color: var(--texte); margin: 0; }
.champ--aligne { min-height: 52px; align-items: center; }
.radios-en-ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.radios-en-ligne label { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px; border: 1px solid var(--trait-champ); border-radius: var(--rayon-petit); cursor: pointer; font-weight: 500; }
.radios-en-ligne input { width: 20px; height: 20px; margin: 0; accent-color: var(--bleu-fonce); }
.radios-en-ligne label:has(input:checked) { border-color: var(--bleu-fonce); background: var(--bleu-pale); }
.champ--radios[aria-invalid="true"] .radios-en-ligne label { border-color: var(--erreur); }
.champ--fichier input[type="file"] { width: 100%; padding: 14px; border: 1.5px dashed var(--trait-champ); border-radius: var(--rayon-petit); background: #fbfaf7; font: inherit; font-size: .95rem; cursor: pointer; }
/* Le texte natif (« Aucun fichier choisi ») est masqué : la liste .fichiers-choisis affiche les fichiers retenus. */
.champ--fichier input[type="file"] { color: transparent; }
.champ--fichier input[type="file"]:focus-visible { outline: 3px solid rgba(21, 135, 205, .55); outline-offset: 2px; border-color: var(--bleu); }
.champ--fichier input[type="file"]::file-selector-button { color: var(--bleu-fonce); margin-right: 12px; padding: 10px 14px; border: 1px solid var(--bleu-fonce); border-radius: 8px; background: #fff; color: var(--bleu-fonce); font: inherit; font-weight: 600; cursor: pointer; }
.fichiers-choisis { list-style: none; padding: 0; margin: 8px 0 0; font-size: .9rem; color: var(--doux); }
.fichiers-choisis li { padding: 2px 0; }
.fichiers-choisis .fichier-refuse { color: var(--erreur); }
.fieldset-documents { background: var(--teinte); border-radius: var(--rayon); padding: 22px !important; }
.fieldset-documents legend { float: left; width: 100%; font-size: 1.2rem; margin-bottom: 10px; }
.fieldset-documents legend + * { clear: both; }
.documents, .criteres-repli { border: 1px solid var(--trait); border-radius: var(--rayon); background: #fbfaf7; margin: 4px 0 24px; }
.documents > summary, .criteres-repli > summary { cursor: pointer; list-style: none; position: relative; min-height: 52px; padding: 14px 48px 14px 18px; font-weight: 600; color: var(--marine); }
.documents > summary::-webkit-details-marker, .criteres-repli > summary::-webkit-details-marker { display: none; }
.documents > summary::after, .criteres-repli > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--bleu-fonce); border-bottom: 2px solid var(--bleu-fonce); transform: translateY(-70%) rotate(45deg); }
.documents[open] > summary::after, .criteres-repli[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.documents > :not(summary), .criteres-repli > :not(summary) { margin-left: 18px; margin-right: 18px; }
.documents > :last-child, .criteres-repli > :last-child { margin-bottom: 18px; }
.criteres-repli .criteres { margin-bottom: 0 !important; }
.apres-envoi { background: var(--teinte); border-radius: var(--rayon-petit); padding: 14px 16px; font-size: .98rem; color: var(--marine); }
.detail-discret { font-size: .95rem; }
.detail-discret summary { cursor: pointer; color: var(--bleu-fonce); font-weight: 600; padding: 6px 0; }
.detail-discret p { margin: 8px 0 0; }

.criteres { margin-bottom: 24px !important; }
.criteres legend { font-family: var(--sans); font-size: .98rem; font-weight: 600; margin-bottom: 6px; }
.critere { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--trait); }
.critere__nom { font-weight: 500; color: var(--marine); }
.segments { display: inline-flex; border: 1px solid var(--trait-champ); border-radius: var(--rayon-petit); overflow: hidden; }
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segment span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; font-size: .9rem; font-weight: 500; color: var(--texte); background: #fff; border-left: 1px solid var(--trait); white-space: nowrap; }
.segment:first-child span { border-left: 0; color: var(--doux); }
.segment input:checked + span { background: var(--bleu-fonce); color: #fff; }
.segment input[value="indispensable"]:checked + span { background: var(--marine); }
.segment input:focus-visible + span { outline: 3px solid rgba(21, 135, 205, .55); outline-offset: -3px; }
@media (max-width: 560px) {
  .critere { display: grid; grid-template-columns: minmax(0, 1fr); }
  .segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .segment span { padding: 0 6px; font-size: .875rem; }
}

.etiquettes { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes li { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu-tres-fonce); font-size: .95rem; font-weight: 500; }
.etiquettes button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.etiquettes button:hover { background: rgba(15, 111, 173, .12); }
.ajout-localisation { display: flex; gap: 8px; }
.ajout-localisation input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; border: 1px solid var(--trait-champ); border-radius: var(--rayon-petit); }
.ajout-localisation input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(21, 135, 205, .25); }
.champ:has(#localisations[aria-invalid="true"]) .ajout-localisation input { border-color: var(--erreur); background: var(--erreur-fond); }
.bouton--petit { min-height: 52px; padding: 0 16px; }

.fin-formulaire { border-top: 1px solid var(--trait); padding-top: 24px; margin-top: 8px; }
.mention-donnees { font-size: .9rem; color: var(--doux); }
.mention-envoi { font-size: .9rem; color: var(--doux); margin: 12px 0 0; }
.navigation-etapes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; }
.navigation-etapes .bouton--principal { margin-left: auto; }
@media (max-width: 560px) {
  .bouton--large { width: 100%; min-width: 0; }
  .navigation-etapes { flex-wrap: nowrap; }
  .navigation-etapes .bouton--principal { flex: 1; }
  .fin-formulaire > .bouton { width: 100%; }
}

.js [data-etapes] fieldset[data-etape]:not(.est-active) { display: none; }
.js [data-etapes] fieldset[data-etape] > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.progression { margin-bottom: 26px; }
.progression__texte { margin: 0 0 10px; font-size: .95rem; color: var(--doux); }
.progression__texte strong { color: var(--marine); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; display: block; margin-top: 2px; }
.progression__barres { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.progression__barres li { height: 6px; border-radius: 3px; background: var(--trait); transition: background-color .25s; }
.progression__barres li.est-faite { background: var(--bleu-fonce); }

.alerte { border-radius: var(--rayon-petit); padding: 14px 18px; margin-bottom: 22px; font-size: .98rem; }
.alerte--erreur { background: var(--erreur-fond); border: 1px solid #f1c4c0; color: #7a1a12; }
.alerte--attention { background: #fff6e6; border: 1px solid #f0d9a8; color: #6b4a07; }

.confirmation { background: #fff; border: 1px solid var(--trait); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.confirmation:focus { outline: none; }
/* Dans la carte du formulaire, la confirmation remplace son contenu : pas de second encadré. */
.carte-formulaire > .confirmation { border: 0; border-radius: 0; padding: 0; background: none; }
.confirmation__icone { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--succes-fond); color: var(--succes); margin-bottom: 18px; }
.confirmation__icone svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.confirmation__suite { background: var(--teinte); border-radius: var(--rayon); padding: 22px; margin: 22px 0; }
.confirmation__suite h3 { margin-bottom: 6px; }
.documents-recus { padding-left: 1.2em; margin-bottom: 28px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine); color: #c7d3e3; font-size: .95rem; padding: 56px 0 0; }
.pied a, .pied .lien-bouton { color: #fff; }
.pied a:hover, .pied .lien-bouton:hover { color: #fff; text-decoration-thickness: 2px; }
.bandeau-page--marine a:hover { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 32px; }
.pied__logo { width: 170px; height: auto; margin-bottom: 14px; }
.pied__titre { font-family: var(--sans); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: #9fd0f0; margin-bottom: 14px; font-weight: 600; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pied li > a, .pied li > .lien-bouton { display: inline-block; padding: 4px 0; }
.pied .externe { color: #c7d3e3; font-size: .875rem; line-height: 1.5; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: .875rem; line-height: 1.55; }
.pied__bas p { margin: 0; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bandeau cookies ---------- */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: 0 12px 40px rgba(14, 31, 58, .22); padding: 18px 20px; font-size: .92rem; line-height: 1.5; }
.cookies__titre { font-weight: 650; color: var(--marine); margin-bottom: 4px; }
.cookies__boutons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookies__boutons .bouton { flex: 1 1 140px; min-height: 46px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .entete, .pied, .cookies, .colonne-info { display: none; } }
