/* ---- feuille de la page /tarifs.html ---- */
/* ============================================================
   VARIABLES · reprises a l'identique de index.html (meme charte,
   memes contraintes de contraste). Voir index.html:163 pour la
   documentation complete de chaque token.
============================================================ */
:root{
  --encre:   #14110F;
  --encre-2: #221E1A;
  --safran:  #E8A33D; /* jamais texte sur fond clair, jamais blanc dessus. Texte valide uniquement sur encre/encre-2. */
  --platre:  #F5F1E8;
  --sable:   #E8E1D3;
  --blanc:   #FFFFFF;
  --safran-ombre: #C98A2E;
  --safran-ombre: color-mix(in srgb, var(--safran) 82%, var(--encre) 18%);
  /* Variante texte : safran-ombre est un fond valide (6.41:1 avec du texte
     encre dessus) mais tombe a 2.6:1 en COULEUR DE TEXTE sur platre, sous le
     seuil 3:1 des composants d'interface. --safran-texte est calibre pour cet
     usage (coche, puce, lettre de marque) : 4.55:1 sur platre, 3.94:1 sur
     sable, mesure verifiee (voir recette). */
  --safran-texte: #96631A;
  --mute-clair:  rgba(20,17,15,0.66);
  --mute-sombre: rgba(255,255,255,0.66);
  --font-titre: 'Archivo Black', Arial, sans-serif; /* une seule graisse, 400 : jamais de font-weight:700 (gras synthetique) */
  --font-corps: 'Readex Pro', Arial, sans-serif;
  --max: 980px; /* colonne plus etroite qu'index.html : document a lire, pas a scanner en diagonale */
  --joint-clair: 1px solid var(--sable);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }
body{
  font-family:var(--font-corps);
  background:var(--platre);
  color:var(--encre);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;}
ul{list-style:none;}
table{border-collapse:collapse;width:100%;}

.wrap{max-width:var(--max); margin:0 auto; padding:0 clamp(1.1rem, 5vw, 2rem);}

.h1{
  font-family:var(--font-titre); font-weight:400;
  font-size:clamp(1.8rem, 4.4vw, 2.9rem);
  line-height:1.08; letter-spacing:-0.01em;
}
.h2{
  font-family:var(--font-titre); font-weight:400;
  font-size:clamp(1.35rem, 2.6vw, 1.7rem);
  line-height:1.15;
}
.h3{
  font-family:var(--font-titre); font-weight:400;
  font-size:1.05rem; line-height:1.25;
}
.body-lg{font-size:clamp(1rem, 1.4vw, 1.1rem); line-height:1.65;}

.kicker{
  display:inline-flex; align-items:baseline; gap:0.5em;
  font-family:var(--font-corps); font-weight:600;
  font-size:0.74rem; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--mute-clair); margin-bottom:0.7rem;
}
.tf-num{
  font-family:var(--font-titre); font-weight:400;
  color:var(--mute-clair); font-variant-numeric:tabular-nums;
  margin-right:0.35em;
}

/* ============================================================
   BOUTONS · repris de index.html (deja verifie accessible :
   safran/encre = 8.72:1). Angles nets, jamais de pilule.
============================================================ */
.btn{
  display:inline-flex; align-items:center; gap:0.5em;
  font-family:var(--font-titre); font-weight:400;
  font-size:0.9rem;
  padding:0.75em 1.4em;
  border:2px solid transparent;
  text-decoration:none;
  transition:background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary{background:var(--safran); color:var(--encre);}
.btn-primary:hover{background:var(--safran-ombre); color:var(--encre);}

/* ============================================================
   HEADER · minimal, pas la nav complete de index.html. Logo +
   fil d'ariane + un seul CTA vers le formulaire de l'accueil.
============================================================ */
.tf-header{
  border-bottom:var(--joint-clair);
  background:var(--platre);
}
.tf-header__bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:1.1rem 0;
}
.tf-brand{display:flex; align-items:center; gap:0.55rem;}
.tf-brand img{height:40px; width:auto;}
.tf-brand__word{
  font-family:var(--font-titre); font-weight:400;
  font-size:1.5rem; color:var(--encre); text-transform:lowercase;
}
.tf-brand__word i{font-style:normal; color:var(--safran-texte);} /* variante texte, 3:1+ sur platre (voir :root) */

.tf-breadcrumb{
  padding:0.85rem 0 0;
  font-size:0.8rem; color:var(--mute-clair);
}
.tf-breadcrumb a{text-decoration:underline; text-underline-offset:2px;}
.tf-breadcrumb span[aria-hidden]{margin:0 0.4em;}

/* ============================================================
   INTRO
============================================================ */
.tf-intro{padding:2.2rem 0 1.6rem;}
.tf-intro p{margin-top:1rem; max-width:640px;}
.tf-intro__meta{
  margin-top:1.1rem; font-size:0.82rem; color:var(--mute-clair);
}

/* ============================================================
   RECAPITULATIF · seul bloc a fond sombre de la page (encre-2),
   pour permettre de le comparer vite a un devis concurrent.
   Bascule a l'impression via .dark-block (regle @media print).
============================================================ */
.dark-block{background:var(--encre-2); color:var(--blanc);}
.tf-summary{margin:1.8rem 0 2.6rem; padding:1.6rem clamp(1.1rem,4vw,2rem); border-radius:2px;}
.tf-summary__label{
  font-size:0.74rem; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--mute-sombre); margin-bottom:1rem; display:block;
}
.tf-summary table th,
.tf-summary table td{
  text-align:left; padding:0.85rem 0.6rem;
  border-bottom:1px solid rgba(255,255,255,0.14);
  font-size:0.94rem;
}
.tf-summary table thead th{
  font-family:var(--font-corps); font-weight:600; font-size:0.72rem;
  letter-spacing:0.06em; text-transform:uppercase; color:var(--mute-sombre);
  border-bottom:1px solid rgba(255,255,255,0.28);
}
.tf-summary table tr:last-child td{border-bottom:none;}
.tf-summary td.tf-price{
  font-family:var(--font-titre); font-weight:400; font-size:1.15rem;
  color:var(--safran); text-align:right; white-space:nowrap;
}

