/* =========================================================
   Atelier Test — Tours
   Palette : P16 Noyer nuit (famille sombre-premium)
   Typo    : T6 Crimson Pro (titres) + Hanken Grotesk (corps)
   Layout  : éditorial / split-screen, hero editorial-decale
   ========================================================= */


:root {
  --nuit:        #17120E;
  --nuit-clair:  #211A14;
  --nuit-carte:  #2A2119;
  --bois:        #C9A277;
  --laiton:      #C9A055;
  --creme:       #F3EDE3;
  --creme-doux:  #BCB0A1;
  --ligne:       #382C21;

  /* étape 4 : « Appeler » en couleur forte, barre du téléphone */
  --appel-fond:  var(--laiton);
  --appel-texte: var(--nuit);
  --barre-fond:  var(--nuit);
  --barre-trait: var(--ligne);

  --f-titre: "Crimson Pro", Georgia, serif;
  --f-corps: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --w-large: 1280px;
  --w-texte: 62ch;

  --t-vite: 180ms cubic-bezier(.4,0,.2,1);
  --t-doux: 320ms cubic-bezier(.4,0,.2,1);

  --ombre: 0 2px 4px rgba(0,0,0,.34), 0 24px 48px -24px rgba(0,0,0,.62);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--f-corps);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--w-large); margin: 0 auto; padding: 0 32px; }

/* ---------- typographie ---------- */
h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; }
h3 { font-size: 21px; line-height: 1.3; }
p { max-width: var(--w-texte); }
.lead { font-size: 20px; color: var(--creme-doux); }
.sur-titre {
  font-family: var(--f-corps); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--laiton);
  display: block; margin-bottom: 20px;
}

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23,18,14,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-vite);
}
.site-header.is-scrolled { border-bottom-color: var(--ligne); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.marque { font-family: var(--f-titre); font-size: 25px; text-decoration: none; letter-spacing: -0.01em; }
.marque span { color: var(--laiton); }
.nav-principale { display: flex; align-items: center; gap: 30px; }
.nav-principale a { font-size: 15px; text-decoration: none; color: var(--creme-doux); transition: color var(--t-vite); }
.nav-principale a:hover, .nav-principale a[aria-current="page"] { color: var(--creme); }
.nav-tel {
  border: 1px solid var(--laiton); color: var(--laiton) !important;
  padding: 9px 18px; border-radius: 2px; font-weight: 500;
  transition: background-color var(--t-vite), color var(--t-vite);
}
.nav-tel:hover { background: var(--laiton); color: var(--nuit) !important; }
.nav-bouton { display: none; background: none; border: 0; color: var(--creme); font-size: 15px; cursor: pointer; padding: 8px; }

/* ---------- hero : editorial-decale ---------- */
.hero { padding: 96px 0 112px; position: relative; }
.hero-grille {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 64px; align-items: center;
}
.hero-texte { position: relative; z-index: 2; }
.hero-texte p { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-images { position: relative; }
.hero-img-1 { box-shadow: var(--ombre); }
.hero-img-1 img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hero-img-2 {
  position: absolute; right: -34px; bottom: -52px; width: 47%;
  border: 8px solid var(--nuit); box-shadow: var(--ombre);
}
.hero-img-2 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- boutons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 2px;
  font-family: var(--f-corps); font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
  transition: transform var(--t-vite), background-color var(--t-vite), color var(--t-vite);
}
.btn:hover { transform: translateY(-2px); }
.btn-plein { background: var(--laiton); color: var(--nuit); }
.btn-plein:hover { background: var(--bois); }
.btn-ligne { background: transparent; border-color: var(--ligne); color: var(--creme); }
.btn-ligne:hover { border-color: var(--laiton); color: var(--laiton); }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--nuit-clair); }
.section-entete { max-width: 60ch; margin-bottom: 56px; }
.section-entete p { margin-top: 18px; color: var(--creme-doux); }

/* offre : grille de cards sobres */
.offre-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ligne); }
.offre-item { background: var(--nuit); padding: 36px 28px 40px; transition: background-color var(--t-doux); }
.offre-item:hover { background: var(--nuit-carte); }
.offre-item h3 { margin-bottom: 12px; }
.offre-item p { font-size: 15px; color: var(--creme-doux); }
.offre-num { font-family: var(--f-titre); font-size: 15px; color: var(--laiton); display: block; margin-bottom: 18px; }

/* réalisations : mosaïque à hauteurs régulières */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.galerie figure { margin: 0; position: relative; overflow: hidden; background: var(--nuit-carte); }
.galerie img { width: 100%; height: 300px; object-fit: cover; transition: transform var(--t-doux); }
.galerie figure:hover img { transform: scale(1.035); }
.galerie figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px; font-size: 14px; color: var(--creme);
  background: linear-gradient(to top, rgba(15,11,8,.88), rgba(15,11,8,0));
}
.galerie .grande { grid-column: span 2; }
.galerie .grande img { height: 300px; }

/* zone */
.zone-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.zone-liste { list-style: none; margin-top: 24px; columns: 2; column-gap: 32px; }
.zone-liste li { padding: 7px 0 7px 20px; position: relative; font-size: 15px; color: var(--creme-doux); }
.zone-liste li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 1px; background: var(--laiton); }

