/* Akaba — feuille commune. Couleurs et polices : charte 4a. */

@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inconsolata"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inconsolata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inconsolata"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inconsolata-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inconsolata"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inconsolata-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #E9E3D6; color: #2A2E2B; -webkit-font-smoothing: antialiased; }
body.sombre { background: #2A2E2B; color: #E9E3D6; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #2A2E2B; outline-offset: 3px; }
.fond-sombre :focus-visible { outline-color: #E9E3D6; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* En-tête */
.entete { z-index: 10; background: #E9E3D6; color: #2A2E2B; border-bottom: 2px solid #2A2E2B; font-family: "Barlow Semi Condensed", Bahnschrift, sans-serif; }
.entete.fixe { position: fixed; top: 0; left: 0; right: 0; }
.entete.collant { position: sticky; top: 0; }
.entete-barre { height: 64px; display: flex; align-items: stretch; }
.entete-logo { padding: 0 clamp(16px, 3vw, 28px); display: flex; align-items: center; border-right: 1px solid #2A2E2B; }
.entete-logo img { height: 24px; width: auto; display: block; }
.nav-large { flex: 1; display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding: 0 clamp(16px, 3vw, 32px); font-size: 19px; font-weight: 500; }
.bouton-crise { padding: 0 clamp(18px, 3vw, 30px); display: flex; align-items: center; gap: 10px; background: #B03A22; color: #E9E3D6; font-weight: 700; font-size: 19px; }
.bouton-crise span { width: 8px; height: 8px; background: #E9E3D6; }

/* Menu mobile, sans JavaScript */
.menu-mobile { display: none; position: relative; margin-left: auto; }
.menu-mobile summary { list-style: none; height: 100%; display: flex; align-items: center; padding: 0 18px; min-width: 76px; border-left: 1px solid #2A2E2B; font-size: 18px; font-weight: 500; cursor: pointer; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary .ouvrir, .menu-mobile:not([open]) summary .fermer { display: none; }
.menu-mobile nav { position: fixed; top: 66px; left: 0; right: 0; background: #E9E3D6; border-bottom: 2px solid #2A2E2B; display: flex; flex-direction: column; font-size: 22px; font-weight: 600; }
.menu-mobile nav a { min-height: 56px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid #CFC6B3; }
.menu-mobile nav a:last-child { border-bottom: 0; }
@media (max-width: 859px) {
  .nav-large { display: none; }
  .menu-mobile { display: block; }
}

/* Grilles responsives */
.grille-4 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grille-3 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Mentions légales */
.ligne-legale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-bottom: 1px solid #2A2E2B; }
.ligne-legale:last-child { border-bottom: 0; }
.ligne-legale h2 { margin: 0; padding: 18px 20px; font-size: 24px; font-weight: 700; border-right: 1px solid #2A2E2B; }
.ligne-legale dl { margin: 0; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 8px 20px; font-family: Georgia, serif; font-size: 17px; line-height: 1.45; }
.ligne-legale dt { font-family: Inconsolata, Consolas, monospace; font-size: 15px; color: #666358; }
.ligne-legale dd { margin: 0; }
@media (max-width: 859px) {
  .ligne-legale { grid-template-columns: 1fr; }
  .ligne-legale h2 { border-right: 0; border-bottom: 1px solid #CFC6B3; }
}
@media (max-width: 519px) {
  .ligne-legale dl { grid-template-columns: 1fr; gap: 2px 0; }
  .ligne-legale dd { margin-bottom: 8px; }
}

/* Formulaire de contact (fond sombre) */
.contact-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .contact-grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.formulaire { display: flex; flex-direction: column; gap: 18px; font-family: "Barlow Semi Condensed", Bahnschrift, sans-serif; }
.formulaire-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 18px; }
.formulaire-champs label { display: flex; flex-direction: column; gap: 6px; font-family: Inconsolata, Consolas, monospace; font-size: 15px; color: #CFC6B3; }
.formulaire-champs label.large { grid-column: 1 / -1; }
.formulaire-champs em { font-style: normal; opacity: .75; }
.formulaire-champs input, .formulaire-champs textarea { width: 100%; padding: 12px 14px; border: 2px solid #E9E3D6; border-radius: 0; background: #E9E3D6; color: #2A2E2B; font: 18px/1.4 Georgia, serif; }
.formulaire-champs textarea { resize: vertical; min-height: 140px; }
.formulaire-champs input:focus, .formulaire-champs textarea:focus { outline: 3px solid #C8452B; outline-offset: 2px; }
.formulaire-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.formulaire-pied button { appearance: none; border: 0; border-radius: 0; cursor: pointer; padding: 16px 30px; background: #E9E3D6; color: #2A2E2B; font: 700 clamp(20px, 1.8vw, 24px) Inconsolata, Consolas, monospace; }
.formulaire-pied button:disabled { opacity: .6; cursor: wait; }
.formulaire-pied button:focus-visible { outline: 2px solid #E9E3D6; outline-offset: 3px; }
.formulaire-pied p { margin: 0; flex: 1 1 16em; font: 15px/1.45 Georgia, serif; color: #CFC6B3; }
.formulaire-pied a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.formulaire-etat, .formulaire-retour { margin: 0; padding: 12px 16px; border-left: 4px solid #C8452B; font: 18px/1.45 Georgia, serif; color: #E9E3D6; background: rgba(233, 227, 214, .06); }
.formulaire-etat[data-type="ok"] { border-left-color: #E9E3D6; }
.formulaire-etat[data-type="attente"] { border-left-color: #CFC6B3; }
.formulaire-retour { display: none; }
.formulaire-retour:target { display: block; }
#contact-envoye { border-left-color: #E9E3D6; }

/* Expertises : une ligne par situation, avec son offre et son prix */
.offres { border: 2px solid #2A2E2B; }
.offres-entete { display: none; padding: 10px 18px; border-bottom: 1px solid #2A2E2B; font-family: Inconsolata, Consolas, monospace; font-size: 14px; }
.offres-ligne { display: grid; gap: 12px; padding: 18px; border-bottom: 1px solid #2A2E2B; scroll-margin-top: 80px; }
.offres-ligne:last-child { border-bottom: 0; }
.offres-crise { box-shadow: inset 6px 0 0 #C8452B; padding-left: 24px; }
.offres-situation, .offres-reponse, .offres-prix { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.offres-situation .titre { font-size: clamp(21px, 2vw, 26px); font-weight: 600; line-height: 1.15; }
.offres .detail { font-family: Georgia, serif; font-size: 16px; line-height: 1.45; color: #666358; }
.offres-reponse .etiquette { font-family: Inconsolata, Consolas, monospace; font-size: 14px; color: #666358; }
.offres-reponse h3 { margin: 0; font-size: clamp(22px, 1.9vw, 27px); font-weight: 700; line-height: 1.05; }
.offres-crise .offres-reponse h3 a { color: #B03A22; }
.offres-prix .montant { font-family: Inconsolata, Consolas, monospace; font-size: 19px; font-weight: 700; line-height: 1.35; }
@media (min-width: 900px) {
  .offres-entete { display: grid; }
  .offres-entete, .offres-ligne { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .offres-crise { padding-left: 24px; }
  .offres-entete { padding-left: 24px; }
  .offres-ligne { padding-left: 24px; }
}
