/* Page d'attente de biensingulier.com, en ligne jusqu'au lancement du nouveau site.
   Pragmatica n'a pas encore de licence web : Archivo la remplace, comme sur le site. */

@font-face { font-family: "Marque Expanded"; font-weight: 200; font-display: swap; src: url("fonts/archivo-semiexpanded-200-latin.woff2") format("woff2"); }
@font-face { font-family: "Marque Expanded"; font-weight: 900; font-display: swap; src: url("fonts/archivo-semiexpanded-900-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo Expanded"; font-weight: 300; font-display: swap; src: url("fonts/archivo-expanded-300-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo Expanded"; font-weight: 700; font-display: swap; src: url("fonts/archivo-expanded-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo Text"; font-weight: 400; font-display: swap; src: url("fonts/archivo-normal-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo Text"; font-weight: 600; font-display: swap; src: url("fonts/archivo-normal-600-latin.woff2") format("woff2"); }

:root {
  --bordeaux: #4E0000;
  --creme: #FFFACD;
  --encre-douce: #7A4A42;
  --sur-bordeaux-doux: #DCCBA8;
  --filet: rgba(78, 0, 0, 0.22);
  --filet-bordeaux: rgba(255, 250, 205, 0.3);
  --titre: "Pragmatica Extended", "Archivo Expanded", "Archivo Text", sans-serif;
  --texte: "Pragmatica", "Archivo Text", sans-serif;
  --marge: clamp(20px, 4vw, 56px);
  --colonne: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--creme); color: var(--bordeaux);
  font-family: var(--texte); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--bordeaux); color: var(--creme); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.28em; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.sur-bordeaux :focus-visible { outline-color: var(--creme); }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.capitales {
  font-family: var(--titre); font-weight: 300; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5;
}
.capitales b { font-weight: 700; }
.colonne { width: 100%; max-width: calc(var(--colonne) + 2 * var(--marge)); margin: 0 auto; padding-inline: var(--marge); }

/* ---------- Barre haute ---------- */
.barre .colonne {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; position: relative;
}
.barre .colonne::after { content: ""; position: absolute; left: var(--marge); right: var(--marge); bottom: 0; height: 1px; background: var(--bordeaux); }
.barre-signature b { font-weight: 700; }
.barre a { text-decoration: none; padding: 10px 0; }
@media (hover: hover) and (pointer: fine) { .barre a:hover { text-decoration: underline; } }

/* ---------- Marque géante ---------- */
.couverture { container-type: inline-size; padding-top: clamp(18px, 2.4vw, 34px); }
.marque {
  font-family: "Marque Expanded", var(--titre); text-transform: uppercase; white-space: nowrap;
  line-height: 0.79; letter-spacing: -0.02em;
}
/* Ajustée à la largeur par le script ; cette taille sert s'il ne tourne pas */
.marque-ligne { display: block; width: max-content; font-size: 10.5cqi; margin-left: -0.04em; }
.marque .maigre { font-weight: 200; }
.marque .gras { font-weight: 900; }

/* ---------- Annonce + formulaire ---------- */
.contenu {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 96px); align-items: start;
  margin-top: clamp(22px, 3vw, 44px); padding-bottom: clamp(48px, 7vw, 112px);
}
.annonce { padding-top: 18px; border-top: 1px solid var(--bordeaux); }
.annonce h2 {
  font-family: var(--titre); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 50px); line-height: 1; letter-spacing: -0.005em; text-wrap: balance;
}
.annonce h2 span { font-weight: 300; display: block; }
.annonce p { margin-top: 20px; max-width: 34em; }
.annonce .contact { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--filet); display: grid; gap: 4px; }
.annonce .contact a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .annonce .contact a:hover { text-decoration: underline; } }

.estimer { background: var(--bordeaux); color: var(--creme); padding: clamp(24px, 3vw, 44px); }
.estimer h2 {
  font-family: var(--titre); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.08; text-wrap: balance;
}
.estimer .chapeau { margin-top: 10px; color: var(--sur-bordeaux-doux); }
.formulaire { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--filet-bordeaux); }
.champ { display: grid; gap: 4px; padding: 14px 0 12px; border-bottom: 1px solid var(--filet-bordeaux); }
.champ.large { grid-column: 1 / -1; }
.champ:nth-child(odd):not(.large) { padding-right: 18px; }
.champ:nth-child(even):not(.large) { padding-left: 18px; border-left: 1px solid var(--filet-bordeaux); }
.champ label { color: var(--sur-bordeaux-doux); }
.champ label small { font-size: inherit; }
.champ input {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-radius: 0;
  padding: 4px 0; width: 100%; min-height: 40px; color: var(--creme);
}
.champ input::placeholder { color: rgba(255, 250, 205, 0.5); }
.champ input:focus { outline: none; }
.champ:focus-within label { color: var(--creme); }
.champ:focus-within { border-bottom-color: var(--creme); }