/* savoir-faire : étapes */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.etape-num { font-family: var(--f-titre); font-size: 42px; color: var(--laiton); line-height: 1; display: block; margin-bottom: 16px; }
.etape h3 { margin-bottom: 10px; }
.etape p { font-size: 15px; color: var(--creme-doux); }

/* faq */
.faq-item { border-top: 1px solid var(--ligne); }
.faq-item:last-child { border-bottom: 1px solid var(--ligne); }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--creme); cursor: pointer;
  font-family: var(--f-titre); font-size: 21px; text-align: left;
  padding: 26px 44px 26px 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--laiton); font-size: 24px; font-family: var(--f-corps); font-weight: 300;
  transition: transform var(--t-vite);
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-r { max-height: 0; overflow: hidden; transition: max-height var(--t-doux); }
.faq-item.is-open .faq-r { max-height: 320px; }
.faq-r p { padding-bottom: 26px; color: var(--creme-doux); font-size: 16px; }

/* contact */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-ligne { padding: 20px 0; border-bottom: 1px solid var(--ligne); }
.contact-ligne dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); margin-bottom: 6px; }
.contact-ligne dd { font-size: 18px; }
.contact-ligne a { text-decoration: none; transition: color var(--t-vite); }
.contact-ligne a:hover { color: var(--laiton); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* pied de page */
.site-footer { background: var(--nuit-clair); border-top: 1px solid var(--ligne); padding: 64px 0 36px; }
.footer-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer p, .site-footer a, .site-footer li { font-size: 14px; color: var(--creme-doux); }
.site-footer h4 { font-family: var(--f-corps); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--creme); margin-bottom: 16px; font-weight: 500; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { text-decoration: none; transition: color var(--t-vite); }
.site-footer a:hover { color: var(--laiton); }
.footer-bas { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ligne); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.footer-bas p { font-size: 13px; }

/* accessibilité */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--laiton); outline-offset: 3px;
}
.saut-contenu { position: absolute; left: -9999px; background: var(--nuit-carte); color: var(--creme); padding: 14px 18px; z-index: 100; }
.saut-contenu:focus { left: 16px; top: 16px; position: fixed; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .offre-grille { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: 1fr; gap: 32px; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .nav-principale { display: none; }
  .nav-principale.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--nuit-clair); border-bottom: 1px solid var(--ligne); padding: 20px;
  }
  .nav-principale.is-open a { padding: 10px 0; font-size: 17px; }
  .nav-bouton { display: block; }
  .hero { padding: 56px 0 96px; }
  .hero-grille { grid-template-columns: 1fr; gap: 48px; }
  .hero-img-2 { right: -12px; bottom: -32px; width: 44%; border-width: 6px; }
  .section { padding: 72px 0; }
  .zone-grille, .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .zone-liste { columns: 2; }
  .footer-grille { grid-template-columns: 1fr; gap: 32px; }
  .galerie { grid-template-columns: 1fr; }
  .galerie .grande { grid-column: span 1; }
  .galerie img, .galerie .grande img { height: 260px; }
}

.footer-baseline { margin-top: 14px; }

/* pages légales */
.zone-grille h2 { font-size: 24px; }
.zone-grille .mt { margin-top: 40px; }
.zone-grille p { margin-top: 14px; color: var(--creme-doux); }
.note-demo {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ligne);
  font-size: 13px; color: var(--creme-doux); max-width: 78ch; opacity: .78;
}

/* ---------- page d'erreur (404.html) ---------- */
.page-erreur { padding: 120px 0 140px; }
.page-erreur h1 { margin-bottom: 24px; }
.page-erreur p { color: var(--creme-doux); }
.actions-erreur { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 820px) { .page-erreur { padding: 72px 0 96px; } }

/* ---------- barre « Appeler » du téléphone (étape 4 « confort », 09/10/2026) ----------
   Téléphone seulement (760 px et moins). Collée en bas, elle ne cache jamais rien :
   - le corps de page reçoit une marge basse égale à sa hauteur (+ la zone du bouton d'accueil de l'iPhone), donc le
     pied de page finit au-dessus d'elle ;
   - le bandeau d'expiration des démos est en HAUT de l'écran : aucune superposition possible.
   Couleurs : --appel-fond / --appel-texte = la couleur forte du bouton « Appeler » du site (contraste ≥ 4,5:1, à
   vérifier par controle-confort.js) ; --barre-fond = le fond de page ; --barre-trait = la couleur des filets. */
.barre-appel { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .barre-appel {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--barre-fond); border-top: 1px solid var(--barre-trait);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .10), 0 -8px 24px -12px rgba(0, 0, 0, .35);
  }
  .barre-appel a {
    flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px;
    background: var(--appel-fond); color: var(--appel-texte); border-radius: 4px;
    font-weight: 600; font-size: 16px; text-decoration: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .barre-appel a:active { transform: scale(.98); }
  .barre-appel a:focus-visible { outline: 2px solid var(--appel-texte); outline-offset: -5px; }
}
@media print { .barre-appel { display: none !important; } body { padding-bottom: 0 !important; } }