/* ============================================================
   SECTIONS DETAILLEES
============================================================ */
.tf-section{padding:0 0 2.6rem;}
.tf-section__head{margin-bottom:1.1rem; padding-top:1.6rem; border-top:var(--joint-clair);}
.tf-item{
  border:1px solid var(--sable);
  padding:1.3rem clamp(1rem,3vw,1.6rem);
  margin-bottom:1rem;
}
.tf-item__head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:1rem; flex-wrap:wrap; margin-bottom:0.9rem;
}
.tf-item__price{
  font-family:var(--font-titre); font-weight:400;
  font-size:1.35rem; white-space:nowrap;
}
.tf-item__unit{font-size:0.78rem; font-family:var(--font-corps); color:var(--mute-clair);}
.tf-item__note{font-size:0.85rem; color:var(--mute-clair); margin-bottom:0.7rem;}
.tf-item ul{margin-top:0.4rem;}
.tf-item li{
  position:relative; padding-left:1.3em; margin-bottom:0.45rem;
  font-size:0.92rem; line-height:1.5;
}
.tf-item li::before{
  content:"✓"; position:absolute; left:0; font-weight:700; color:var(--safran-texte);
}

/* ============================================================
   CALLOUT · conditions, comparatif marche, aides. Fond clair,
   liseret safran en bordure gauche (safran = decor, jamais texte
   sur ce fond).
============================================================ */
.tf-callout{
  border-left:3px solid var(--safran);
  background:var(--sable);
  padding:1.2rem clamp(1rem,3vw,1.6rem);
  margin-bottom:1.2rem;
}
.tf-callout p + p{margin-top:0.7rem;}
.tf-callout ul{margin-top:0.6rem;}
.tf-callout li{
  position:relative; padding-left:1.3em; margin-bottom:0.5rem;
  font-size:0.94rem; line-height:1.55;
}
.tf-callout li::before{
  content:"•"; /* puce d'affichage uniquement, jamais dans le texte redige */
  position:absolute; left:0; color:var(--safran-texte);
}
.tf-callout li strong{font-family:var(--font-titre); font-weight:400;}

/* ============================================================
   CONTACT
============================================================ */
.tf-contact{
  border-top:var(--joint-clair); padding:2rem 0;
}
.tf-contact__row{
  display:flex; flex-wrap:wrap; gap:1.6rem; align-items:baseline; margin-top:0.9rem;
}
.tf-contact__row a{text-decoration:underline; text-underline-offset:3px; font-size:1.02rem;}

/* ============================================================
   FOOTER
============================================================ */
.tf-footer{
  border-top:var(--joint-clair); padding:1.6rem 0 2.4rem;
  font-size:0.82rem; color:var(--mute-clair);
  display:flex; flex-wrap:wrap; gap:0.5rem 1.2rem; justify-content:space-between;
}
.tf-footer a{text-decoration:underline; text-underline-offset:2px;}

@media (max-width: 640px){
  .tf-item__head{flex-direction:column; gap:0.3rem;}
  .tf-footer{flex-direction:column;}
}

/* Recapitulatif en tableau : sur mobile, un vrai tableau 2 colonnes force soit
   la casse du libelle le plus long, soit un prix nowrap qui pousse hors
   cadre (mesure Puppeteer : ~34px de depassement a 360/390px). Bascule en
   empilement libelle/prix, sans tableau visuel, en dessous de 560px. */
@media (max-width: 560px){
  .tf-summary table, .tf-summary thead, .tf-summary tbody,
  .tf-summary tr, .tf-summary th, .tf-summary td{display:block; width:auto;}
  .tf-summary thead{display:none;}
  .tf-summary tbody tr{padding:0.9rem 0; border-bottom:1px solid rgba(255,255,255,0.14);}
  .tf-summary tbody tr:last-child{border-bottom:none;}
  .tf-summary td{border-bottom:none; padding:0.15rem 0;}
  .tf-summary td.tf-price{text-align:left; white-space:normal; margin-top:0.25rem;}
}

/* ============================================================
   IMPRESSION · document pense pour finir en PDF ou sur papier.
============================================================ */
@media print{
  @page{margin:16mm 14mm;}
  body{background:#fff; color:#000;}
  .tf-header{border-bottom:1px solid #000;}
  .btn, .tf-breadcrumb{display:none;} /* interactif/navigation, sans valeur sur papier */
  .dark-block{
    background:#fff !important; color:#000 !important;
    border:1px solid #000;
  }
  .tf-summary table thead th,
  .tf-summary table td{color:#000 !important; border-bottom:1px solid #999;}
  .tf-summary td.tf-price{color:#000 !important;}
  .tf-item, .tf-callout{border-color:#999; background:#fff;}
  .tf-callout{border-left:3px solid #000;}
  table, .tf-item, .tf-callout{break-inside:avoid; page-break-inside:avoid;}
  thead{display:table-header-group;}
  tr{break-inside:avoid; page-break-inside:avoid;}
  a{color:#000; text-decoration:underline;}
  .tf-footer{border-top:1px solid #000; color:#000;}
  .tf-footer::after{
    content:"Document imprimé depuis sabaa.ma/tarifs.html";
    display:block; width:100%; margin-top:0.4rem; font-size:0.75rem;
  }
}