.accord { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 16px 0 4px; font-size: 14px; line-height: 1.5; color: var(--sur-bordeaux-doux); cursor: pointer; }
.accord input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--creme); border-radius: 0; background: transparent; cursor: pointer; display: grid; place-content: center;
}
.accord input::after { content: ""; width: 10px; height: 10px; background: var(--creme); transform: scale(0); transition: transform 160ms var(--ease); }
.accord input:checked::after { transform: scale(1); }
.accord input:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; }

.envoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px;
  background: var(--creme); color: var(--bordeaux); border: 1px solid var(--creme); border-radius: 0;
  padding: 14px 22px; cursor: pointer; text-decoration: none;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.bouton svg { width: 18px; height: 10px; flex: none; transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: transparent; color: var(--creme); }
  .bouton:hover svg { transform: translateX(4px); }
}
.bouton:active { transform: translateY(1px); }
.bouton[disabled] { opacity: 0.6; cursor: wait; }
.retour { grid-column: 1 / -1; }
.retour:not(:empty) { margin-top: 14px; }
.estimer .rgpd { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--sur-bordeaux-doux); }

.merci { padding: 8px 0 4px; }
.merci p { margin-top: 12px; color: var(--sur-bordeaux-doux); }

/* ---------- Podcast ---------- */
.podcast { border-top: 1px solid var(--bordeaux); padding-block: 22px clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 96px); }
.podcast h2 { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 0.08em; line-height: 1.3; }
.podcast h2 span { display: block; font-weight: 300; }
.podcast h2 b { font-weight: 700; }
.podcast-liens { list-style: none; display: grid; }
.podcast-liens li { border-bottom: 1px solid var(--filet); }
.podcast-liens li:first-child { border-top: 1px solid var(--filet); }
.podcast-liens a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; text-decoration: none; }
.podcast-liens svg { width: 18px; height: 10px; flex: none; transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .podcast-liens a:hover svg { transform: translateX(4px); } .podcast-liens a:hover span:first-child { text-decoration: underline; } }

/* ---------- Pied ---------- */
.pied { margin-top: auto; background: var(--bordeaux); color: var(--creme); }
.pied .colonne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.pied p { color: var(--sur-bordeaux-doux); }
.pied-marque { font-family: "Marque Expanded", var(--titre); text-transform: uppercase; font-size: 15px; letter-spacing: -0.01em; color: var(--creme); }
.pied-marque span { font-weight: 200; } .pied-marque b { font-weight: 900; }

/* ---------- Arrivée ---------- */
@media (prefers-reduced-motion: no-preference) {
  .marque-ligne { animation: monte 900ms var(--ease) both; }
  .contenu > * { animation: monte 900ms var(--ease) both; animation-delay: 150ms; }
  .contenu > * + * { animation-delay: 250ms; }
  @keyframes monte { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .contenu, .podcast { grid-template-columns: 1fr; }
  .podcast { gap: 16px; }
}
@media (max-width: 520px) {
  .barre-contact { display: none; }
  .formulaire { grid-template-columns: 1fr; }
  .formulaire .champ:nth-child(n):not(.x) { padding: 12px 0 10px; border-left: 0; grid-column: 1 / -1; }
  .estimer { margin-inline: calc(-1 * var(--marge)); padding-inline: var(--marge); }
  .bouton { width: 100%; }
}

/* Pages de retour du formulaire (envoi sans JavaScript) */
.titre-retour { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 2vw, 28px); line-height: 1.08; text-wrap: balance; }
.estimer .chapeau a { color: var(--creme); }

/* Mentions légales */
.legal { max-width: calc(760px + 2 * var(--marge)); padding-bottom: clamp(48px, 7vw, 112px); }
.legal-retour { padding-top: 22px; }
.legal-retour a { text-decoration: none; display: inline-block; padding: 10px 0; }
.legal h1 { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.01em; margin-top: clamp(18px, 3vw, 40px); }
.legal section { margin-top: clamp(32px, 4vw, 52px); padding-top: 16px; border-top: 1px solid var(--bordeaux); }
.legal h2 { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 0.08em; line-height: 1.3; }
.legal p { margin-top: 14px; }
.legal p b { font-weight: 600; }
.legal dl { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); }
.legal dt, .legal dd { padding: 10px 0; border-bottom: 1px solid var(--filet); }
.legal dt { color: var(--encre-douce); padding-right: 16px; }
@media (max-width: 600px) {
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: 0; padding-bottom: 0; }
  .legal dd { padding-top: 2px; }
}
.pied-liens a { color: var(--creme); }
.estimer .rgpd a { color: var(--creme); }
.pied-liens { font-size: 14px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .legal-retour a:hover { text-decoration: underline; } }
/* Rien de bleu : numéros et adresses laissés tels quels par Safari / iOS */
a[x-apple-data-detectors], a[href^="tel:"] { color: inherit !important; text-decoration: none !important; font: inherit !important; }
