/* DOMACCORD — feuille de style unique
   Couleurs du logo : bordeaux #801529 · orange #d87010 · anthracite #373d43 */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }

:root {
  --anthracite: #373d43;
  --ink: #1f2428;
  --bordeaux: #801529;
  --bordeaux-dark: #61101f;
  --orange: #d87010;
  --orange-text: #a84f00;      /* orange assombri pour le texte sur fond clair */
  --fond: #f4f5f6;
  --blanc: #ffffff;
  --trait: #dcdfe2;
  --muted: #5a6168;
  --rayon: 14px;
  --largeur: 1120px;
  font-size: 100%;
}

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

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

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--anthracite);
  background: var(--blanc);
}

img { max-width: 100%; height: auto; }
a { color: var(--bordeaux); text-underline-offset: 0.18em; }
a:hover { color: var(--bordeaux-dark); }

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

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

.lien-evitement {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.75rem 1rem; z-index: 100;
}
.lien-evitement:focus { left: 0; }

/* ---------- Titres ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
.chapo { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--anthracite); max-width: 56ch; }

/* ---------- En-tête ---------- */
.entete { background: var(--blanc); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
/* En-tête collant plus haut : les liens vers une ancre (ex. le formulaire) s'arrêtent sous l'en-tête */
html { scroll-padding-top: 7rem; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.marque { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.marque img { width: 112px; height: 112px; display: block; flex: none; }
.marque span { font-weight: 700; font-size: 1.65rem; letter-spacing: -0.01em; line-height: 1.1; }
.marque small { display: block; font-weight: 400; font-size: 1.1rem; color: var(--muted); letter-spacing: 0; margin-top: 0.15rem; }

.menu { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a {
  display: block; padding: 0.55rem 0.65rem; border-radius: 999px; text-decoration: none;
  color: var(--anthracite); font-weight: 500; font-size: 0.94rem;
}
.menu a:hover { background: var(--fond); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--ink); color: #fff; }
.menu .menu__cta a { background: var(--bordeaux); color: #fff; margin-left: 0.4rem; }
.menu .menu__cta a:hover { background: var(--bordeaux-dark); }

.bouton-menu {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.45rem 1rem; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer;
}

/* Le menu se replie (sous 1180 px de large) uniquement quand JavaScript est actif */
@media (max-width: 1180px) {
  .js .bouton-menu { display: inline-block; }
  .js .menu { display: none; flex-direction: column; align-items: stretch; width: 100%; padding-bottom: 0.8rem; }
  .js .menu.est-ouvert { display: flex; }
  .js .entete__barre { flex-wrap: wrap; }
  .menu a { padding: 0.8rem 1rem; }
  .menu .menu__cta a { margin-left: 0; text-align: center; }
  .menu { width: 100%; }
}
@media (max-width: 860px) {
  .marque { gap: 0.75rem; }
  .marque span { font-size: 1.3rem; }
  .marque small { font-size: 0.88rem; margin-top: 0; }
}

/* Petits écrans : le logo et le texte s'adaptent à la largeur pour que le bouton Menu reste sur la même ligne */
@media (max-width: 480px) {
  .marque { gap: 0.6rem; min-width: 0; }
  .marque img { width: clamp(72px, 26vw, 112px); height: auto; aspect-ratio: 1; }
  .marque span { font-size: clamp(0.85rem, 4.4vw, 1.3rem); }
  .marque small { font-size: clamp(0.66rem, 3.2vw, 0.88rem); }
  .bouton-menu { padding: 0.4rem 0.85rem; font-size: 0.95rem; }
  .entete__barre { gap: 0.6rem; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; font-size: 1rem; font-family: inherit; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bouton--plein { background: var(--bordeaux); color: #fff; }
.bouton--plein:hover { background: var(--bordeaux-dark); color: #fff; }
.bouton--contour { border-color: var(--ink); color: var(--ink); background: transparent; }
.bouton--contour:hover { background: var(--ink); color: #fff; }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Héros de l'accueil ---------- */
.heros { background: var(--fond); padding-block: clamp(2rem, 6vw, 4.5rem); }
.heros__grille { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.heros h1 { max-width: none; }
.heros .horaires { margin-top: 1.25rem; font-size: 0.92rem; color: var(--muted); }

/* Les deux agences : le numéro de département est l'identifiant de chaque centre */
.plaques { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plaque {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 21rem;
  padding: 1.4rem 1.3rem 1.3rem; border-radius: var(--rayon); text-decoration: none;
  container-type: inline-size; /* permet d'adapter la taille du téléphone à la largeur de l'encadré */
}
.plaque--83 { background: var(--bordeaux); color: #fff; }
.plaque--13 { background: var(--orange); color: var(--ink); }
.plaque__num { font-weight: 700; font-size: clamp(4.5rem, 9vw, 7.2rem); line-height: 0.85; letter-spacing: -0.05em; margin: 0; }
.plaque__ville { font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin: 1rem 0 0.35rem; }
.plaque__cp { font-size: 0.9rem; margin: 0 0 1rem; opacity: 0.92; }
.plaque__dept { display: flex; flex-direction: column; gap: 0.55rem; }
.plaque__mot { margin: 0; font-weight: 500; font-size: 1rem; line-height: 1; }
.plaque .plaque__num { font-size: clamp(3.6rem, 7.2vw, 5.76rem); }
/* Téléphone : une seule ligne, centrée, sur toute la largeur de l'encadré */
.plaque__tel, .plaque__tel:hover {
  display: block; text-align: center; white-space: nowrap; font-weight: 700; color: inherit;
  font-size: 1.4rem; font-size: clamp(1.1rem, 13.6cqw, 3rem);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em;
}
.plaque__mail, .plaque__mail:hover { color: inherit; font-size: 0.85rem; margin-top: 0.6rem; word-break: break-all; }

@media (max-width: 900px) {
  .heros__grille { grid-template-columns: 1fr; }
  .heros h1 { max-width: none; }
}
@media (max-width: 520px) {
  .plaques { grid-template-columns: 1fr; }
  .plaque { min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.15rem; align-items: center; }
  .plaque__dept { grid-row: 1 / span 2; }
  .plaque .plaque__num { font-size: 3.7rem; }
  .plaque__texte { display: contents; }
  .plaque__ville { margin: 0; align-self: end; font-size: 1.02rem; }
  .plaque__cp { margin: 0; align-self: start; font-size: 0.85rem; }
  .plaque__tel, .plaque__tel:hover { grid-column: 1 / -1; margin-top: 1rem; }
}

/* Héros avec photo (accueil) : la photo respire par un zoom très lent, puis revient à sa taille */
.heros--photo {
  position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff;
  min-height: min(82vh, 46rem); display: flex; align-items: center;
  padding-block: clamp(3rem, 9vw, 6.5rem);
}
.heros__photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.heros__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block;
  transform-origin: 50% 55%; will-change: transform;
  animation: zoom-lent 36s ease-in-out infinite;
}
@keyframes zoom-lent {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}
/* Voile sombre : garde le texte blanc lisible sur la roche claire */
.heros--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 22, 26, 0.76) 0%, rgba(18, 22, 26, 0.63) 50%, rgba(18, 22, 26, 0.12) 100%),
    linear-gradient(0deg, rgba(18, 22, 26, 0.22) 0%, rgba(18, 22, 26, 0) 40%);
}
@media (max-width: 900px) {
  .heros--photo::before { background: linear-gradient(180deg, rgba(18, 22, 26, 0.68) 0%, rgba(18, 22, 26, 0.58) 100%); }
}
.heros--photo .conteneur { width: min(100% - 2.5rem, var(--largeur)); }
.heros--photo h1, .heros--photo .chapo { color: #fff; }
.heros--photo .chapo { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.heros--photo .horaires { color: rgba(255, 255, 255, 0.88); }
.heros--photo .bouton--plein { background: var(--orange); color: var(--ink); }
.heros--photo .bouton--plein:hover { background: #f08a2a; color: var(--ink); }
.heros--photo .bouton--contour { border-color: #fff; color: #fff; }
.heros--photo .bouton--contour:hover { background: #fff; color: var(--ink); }
/* Variante sans mouvement, pour une page intérieure (Location) : même photo + même voile que l'accueil */
.heros--fixe .heros__photo img { animation: none; will-change: auto; }
.heros--page { min-height: 24rem; }
.heros--page .heros__photo img { object-position: 42% 30%; }
/* Écran large : la photo BUREAU est cadrée dans son format d'origine (16/9), sans dépasser la hauteur de l'écran */
@media (min-width: 901px) {
  .heros--page { width: 100%; aspect-ratio: 16 / 9; min-height: 0; max-height: 84vh; }
  .heros--page .heros__photo img { object-position: 50% 20%; }
}
.heros--page h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 20ch; margin-bottom: 0.5rem; }
/* Page Domiciliation : avec le « s » à entreprises, le titre reste sur une seule ligne (la limite de 20 caractères le coupait) */
.heros--page h1.titre-une-ligne { max-width: 24ch; }
.heros--photo .fil, .heros--photo .fil a { color: rgba(255, 255, 255, 0.92); }
/* Accroche blanche en bas de la photo : centrée, à la même distance du bas sur toutes les pages */
.heros__accroche { position: absolute; left: 0; right: 0; bottom: clamp(1rem, 2.4vw, 2rem); z-index: 1; margin: 0; max-width: none; display: flex; justify-content: center; pointer-events: none; }
.heros__accroche picture { display: flex; justify-content: center; width: min(100% - 2.5rem, 28rem); }
.heros__accroche img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .heros__accroche picture { width: min(100% - 2.5rem, 62.5rem); } }
/* Voile léger au pied de la photo, pour que l'accroche blanche reste lisible sur toutes les pages */
.heros--photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(18, 22, 26, 0.55) 0%, rgba(18, 22, 26, 0) 100%);
}
.heros__accroche img { filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.5)); }
/* On réserve la place de l'accroche sous le texte du bandeau */
@media (max-width: 899px) {
  .heros--photo { padding-bottom: calc(clamp(1rem, 2.4vw, 2rem) + min(100vw - 2.5rem, 28rem) * 0.2526 + 1.5rem); }
}
@media (min-width: 900px) {
  .heros--photo:not(.heros--page) { padding-bottom: calc(clamp(3rem, 9vw, 6.5rem) + 1.5rem); }
}
/* Accueil, grand écran : le bandeau photo a exactement la même hauteur que celui des autres pages (format 16/9, sans dépasser 84 % de la hauteur de l'écran).
   Réservé aux écrans assez grands pour contenir tout le texte de l'accueil ; ailleurs, rien ne change. Le mouvement lent de la photo est conservé. */
@media (min-width: 1300px) and (min-height: 850px) {
  .heros--photo:not(.heros--page) { width: 100%; aspect-ratio: 16 / 9; min-height: 0; max-height: 84vh; }
}
@media (prefers-reduced-motion: reduce) {
  .heros__photo img { animation: none; }
}

/* Accueil : texte du bandeau (5 lignes). Le titre se règle sur la largeur de sa colonne : la plus longue ligne,
   « et bien d'autres Services dans vos », mesure 16,7 fois la taille de la police, donc la police est la plus grande possible sans retour à la ligne.
   Les deux modules 83 et 13 gardent leur taille et sont décalés vers la droite pour laisser plus de place au texte. */
.heros__grille--accueil .heros__texte { container-type: inline-size; }
.heros__grille--accueil h1 { font-size: 1.4rem; font-size: clamp(1.1rem, 100cqw / 16.9, 3.4rem); }
/* Titre : les trois premiers mots restent blancs et gardent leur taille ; fin des 3 premières lignes plus petite et non grasse, lignes un peu plus espacées */
.heros__grille--accueil h1 { line-height: 1.32; }
.heros__grille--accueil h1 .suite { font-size: 0.6em; font-weight: 400; }
/* La ligne 4 (« et bien d'autres Services dans vos ») a la même taille que la fin des trois premières lignes, en gardant son gras */
.heros__grille--accueil h1 .petit { font-size: 0.6em; }
/* « Centre d'Affaires DOMACCORD » : un peu plus grand que la ligne du dessus */
.heros__grille--accueil h1 .moyen { font-size: 0.75em; }
.heros__grille--accueil .groupe-boutons { margin-top: 2.25rem; }
/* Téléphone : les horaires restent sous les boutons, avec le même espacement qu'avant */
.heros__grille--accueil .horaires { margin-top: calc(1.25rem - clamp(1.5rem, 4vw, 3.5rem)); }
@media (min-width: 901px) {
  .heros__grille--accueil {
    --l-conteneur: min(100vw - 2.5rem, var(--largeur));
    --l-plaques: calc((var(--l-conteneur) - clamp(1.5rem, 4vw, 3.5rem)) / 2.1);
    --decalage: clamp(0px, calc((100vw - var(--l-conteneur)) / 2 - 2rem), 8rem);
    grid-template-columns: minmax(0, 1fr) calc(var(--l-plaques) - var(--decalage));
    column-gap: 2rem; row-gap: 0;
  }
  .heros__grille--accueil .heros__texte { grid-column: 1; grid-row: 1; }
  .heros__grille--accueil .plaques { grid-column: 2; grid-row: 1; width: var(--l-plaques); }
  /* Les horaires passent sous le texte et les modules : une seule ligne, sans jamais toucher les modules */
  .heros__grille--accueil .horaires { grid-column: 1 / -1; grid-row: 2; margin-top: 1.25rem; white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--fond { background: var(--fond); }
.section--sombre { background: var(--anthracite); color: #eceef0; }
.section--sombre h2, .section--sombre h3 { color: #fff; }
.section--sombre a { color: #fff; }

.tete-section { margin-bottom: 2rem; }

/* Lignes de services : une ligne par offre, séparées par des filets */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.services > li {
  display: grid; grid-template-columns: 15rem 1fr auto; gap: 0.5rem 2rem; align-items: baseline;
  padding-block: 1.4rem; border-bottom: 1px solid var(--trait);
}
.services h3 { margin: 0; font-size: 1.25rem; }
.services p { margin: 0; color: var(--anthracite); }
.services .lien-service { font-weight: 500; white-space: nowrap; }
.etiquette-nouveau {
  display: inline-block; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 0.78rem;
  padding: 0.12rem 0.65rem; border-radius: 999px; margin-left: 0.5rem; vertical-align: middle; letter-spacing: 0;
}
@media (max-width: 760px) {
  .services > li { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Deux colonnes de texte */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .deux-colonnes { grid-template-columns: 1fr; } }
/* Accueil : accroche manuscrite inclinée, elle remplit la colonne de gauche */
.accroche-inclinee { display: block; width: 100%; max-width: 34rem; height: auto; }

/* Listes à coches */
.liste-coches { list-style: none; margin: 0; padding: 0; }
.liste-coches li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--trait); }
.liste-coches li::before {
  content: "✓"; position: absolute; left: 0; top: 0.5rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--bordeaux); color: #fff; font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.section--sombre .liste-coches li { border-color: rgba(255, 255, 255, 0.18); }
.section--sombre .liste-coches li::before { background: var(--orange); color: var(--ink); }
.liste-coches strong { color: var(--ink); }
.section--sombre .liste-coches strong { color: #fff; }
.liste-coches .en-option { color: var(--muted); font-size: 0.92rem; }

/* Bloc tarif */
.tarif { background: var(--bordeaux); color: #fff; border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 2.5rem); }
.tarif__prix { font-size: clamp(3rem, 8vw, 4.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.tarif__prix .tarif__tout { display: block; margin-top: 0.7rem; font-size: 0.4em; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.tarif .tarif__intro { margin: 0 0 0.6rem; font-size: 1.2rem; font-weight: 500; }
.tarif__prix small { font-size: 0.4em; font-weight: 500; letter-spacing: 0; margin-left: 0.6rem; }
.insecable { white-space: nowrap; }
.tarif p { color: #fff; margin: 0.5rem 0 0; }
.tarif ul { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.tarif li { padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
/* Bloc tarif sans montant : libellé « Devis personnalisé » (page Nos autres services) */
.tarif .tarif__prix--texte { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }

/* Cadre blanc du service carte grise (page Nos autres services) */
.carte-service { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.25rem, 3vw, 2.25rem); }
.carte-service__logo { display: block; width: 100%; height: auto; margin-bottom: clamp(1.25rem, 3vw, 2rem); }

/* Nos autres services : bandeau « supports de communication », entre le bloc rouge et le cadre carte grise.
   Même largeur que le bandeau « SERVICE CARTE GRISE » (largeur du cadre moins son bord et ses marges intérieures) */
.bandeau-charte {
  display: block; height: auto; margin: clamp(2rem, 4vw, 3rem) auto 0; border-radius: var(--rayon);
  width: calc(100% - 2 * (clamp(1.25rem, 3vw, 2.25rem) + 1px));
}

/* Avantages : titre court + phrase */
.avantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1.75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.avantages h3 { margin-bottom: 0.25rem; padding-left: 0.9rem; border-left: 5px solid var(--orange); }
.avantages p { margin: 0; }
/* Les boutons placés sous une grille d'avantages gardent un espace confortable */
.avantages + .groupe-boutons { margin-top: 2.5rem; }
/* Accueil : la rubrique « Tout ce qu'il vous faut » reprend le style des avantages, avec le lien d'action sous chaque texte */
.avantages--liens > li { display: flex; flex-direction: column; align-items: flex-start; }
.avantages--liens .lien-service { margin-top: auto; padding-top: 0.75rem; font-weight: 500; }
/* Location : les quatre avantages, centrés sur la largeur de la page, textes justifiés
   (4 sur une ligne dès 1200 px, 2 x 2 sur tablette, 1 colonne sur téléphone) */
.avantages--ligne p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 640px) {
  .avantages--ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .avantages--ligne { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .avantages--ligne h3 { font-size: 1.05rem; }
  .avantages--ligne p { font-size: 0.9rem; line-height: 1.55; }
}

/* Location : encadré rouge à gauche (même style que les pages Domiciliation et Création) et les quatre avantages en 2 x 2 à droite.
   Sous 1100 px, l'encadré passe au-dessus des avantages. */
.location-intro { display: grid; gap: 2.25rem; align-items: start; }
@media (min-width: 1100px) {
  .location-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
  /* les quatre avantages sont centrés verticalement par rapport à l'encadré rouge */
  .location-intro .avantages--deux { align-self: center; }
}
@media (min-width: 1200px) {
  .avantages--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
}

/* Location : bandeau blanc des quatre avantages. Sur ordinateur, la hauteur est réduite (même marge en haut et en bas) */
@media (min-width: 1200px) {
  .section--accroche { padding-block: 2.25rem; }
}

/* Location : 4 emplacements photos, alignés sur les 4 textes du bandeau blanc (même grille), agrandissables au clic */
.section--photos { padding-top: 0; }
.section--photos .conteneur { container-type: inline-size; }
/* Titre et phrase d'aperçu, centrés au-dessus des photos (la taille suit la largeur : une ligne sur ordinateur) */
.photos-titre { text-align: center; margin: 0.75rem 0 1.75rem; }
.photos-titre h2 { margin: 0 0 0.5rem; font-size: 1.2rem; font-size: clamp(1.2rem, 2.35cqw, 1.9rem); text-wrap: balance; }
.photos-titre p { margin: 0; max-width: none; color: var(--muted); font-size: 0.85rem; font-size: clamp(0.8rem, 1.6cqw, 1rem); text-wrap: balance; }
@media (min-width: 1200px) { .section--photos { padding-bottom: 2.25rem; } }
.photo-vignette {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0;
  background: var(--blanc); border: 2px solid #000; border-radius: var(--rayon); overflow: hidden;
  font: inherit; color: #000; cursor: zoom-in; transition: border-color 0.15s;
}
.photo-vignette:hover { border-color: var(--bordeaux); }
.photo-vignette:focus-visible { border-radius: var(--rayon); }
.photo-vignette__texte { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: 0.06em; }
.photo-vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Vraies photos : plus de cadre noir ; étiquette de l'agence en haut, centrée, dans le rouge du cadre « 83 » */
.photo-vignette--photo { position: relative; border: 0; container-type: inline-size; }
.photo-vignette--photo img { transition: transform 0.3s; }
.photo-vignette--photo:hover img { transform: scale(1.04); }
.photo-agence {
  position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%); box-sizing: border-box; max-width: calc(100% - 1rem);
  padding: 0.28em 0.8em; border-radius: 6px; background: var(--bordeaux); color: #fff;
  font-size: clamp(0.62rem, 6.4cqw, 0.95rem); font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap;
}
/* Agence La Fare : l'orange du cadre « 13 », avec le même texte sombre */
.photo-agence--13 { background: var(--orange); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .photo-vignette--photo img { transition: none; }
  .photo-vignette--photo:hover img { transform: none; }
}
@media (max-width: 639px) {
  .photos-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

/* Photo agrandie : 50 % de la largeur de l'écran sur ordinateur, presque toute la largeur sur tablette et téléphone */
.photo-agrandie {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible;
  width: min(50vw, calc(88vh * 4 / 3)); max-width: none; max-height: none; height: fit-content;
}
@media (max-width: 899px) { .photo-agrandie { width: min(92vw, calc(88vh * 4 / 3)); } }
.photo-agrandie::backdrop { background: rgba(18, 22, 26, 0.75); }
.photo-agrandie__cadre { position: relative; border-radius: var(--rayon); overflow: hidden; cursor: zoom-out; }
.photo-agrandie__cadre--vide {
  display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--blanc); border: 2px solid #000;
  color: #000; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 600; letter-spacing: 0.06em;
}
.photo-agrandie__cadre img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
.photo-agrandie__cadre { container-type: inline-size; }
.photo-agrandie__cadre .photo-agence { top: 1rem; font-size: clamp(0.8rem, 3cqw, 1.5rem); }
.photo-agrandie__fermer {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--bordeaux); color: #fff; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.photo-agrandie__fermer:focus-visible { border-radius: 50%; }

/* Options en liste compacte */
.options { columns: 2 17rem; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.options li { break-inside: avoid; padding: 0.7rem 0; border-bottom: 1px solid var(--trait); }
.options strong { display: block; color: var(--ink); }

/* Location : titre centré sur une seule ligne (la taille suit la largeur disponible), liste centrée dessous */
.conteneur--centre { container-type: inline-size; }
.titre-centre {
  text-align: center; white-space: nowrap; margin: 0 0 1.5rem;
  font-size: 1.5rem; font-size: min(2.2rem, 5.1cqw);
}
/* Les trois options : modules à tiret orange, comme les cinq avantages du haut de page */
.options-ligne { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.options-ligne li {
  white-space: nowrap; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
  padding-left: 0.9rem; border-left: 5px solid var(--orange);
  font-size: 1.05rem; font-size: min(1.15rem, calc((100cqw - 22px) / 21));
}
@media (min-width: 768px) {
  .options-ligne { flex-direction: row; justify-content: center; align-items: flex-start; gap: 1.25rem; }
  .options-ligne li { font-size: min(1.05rem, calc((100cqw - 106px) / 50.9)); }
}
@media (min-width: 1040px) {
  .options-ligne { gap: 2rem; }
}

/* Bandeau annonce */
.bandeau { background: var(--orange); color: var(--ink); }
.bandeau__contenu { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1rem; }
.bandeau p { margin: 0; font-weight: 500; max-width: none; }
.bandeau strong { font-weight: 700; }

/* Appel à l'action final */
.appel { background: var(--ink); color: #fff; border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.appel h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 22ch; }
.appel .bouton--plein { background: var(--orange); color: var(--ink); }
.appel .bouton--plein:hover { background: #f08a2a; color: var(--ink); }

/* ---------- Pages intérieures ---------- */
.titre-page { background: var(--fond); padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--trait); }
.titre-page h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 20ch; margin-bottom: 0.5rem; }
.fil { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.fil a { color: var(--muted); }

/* ---------- Contact ---------- */
.agences { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .agences { grid-template-columns: 1fr; } }
.agence { border-radius: var(--rayon); padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; align-items: start; }
.agence--83 { background: var(--bordeaux); color: #fff; }
.agence--13 { background: var(--orange); color: var(--ink); }
.agence .plaque__num { font-size: 4.8rem; grid-row: span 2; }
.agence h2 { color: inherit; font-size: 1.2rem; margin: 0.2rem 0 0.2rem; }
.agence address { font-style: normal; font-size: 0.95rem; }
.agence ul { list-style: none; padding: 0; margin: 0.75rem 0 0; grid-column: 1 / -1; border-top: 1px solid currentColor; }
.agence li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.agence--13 li { border-color: rgba(31, 36, 40, 0.3); }
.agence a { color: inherit; font-weight: 700; }

.formulaire { max-width: 40rem; }
.champ { margin-bottom: 1.15rem; }
.champ label, .champ legend { display: block; font-weight: 500; color: var(--ink); margin-bottom: 0.35rem; padding: 0; }
.champ .aide { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; padding: 0.75rem 0.9rem;
  border: 2px solid #aab0b6; border-radius: 10px;
}
input:focus, select:focus, textarea:focus { border-color: var(--bordeaux); outline: 3px solid rgba(216, 112, 16, 0.45); outline-offset: 1px; }
textarea { min-height: 9rem; resize: vertical; }
fieldset.champ { border: 0; padding: 0; margin: 0 0 1.15rem; }
.choix-agence { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choix-agence label { margin: 0; cursor: pointer; }
.choix-agence input { position: absolute; opacity: 0; }
.choix-agence span {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border: 2px solid #aab0b6; border-radius: 10px; background: #fff; font-weight: 500;
}
.choix-agence b { font-size: 1.9rem; line-height: 1; letter-spacing: -0.04em; }
.choix-agence label:nth-child(1) b { color: var(--bordeaux); }
.choix-agence label:nth-child(2) b { color: var(--orange-text); }
.choix-agence input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.choix-agence input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 480px) { .choix-agence { grid-template-columns: 1fr; } }
.consentement { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; }
.consentement input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--bordeaux); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-etat { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 500; }
.message-etat--ok { background: #e4f3e8; color: #14532d; border: 2px solid #14532d; }
.message-etat--erreur { background: #fbe9e9; color: #7a1010; border: 2px solid #7a1010; }

/* ---------- Texte légal ---------- */
.texte-legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.texte-legal p, .texte-legal li { max-width: 70ch; }
mark { background: #ffe8a3; color: var(--ink); padding: 0 0.25rem; border-radius: 3px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--ink); color: #d3d7db; padding-block: 3rem 1.5rem; font-size: 0.93rem; }
.pied a { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem 3rem; }
@media (max-width: 860px) { .pied__grille { grid-template-columns: 1fr; } }
.pied h2 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; letter-spacing: 0; }
.pied p { margin-bottom: 0.4rem; }
.pied__liens { list-style: none; margin: 0; padding: 0; }
.pied__liens li { padding: 0.2rem 0; }
.pied__bas { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.83rem; color: #aab0b6; }
.pied__bas p { max-width: none; }
.pied .pastille { display: inline-block; min-width: 2.2rem; text-align: center; font-weight: 700; border-radius: 6px; padding: 0 0.4rem; margin-right: 0.4rem; }
.pied .pastille--83 { background: var(--bordeaux); color: #fff; }
.pied .pastille--13 { background: var(--orange); color: var(--ink); }
/* Texte de présentation du pied de page justifié */
.pied .pied__justifie p { text-align: justify; }
/* Lien « Mentions légales » : cadre du même rouge que la pastille 83 */
.pied .pied__mentions { display: inline-block; background: var(--bordeaux); color: #fff; border-radius: 6px; padding: 0.1rem 0.7rem; font-weight: 700; text-decoration: none; }
.pied .pied__mentions:hover, .pied .pied__mentions:focus-visible { text-decoration: underline; }

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

/* Nos autres services : bandeau de logos partenaires en défilement continu et lent.
   5 logos visibles en permanence (la largeur d'un logo suit celle du bandeau), logos espacés, pause au survol ou au clavier.
   La liste est écrite deux fois dans la page : en glissant d'exactement la moitié de la piste, la boucle est sans à-coup. */
.section--logos { --ecart: clamp(0.5rem, 2vw, 1.5rem); padding-top: clamp(1rem, 2.5vw, 1.75rem); padding-bottom: 0; }
/* Titre manuscrit « Ils nous font confiance… » (image), centré au-dessus du bandeau : même largeur que les vignettes 2 à 4 (3 vignettes + 2 espaces) */
.logos-titre { margin: 0 0 clamp(0.75rem, 2vw, 1.25rem); text-align: center; line-height: 0; }
.logos-titre img { display: block; width: calc(60% - 0.4 * var(--ecart)); height: auto; margin-inline: auto; }
.logos-defilant { --duree: 60s; container-type: inline-size; overflow: hidden; padding-block: 4px; }
.logos-piste { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: defilement-logos var(--duree) linear infinite; will-change: transform; }
.logos-defilant:hover .logos-piste, .logos-defilant:focus-within .logos-piste { animation-play-state: paused; }
.logo-partenaire { flex: 0 0 auto; width: calc((100cqw - 4 * var(--ecart)) / 5); margin: 0 var(--ecart) 0 0; }
.logo-partenaire__cadre {
  display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; padding: 0.4rem;
  background: var(--blanc); border: 2px solid #000; border-radius: var(--rayon); overflow: hidden;
  color: #000; font-size: clamp(0.9rem, 3.4cqw, 1.9rem); font-weight: 600; text-decoration: none; transition: border-color 0.15s;
}
a.logo-partenaire__cadre:hover, a.logo-partenaire__cadre:focus-visible { border-color: var(--bordeaux); }
.logo-partenaire__cadre img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes defilement-logos { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  /* Pas de défilement automatique : les 20 logos se parcourent à la main */
  .logos-defilant { overflow-x: auto; }
  .logos-piste { animation: none; }
  .logo-partenaire[aria-hidden="true"] { display: none; }
}

/* Bandeau fin « Nos brochures » au-dessus de l'en-tête, sur toutes les pages (il défile avec la page, l'en-tête reste collé en haut) */
.barre-brochures { background: var(--ink); color: #fff; font-size: 0.85rem; }
.barre-brochures .conteneur { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem 1.6rem; padding-block: 0.5rem; flex-wrap: wrap; }
.barre-brochures__titre { color: rgba(255,255,255,0.7); margin-right: auto; }
.barre-brochures a { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-weight: 500; text-decoration: none; }
.barre-brochures a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.barre-brochures svg { flex: none; color: var(--orange); }
@media (max-width: 560px) { .barre-brochures { font-size: 0.8rem; } .barre-brochures__pdf, .barre-brochures__titre { display: none; } .barre-brochures .conteneur { justify-content: space-between; gap: 0.4rem 0.8rem; } .barre-brochures a { gap: 0.35rem; } }
@media print { .barre-brochures { display: none; } }

@media print {
  .entete, .pied, .groupe-boutons, .bandeau, .appel { display: none; }
  body { color: #000; }
}

/* Création de votre société : bloc « étapes » centré verticalement face à l'encadré rouge */
@media (min-width: 821px) {
  .deux-colonnes--centre > :last-child { align-self: center; }
}

/* Service carte grise : mention « *voir conditions en agence » en gris clair, très petite, sous la ligne Paiement */
.liste-coches .mention-conditions { display: block; margin-top: 0.2rem; font-size: 0.72rem; line-height: 1.3; font-weight: 400; color: #71777e; }
