/* Orpi At'Home Conseil, Le Bouscat & Mérignac — V2 */

@font-face { font-family: "Orpi"; src: url("fonts/orpi-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Orpi"; src: url("fonts/orpi-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Orpi"; src: url("fonts/orpi-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Orpi"; src: url("fonts/orpi-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Orpi"; src: url("fonts/orpi-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --rouge: #e30613;
  --rouge-2: #b8000e;
  --encre: #231f20;
  --gris: #6c6764;
  --clair: #f5f2ee;
  --ligne: #e6e0d9;
  --blanc: #ffffff;
  --etoile: #f2a900;
  --ombre: 0 2px 4px rgba(35, 31, 32, .06), 0 30px 60px -20px rgba(35, 31, 32, .35);
  --police: "Orpi", "Avenir Next", Avenir, "Century Gothic", system-ui, sans-serif;
  --page: 1240px;
  --gouttiere: 20px;
  --rayon: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--blanc); color: var(--encre);
  font-family: var(--police); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--rouge { background: var(--rouge); color: var(--blanc); }
.btn--rouge:hover { background: var(--rouge-2); }
.btn--blanc { background: var(--blanc); color: var(--rouge); }
.btn--blanc:hover { background: var(--encre); color: var(--blanc); }
.btn--encre { background: var(--encre); color: var(--blanc); }
.btn--encre:hover { background: #000; }
.btn--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--contour:hover { background: var(--encre); color: var(--blanc); }
.btn--contour-blanc { border-color: rgba(255,255,255,.7); color: var(--blanc); background: transparent; }
.btn--contour-blanc:hover { background: var(--blanc); color: var(--rouge); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid rgba(35,31,32,.08);
}
.entete__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.marque__logo { width: 64px; height: auto; margin: -6px 0 -4px; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; padding-left: 12px; border-left: 1px solid var(--ligne); }
.marque__nom { font-weight: 700; font-size: .95rem; }
.marque__lieu { font-weight: 300; font-size: .82rem; color: var(--gris); white-space: nowrap; }
.entete__tel { width: 46px; min-height: 46px; padding: 0; border-color: var(--rouge); color: var(--rouge); }
.entete__tel:hover { background: var(--rouge); color: var(--blanc); }
.entete__tel-num { display: none; }
.entete__tel-court { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero plein cadre ---------- */
.hero { position: relative; color: var(--blanc); background: var(--encre); isolation: isolate; }
.hero__photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,16,15,.25) 0%, rgba(20,16,15,.55) 38%, rgba(20,16,15,.9) 70%, rgba(20,16,15,.95) 100%);
}
.hero__grille { display: grid; padding-top: 120px; padding-bottom: 0; }
.hero__lieu {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .875rem; font-weight: 500;
}
.hero__lieu svg { width: 16px; height: 16px; color: var(--blanc); }
.hero__titre {
  font-weight: 700; font-size: clamp(2.15rem, 9vw, 2.75rem);
  line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__sous { margin: 14px 0 0; max-width: 32em; font-weight: 300; font-size: 1.125rem; color: rgba(255,255,255,.9); text-wrap: pretty; }
.note.hero__note { display: none; }

.note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; }
.note strong { font-weight: 700; }
.etoiles { display: inline-flex; gap: 2px; color: var(--etoile); }
.etoiles svg { width: 17px; height: 17px; }

/* Carte estimateur */
.estimateur { position: relative; margin-top: 26px; margin-bottom: -170px; z-index: 2; }
.carte-esti {
  position: relative; background: var(--blanc); color: var(--encre);
  border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden;
}
.carte-esti::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rouge); }
.carte-esti__tete { padding: 26px 22px 4px; }
.carte-esti__titre { font-weight: 700; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.015em; }
.carte-esti__titre:focus { outline: none; }
.carte-esti__aide { margin: 6px 0 0; font-weight: 300; color: var(--gris); }
.carte-esti__frame { position: relative; min-height: 360px; padding: 0 6px; }
.carte-esti__frame iframe { display: block; width: 100%; min-height: 360px; border: 0; }
.carte-esti__pied {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 22px 18px;
  border-top: 1px solid var(--ligne); font-size: .875rem; color: var(--gris);
}
.carte-esti__pied svg { width: 16px; height: 16px; flex: none; color: var(--rouge); }

.attente { position: absolute; inset: 0 6px; padding: 14px 16px 0; background: var(--blanc); transition: opacity .25s ease; }
.attente span { display: block; border-radius: 12px; background: #f1ede9; }
.attente__l1 { width: 46%; height: 14px; }
.attente__champ { height: 54px; }
.attente__l2 { width: 70%; height: 12px; }
.attente__bouton { height: 52px; background: #fbd2d4 !important; border-radius: 999px !important; }
.attente__msg { margin: 6px 0 0; font-size: .95rem; color: var(--gris); }
.attente__erreur { display: none; }
.is-ready .attente { opacity: 0; pointer-events: none; }
.is-error .attente__charge { display: none; }
.is-error .attente__erreur { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .attente span:not(.attente__bouton) { background-image: linear-gradient(90deg, #f1ede9 0, #f9f7f4 40%, #f1ede9 80%); background-size: 200% 100%; animation: luire 1.4s linear infinite; }
  @keyframes luire { to { background-position: -200% 0; } }
}

/* ---------- Bande rouge : les trois promesses ---------- */
.promesses { background: var(--rouge); color: var(--blanc); padding: 196px 0 28px; }
.promesses__liste { list-style: none; margin: 0; padding: 0; display: grid; }
.promesse { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); align-items: center; gap: 16px; padding: 20px 0; }
.promesse + .promesse { border-top: 1px solid rgba(255,255,255,.28); }
.promesse__chiffre { font-weight: 700; font-size: 2.15rem; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.promesse__texte { font-weight: 300; font-size: 1rem; line-height: 1.35; }
.promesse__texte strong { font-weight: 700; display: block; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--clair { background: var(--clair); }
.titre-section { font-weight: 700; font-size: clamp(2rem, 7.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; max-width: 16em; text-wrap: balance; }
.chapo { margin: 16px 0 0; max-width: 34em; font-weight: 300; font-size: 1.125rem; color: var(--gris); text-wrap: pretty; }

/* Étapes : vraie séquence */
.etapes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 34px; counter-reset: etape; }
.etape { position: relative; padding-left: 76px; }
.etape::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; left: 0; top: -14px;
  font-weight: 300; font-size: 4.2rem; line-height: 1; color: var(--rouge); letter-spacing: -.04em;
}
.etape h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; }
.etape p { margin: 8px 0 0; color: var(--gris); font-weight: 300; max-width: 26em; }

/* Mur des quartiers, à la manière de la charte typographique Orpi */
.mur { background: var(--encre); color: var(--blanc); padding: 72px 0 80px; overflow: hidden; }
.mur__tete { display: grid; gap: 14px; margin-bottom: 40px; }
.mur__tete .titre-section { color: var(--blanc); }
.mur__tete .chapo { color: rgba(255,255,255,.72); margin: 0; }
.mur__lignes { font-size: clamp(2.1rem, 9vw, 6rem); line-height: 1.06; text-transform: uppercase; letter-spacing: -.01em; }
.mur__ligne { white-space: nowrap; display: block; }
.mur__ligne:nth-child(odd) { margin-left: -1.1em; }
.mur__ligne:nth-child(even) { margin-left: -2.4em; }
.mur__ligne > span { margin-right: .32em; }
.mur .l { font-weight: 300; }
.mur .r { font-weight: 400; }
.mur .b { font-weight: 700; }
.mur .i { font-weight: 400; font-style: italic; }
.mur .c { font-weight: 700; color: var(--rouge); }
.mur__aussi { margin: 36px 0 0; color: rgba(255,255,255,.72); font-weight: 300; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mur__ligne { animation: glisse linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .mur__ligne:nth-child(even) { animation-name: glisse-inverse; }
    @keyframes glisse { from { transform: translateX(6%); } to { transform: translateX(-10%); } }
    @keyframes glisse-inverse { from { transform: translateX(-10%); } to { transform: translateX(6%); } }
  }
}

/* Bento : l'équipe et les agences */
.bento { margin-top: 40px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tuile { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--clair); min-height: 160px; }
.tuile--photo img, .tuile--photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.tuile__legende {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; margin: 0;
  color: var(--blanc); font-weight: 500; font-size: .95rem;
  background: linear-gradient(180deg, rgba(20,16,15,0), rgba(20,16,15,.75));
}
.tuile--equipe { grid-column: 1 / -1; aspect-ratio: 784 / 482; }
.tuile--clement { grid-column: 1 / -1; background: var(--encre); color: var(--blanc); display: grid; grid-template-columns: 120px 1fr; align-items: end; }
.tuile--clement picture { align-self: stretch; }
.tuile--clement img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.clement { padding: 22px 20px 22px 18px; }
.clement__nom { margin: 0; font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.clement__role { margin: 4px 0 0; font-weight: 300; font-size: .95rem; color: rgba(255,255,255,.75); }
.clement__texte { margin: 14px 0 0; font-weight: 300; font-size: .98rem; color: rgba(255,255,255,.9); }
.clement__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.clement__actions .btn { min-height: 46px; padding: 10px 18px; font-size: .95rem; }
.tuile--agence { grid-column: 1 / -1; background: var(--blanc); border: 1px solid var(--ligne); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tuile--agence h3 { font-size: 1.35rem; letter-spacing: -.01em; }
.agence__note { display: flex; align-items: baseline; gap: 8px; }
.agence__chiffre { font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; color: var(--rouge); }
.agence__avis { font-weight: 300; font-size: .9rem; color: var(--gris); }
.agence__ligne { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .95rem; }
.agence__ligne svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--rouge); }
.agence__ligne a { text-decoration-color: var(--ligne); text-underline-offset: 3px; }
.agence__ligne a:hover { text-decoration-color: var(--rouge); }
.tuile--vitrine, .tuile--bureau { aspect-ratio: 434 / 479; }
.tuile--cta { grid-column: 1 / -1; background: var(--rouge); color: var(--blanc); padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tuile--cta p { margin: 0; font-weight: 700; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.015em; }

/* FAQ */
.faq-grille { display: grid; gap: 28px; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq details:first-child { border-top: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 500; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--rouge); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--gris); font-weight: 300; max-width: 38em; }
.faq-aside { margin-top: 20px; font-weight: 300; color: var(--gris); }
.faq-aside a { color: var(--encre); font-weight: 700; }

/* Appel final en rouge */
.final { position: relative; overflow: hidden; background: var(--rouge); color: var(--blanc); padding: 80px 0; text-align: left; isolation: isolate; }
.final::after {
  content: ""; position: absolute; z-index: -1; right: -180px; bottom: -220px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 90px solid rgba(255,255,255,.1);
}
.final .titre-section { color: var(--blanc); max-width: 12em; }
.final .chapo { color: rgba(255,255,255,.88); }
.final__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.pied { background: var(--encre); color: rgba(255,255,255,.7); padding: 44px 0 120px; font-size: .9rem; font-weight: 300; }
.pied__in { display: grid; gap: 18px; }
.pied__logo { width: 60px; background: var(--blanc); border-radius: 10px; padding: 6px 8px; }
.pied p { margin: 0; max-width: 48em; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.pied__liens a, .pied__liens button { color: var(--blanc); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 400; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }

/* Barre d'action mobile */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(35,31,32,.1);
  transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.barre.is-on { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.barre .btn--rouge { flex: 1; }
.barre .btn--contour { width: 54px; padding: 0; border-color: var(--rouge); color: var(--rouge); }

/* Bandeau cookies */
.cookies {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 440px; padding: 18px 18px 16px;
  background: var(--blanc); border-radius: 18px; box-shadow: 0 24px 60px -16px rgba(35,31,32,.45);
  border: 1px solid rgba(35,31,32,.08); font-size: .95rem;
}
.cookies p { margin: 0 0 14px; color: var(--gris); font-weight: 300; }
.cookies p a { color: var(--encre); font-weight: 500; }
.cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies .btn { min-height: 46px; padding: 10px 16px; }

/* ---------- Réserver un appel ---------- */
.btn--petit { min-height: 44px; padding: 9px 16px; font-size: .92rem; border-width: 1.5px; }
.carte-esti__alt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0; padding: 14px 22px; background: var(--clair); font-size: .95rem; color: var(--encre); font-weight: 500;
}
.lien-rdv { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--encre); text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 3px; cursor: pointer; }
.final__tel { margin: 18px 0 0; font-weight: 300; color: rgba(255,255,255,.88); }
.final__tel a { color: var(--blanc); font-weight: 700; }

html:has(.rdv[open]) { overflow: hidden; }
.rdv {
  width: min(560px, calc(100% - 24px)); max-width: none; max-height: min(92vh, 900px);
  padding: 0; border: 0; border-radius: 24px; background: var(--blanc); color: var(--encre);
  box-shadow: 0 40px 100px -20px rgba(20,16,15,.5); overflow: auto; overscroll-behavior: contain;
}
.rdv::backdrop { background: rgba(20,16,15,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rdv__form, .rdv__ok { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.rdv__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rdv__titre { font-weight: 700; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
.rdv__titre:focus { outline: none; }
.rdv__fermer {
  flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; border-radius: 50%;
  border: 0; background: var(--clair); color: var(--encre); display: grid; place-items: center; cursor: pointer;
}
.rdv__fermer:hover { background: var(--ligne); }
.rdv__fermer svg { width: 20px; height: 20px; }
.rdv__intro { margin: 10px 0 0; font-weight: 300; color: var(--gris); }
.rdv__bloc { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.rdv__bloc legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.rdv__puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; display: block; }
.puce input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.puce span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 76px; min-height: 52px; padding: 7px 14px; border: 1.5px solid var(--ligne); border-radius: 14px;
  font-weight: 500; font-size: .95rem; line-height: 1.15; text-align: center; transition: border-color .12s ease, background-color .12s ease;
}
.puce small { font-weight: 300; font-size: .8rem; color: var(--gris); margin-top: 2px; }
.puce:hover span { border-color: var(--gris); }
.puce input:checked + span { border-color: var(--rouge); background: #fdeced; color: var(--rouge-2); }
.puce input:checked + span small { color: var(--rouge-2); }
.puce input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.rdv__aide { margin: 0; font-weight: 300; font-size: .95rem; color: var(--gris); }
.rdv__heures { display: grid; gap: 14px; }
.rdv__sous { margin: 0 0 8px; font-weight: 300; font-size: .9rem; color: var(--gris); }
.rdv__jours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rdv__creneaux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rdv__jours .puce span, .rdv__creneaux .puce span { min-width: 0; width: 100%; }
.rdv__creneaux .puce span { min-height: 46px; padding: 7px 6px; }
.puce--large { grid-column: span 2; }
.rdv__champs { display: grid; gap: 14px; margin-top: 24px; }
.champ { display: grid; gap: 6px; }
.champ > span { font-weight: 500; font-size: .95rem; }
.champ em { font-style: normal; font-weight: 300; font-size: .85rem; color: var(--gris); }
.champ input, .champ select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--encre);
  background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: 12px; -webkit-appearance: none; appearance: none;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(35,31,32,.12); }
.champ [aria-invalid="true"] { border-color: var(--rouge); }
.rdv__piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rdv__erreur { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdeced; color: var(--rouge-2); font-weight: 500; font-size: .95rem; }
.rdv__erreur a { color: inherit; font-weight: 700; }
.rdv__envoyer { width: 100%; margin-top: 20px; }
.rdv__envoyer[disabled] { opacity: .6; cursor: progress; }
.rdv__mention { margin: 12px 0 0; text-align: center; font-weight: 300; font-size: .85rem; color: var(--gris); }
.rdv__ok { text-align: left; }
.rdv__ok .merci__check { margin-bottom: 18px; }
.rdv__ok [data-rdv-recap] { color: var(--encre); font-weight: 400; }
.rdv__ok-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 639px) {
  .rdv { width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94vh; }
}

/* ---------- Pages secondaires ---------- */
.page { padding: 56px 0 88px; }
.page__titre { font-weight: 700; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.prose { max-width: 740px; }
.prose h2 { font-weight: 700; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.015em; margin: 52px 0 14px; }
.prose h3 { font-weight: 700; font-size: 1.0625rem; margin: 28px 0 8px; }
.prose p, .prose li { font-weight: 300; color: #3b3637; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.prose dt { color: var(--gris); font-weight: 300; }
.prose dd { margin: 0; font-weight: 400; }
.a-completer { background: #fff1a8; padding: 0 4px; border-radius: 3px; }
.merci { display: grid; gap: 40px; }
.merci__carte { background: var(--clair); border-radius: var(--rayon); padding: 28px; }
.merci__check { width: 64px; height: 64px; border-radius: 50%; background: var(--rouge); color: var(--blanc); display: grid; place-items: center; margin-bottom: 24px; }
.merci__check svg { width: 30px; height: 30px; }
.merci .etapes { margin-top: 36px; }
.contact-mini { display: flex; gap: 18px; align-items: center; }
.arche-photo { display: block; border-radius: 16px; overflow: hidden; background: var(--ligne); }
.arche-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-mini .arche-photo { width: 92px; height: 116px; flex: none; }
.contact-mini .arche-photo img { object-position: 50% 8%; }
.interlocuteur__nom { margin: 0; font-weight: 700; font-size: 1.1rem; }
.interlocuteur__role { margin: 4px 0 0; font-weight: 300; color: var(--gris); }
.interlocuteur__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Tablette ---------- */
@media (min-width: 640px) {
  :root { --gouttiere: 32px; }
  .entete__tel { width: auto; min-height: 44px; padding: 8px 18px; }
  .entete__tel-num { display: inline; }
  .promesses__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .promesse { grid-template-columns: 1fr; gap: 12px; align-items: start; align-content: start; padding: 0; }
  .promesse + .promesse { border-top: 0; border-left: 1px solid rgba(255,255,255,.28); padding-left: 32px; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .tuile--clement { grid-template-columns: 200px 1fr; }
  .tuile--agence { grid-column: span 2; }
  .tuile--vitrine, .tuile--bureau { grid-column: span 2; }
  .cookies { left: 24px; bottom: 24px; right: auto; }
  .rdv__form, .rdv__ok { padding: 30px 32px 32px; }
  .rdv__champs { grid-template-columns: 1fr 1fr; }
  .rdv__jours { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rdv__creneaux { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .carte-esti__alt { padding: 14px 30px; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 1024px) {
  :root { --gouttiere: 48px; }
  body { font-size: 1.0625rem; }
  .entete__in { height: 76px; }
  .marque__logo { width: 72px; }

  .hero { min-height: min(820px, 100svh - 76px); display: flex; align-items: center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(20,16,15,.88) 0%, rgba(20,16,15,.62) 42%, rgba(20,16,15,.18) 75%, rgba(20,16,15,.05) 100%),
      linear-gradient(0deg, rgba(20,16,15,.45) 0%, rgba(20,16,15,0) 35%);
  }
  .hero > .wrap { width: 100%; }
  .hero__grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
  .hero__titre { font-size: clamp(3.6rem, 5.2vw, 4.6rem); }
  .hero__sous { font-size: 1.3rem; margin-top: 22px; }
  .note.hero__note {
    display: inline-flex; margin-top: 34px; padding: 12px 18px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .estimateur { margin: 0; }
  .carte-esti__tete { padding: 32px 30px 6px; }
  .carte-esti__titre { font-size: 1.85rem; }
  .carte-esti__frame { padding: 0 12px; }
  .attente { inset: 0 12px; }
  .carte-esti__pied { padding: 16px 30px 22px; }

  .promesses { padding: 56px 0; }
  .promesse__chiffre { font-size: 3.6rem; }

  .section { padding: 120px 0; }
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
  .etape { padding-left: 0; padding-top: 104px; border-top: 1px solid var(--ligne); }
  .etape::before { top: 22px; font-size: 5.5rem; }

  .mur { padding: 120px 0 128px; }
  .mur__tete { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 64px; }

  .bento {
    margin-top: 64px; gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "equipe equipe clement clement"
      "bouscat merignac vitrine bureau"
      "cta cta cta cta";
  }
  .tuile--equipe { grid-area: equipe; aspect-ratio: auto; min-height: 340px; }
  .tuile--equipe img { object-position: 50% 30%; }
  .tuile--clement { grid-area: clement; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .tuile--bouscat { grid-area: bouscat; }
  .tuile--merignac { grid-area: merignac; }
  .tuile--agence { grid-column: auto; padding: 24px; }
  .tuile--vitrine { grid-area: vitrine; aspect-ratio: auto; min-height: 320px; }
  .tuile--bureau { grid-area: bureau; aspect-ratio: auto; min-height: 320px; }
  .tuile--cta { grid-area: cta; padding: 36px 40px; flex-direction: row; align-items: center; }
  .tuile--cta p { font-size: 2.2rem; max-width: 16em; }

  .faq-grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-tete { position: sticky; top: 110px; }

  .final { padding: 128px 0; }
  .final::after { right: -40px; top: 50%; bottom: auto; transform: translateY(-50%); width: 640px; height: 640px; border-width: 120px; }
  .final__actions { margin-top: 36px; }

  .barre { display: none; }
  .pied { padding-bottom: 52px; }
  .pied__in { grid-template-columns: auto minmax(0, 1fr); gap: 18px 44px; }
  .pied__liens { grid-column: 2; }

  .merci { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: 64px; }
  .merci .etapes { grid-template-columns: 1fr; gap: 28px; }
  .merci .etape { padding-left: 76px; padding-top: 0; border-top: 0; }
  .merci .etape::before { top: -14px; font-size: 4.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__texte > *, .estimateur { animation: entree .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__texte > :nth-child(2) { animation-delay: .05s; }
  .hero__texte > :nth-child(3) { animation-delay: .1s; }
  .hero__texte > :nth-child(4) { animation-delay: .15s; }
  .estimateur { animation-delay: .18s; }
  @keyframes entree { from { opacity: 0; transform: translateY(18px); } }
}
