/* ============================================================
   JULIENNE RÉNOVATION · Carreleur, sols & murs (Samadet, Landes)
   Design system · « matière & carrelage »
   Ardoise/anthracite + azulejo méditerranéen + sable
   Archivo (titres) / Hanken Grotesk (corps)
   ============================================================ */

:root {
  --slate:      #283641;   /* ardoise / anthracite profond */
  --slate-2:    #313f4a;
  --slate-3:    #1f2a33;
  --azulejo:    #1f6f9e;   /* bleu azulejo méditerranéen */
  --azulejo-br: #2f86b8;
  --azulejo-lt: #7cc0e6;
  --sand:       #e7d9c2;   /* sable clair */
  --sand-2:     #f3ebdd;
  --paper:      #f6f1e8;   /* fond sable très clair */
  --paper-2:    #efe6d6;
  --white:      #fffdf9;
  --text:       #2a3640;
  --text-muted: #5f6c76;
  --text-inv:   #e8edf1;
  --text-inv-muted: #aab8c4;
  --line:       #e2d8c6;
  --line-slate: rgba(255,255,255,.13);

  --step--1: clamp(0.86rem, 0.82rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1.02rem, 0.98rem + 0.26vw, 1.16rem);
  --step-1:  clamp(1.25rem, 1.12rem + 0.55vw, 1.55rem);
  --step-2:  clamp(1.6rem, 1.36rem + 1.05vw, 2.2rem);
  --step-3:  clamp(2.0rem, 1.58rem + 1.95vw, 3.25rem);
  --step-4:  clamp(2.55rem, 1.9rem + 3.4vw, 4.7rem);

  --font-title: "Archivo", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:  "Hanken Grotesk", system-ui, sans-serif;

  --space-xs: .5rem; --space-s: 1rem; --space-m: 1.75rem; --space-l: 3rem; --space-xl: 5rem;
  --radius: 10px; --radius-lg: 16px;
  --shadow:    0 22px 55px -26px rgba(20,32,42,.5);
  --shadow-sm: 0 10px 26px -16px rgba(20,32,42,.42);
  --transition: .25s cubic-bezier(.2,.7,.3,1);
  --header-h: 76px; --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.7;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.07; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--azulejo-br); outline-offset: 2px; border-radius: 3px; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l); }
.section--slate { background: var(--slate); color: var(--text-inv); }
.section--paper2 { background: var(--paper-2); }

/* ---------- Motif carreaux azulejo (touche subtile) ---------- */
/* fond carrelé léger pour sections sable */
.tile-bg {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(45deg, rgba(31,111,158,.05) 25%, transparent 25%, transparent 75%, rgba(31,111,158,.05) 75%),
    linear-gradient(45deg, rgba(31,111,158,.05) 25%, transparent 25%, transparent 75%, rgba(31,111,158,.05) 75%);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
}
/* motif carreaux clair sur fond ardoise */
.tile-slate {
  background-color: var(--slate);
  background-image:
    linear-gradient(45deg, rgba(124,192,230,.05) 25%, transparent 25%, transparent 75%, rgba(124,192,230,.05) 75%),
    linear-gradient(45deg, rgba(231,217,194,.04) 25%, transparent 25%, transparent 75%, rgba(231,217,194,.04) 75%);
  background-size: 38px 38px;
  background-position: 0 0, 19px 19px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase;
  letter-spacing: .2em; font-family: var(--font-title); font-weight: 700; font-size: var(--step--1); color: var(--azulejo);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--azulejo); }
.section--slate .eyebrow, .tile-slate .eyebrow { color: var(--azulejo-lt); }
.section--slate .eyebrow::before, .tile-slate .eyebrow::before { background: var(--azulejo-lt); }
.section-title { margin-top: .6rem; max-width: 24ch; }
.lead { color: var(--text-muted); max-width: 62ch; margin-top: var(--space-s); font-size: var(--step-1); }
.section--slate .lead, .tile-slate .lead { color: var(--text-inv-muted); }

/* boutons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-title); font-weight: 700;
  font-size: var(--step-0); padding: .72em 1.4em; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition); line-height: 1; white-space: nowrap;
}
.btn--primary { background: var(--azulejo); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--azulejo-br); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--lg { font-size: var(--step-1); padding: .8em 1.55em; }
.btn svg { width: 1.05em; height: 1.05em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,241,232,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 48px; width: auto; display: block; }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-family: var(--font-title); font-weight: 600; color: var(--slate); position: relative; padding-block: .3rem; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--azulejo); transition: width var(--transition); }
.primary-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; padding: 10px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--slate); border-radius: 3px; margin: 5px 0; transition: var(--transition); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--space-s) 1.2rem var(--space-m); gap: var(--space-s); transform: translateY(-130%); transition: transform var(--transition); box-shadow: var(--shadow); }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: .25rem; }
  .primary-nav li a { display: block; padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* hero */
.hero { position: relative; color: var(--text-inv); overflow: hidden; background: var(--slate); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(98deg, rgba(26,36,44,.95) 0%, rgba(26,36,44,.85) 44%, rgba(26,36,44,.5) 100%), linear-gradient(0deg, rgba(26,36,44,.72) 0%, rgba(26,36,44,0) 55%); }
.hero__inner { position: relative; z-index: 2; max-width: 760px; padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; background: rgba(47,134,184,.18); color: var(--azulejo-lt); border: 1px solid rgba(47,134,184,.45); padding: .45rem 1rem; border-radius: 6px; font-family: var(--font-title); font-weight: 700; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { margin-top: var(--space-s); }
.hero h1 .accent { color: var(--azulejo-lt); }
.hero__lead { font-size: var(--step-1); color: var(--text-inv-muted); margin-top: var(--space-s); max-width: 54ch; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: var(--space-m); }

/* bandeau réassurance */
.assure { background: var(--slate-2); color: var(--text-inv); }
.assure__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.assure__grid > div { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1rem; }
.assure__grid > div + div { border-left: 1px solid var(--line-slate); }
.assure svg { width: 28px; height: 28px; flex: none; color: var(--azulejo-lt); }
.assure b { font-family: var(--font-title); font-weight: 700; font-size: 1.02rem; display: block; line-height: 1.15; }
.assure span { font-size: var(--step--1); color: var(--text-inv-muted); }
@media (max-width: 840px) { .assure__grid { grid-template-columns: repeat(2, 1fr); } .assure__grid > div:nth-child(3) { border-left: 0; } .assure__grid > div { border-top: 1px solid var(--line-slate); } .assure__grid > div:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 480px) { .assure__grid { grid-template-columns: 1fr; } .assure__grid > div + div { border-left: 0; } }

/* cartes prestations */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-m); margin-top: var(--space-l); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--azulejo); }
.card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: var(--space-m); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { color: var(--slate); }
.card p { color: var(--text-muted); }
.card__link { margin-top: auto; padding-top: .6rem; color: var(--azulejo); font-family: var(--font-title); font-weight: 700; display: inline-flex; gap: .4rem; transition: gap var(--transition); }
.card:hover .card__link { gap: .8rem; }

/* citation / manifeste */
.quote { max-width: 38ch; }
.quote blockquote { font-family: var(--font-title); font-weight: 600; font-size: var(--step-2); line-height: 1.22; margin: 0; color: #fff; }
.quote cite { display: block; margin-top: var(--space-s); font-style: normal; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--azulejo-lt); }

/* split (à propos) */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-l); align-items: center; }
.about-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-caption { font-size: var(--step--1); color: var(--text-muted); margin-top: .6rem; font-style: italic; }
.checks { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 32px; }
.checks li svg { position: absolute; left: 0; top: 4px; width: 22px; height: 22px; color: var(--azulejo); }
.checks strong { color: var(--slate); }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; gap: var(--space-m); } }

/* infos pratiques */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); align-items: center; }
.infos__list { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: 1rem; }
.infos__list li { position: relative; padding-left: 34px; }
.infos__list li svg { position: absolute; left: 0; top: 2px; width: 23px; height: 23px; color: var(--azulejo-lt); }
.infos__list b { font-family: var(--font-title); color: #fff; display: block; }
.infos__list span { color: var(--text-inv-muted); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-slate); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.1) contrast(1.02); }
@media (max-width: 840px) { .infos { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 800px; margin-top: var(--space-l); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--font-title); font-weight: 700; font-size: var(--step-1); cursor: pointer; list-style: none; padding: var(--space-s) 2.2rem var(--space-s) 0; position: relative; color: var(--slate); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--azulejo); }
.faq details[open] summary { color: var(--azulejo); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--space-s); color: var(--text-muted); margin-top: -.2rem; }

/* CTA */
.cta-final { text-align: center; }
.cta-final .hero__cta { justify-content: center; }
.cta-final .lead { margin-inline: auto; }

/* footer */
.site-footer { background: var(--slate-3); color: var(--text-inv); padding-block: var(--space-l) var(--space-m); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: var(--space-l); }
.site-footer h3 { font-family: var(--font-title); font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--azulejo-lt); margin-bottom: var(--space-s); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a:hover { color: var(--azulejo-lt); }
.site-footer address { font-style: normal; line-height: 2; color: var(--text-inv-muted); }
.site-footer address a { color: var(--text-inv); }
.site-footer__brand img { margin-bottom: var(--space-s); }
.site-footer__brand p { color: var(--text-inv-muted); max-width: 40ch; }
.site-footer__legal { border-top: 1px solid var(--line-slate); margin-top: var(--space-m); padding-top: var(--space-s); color: var(--text-inv-muted); font-size: var(--step--1); }
.site-footer__legal a:hover { color: var(--azulejo-lt); }
@media (max-width: 840px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-m); } }

/* barre mobile */
.mobile-bar { display: none; }
@media (max-width: 680px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--slate); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.5); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem; color: #fff; font-family: var(--font-title); font-weight: 700; }
  .mobile-bar a + a { border-left: 1px solid var(--line-slate); }
  .mobile-bar a.is-mail { background: var(--azulejo); }
  body { padding-bottom: 60px; }
}

/* pages internes */
.breadcrumb { font-size: var(--step--1); color: var(--text-muted); padding-block: var(--space-s); }
.breadcrumb a:hover { color: var(--azulejo); }
.breadcrumb [aria-current] { color: var(--slate); }
.page-hero { position: relative; overflow: hidden; color: var(--text-inv); background: var(--slate); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(98deg, rgba(26,36,44,.95) 0%, rgba(26,36,44,.82) 58%, rgba(26,36,44,.5) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero__inner { padding-block: var(--space-l) var(--space-xl); max-width: 760px; }
.page-hero h1 { margin-top: var(--space-s); }
.page-hero p { color: var(--text-inv-muted); font-size: var(--step-1); margin-top: var(--space-s); max-width: 54ch; }

.body-2col { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-l); align-items: start; }
.prose > * + * { margin-top: var(--space-s); }
.prose h2 { color: var(--slate); margin-top: var(--space-m); }
.prose ul { padding-left: 1.2rem; color: var(--text-muted); }
.prose ul li { margin-top: .4rem; }
.prose strong { color: var(--slate); }
.aside-card { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--azulejo); border-radius: var(--radius-lg); padding: var(--space-m); display: grid; gap: .8rem; box-shadow: var(--shadow-sm); }
.aside-card h3 { color: var(--slate); }
.aside-card p { color: var(--text-muted); font-size: var(--step--1); }
.aside-card .btn { justify-content: center; }
@media (max-width: 840px) { .body-2col { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-l); align-items: start; }
.contact__info .row { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; }
.contact__info .row svg { width: 22px; height: 22px; color: var(--azulejo); flex: none; }
.form { display: grid; gap: var(--space-s); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-m); box-shadow: var(--shadow-sm); }
.form .field { display: grid; gap: .35rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.form label { font-family: var(--font-title); font-weight: 600; color: var(--slate); font-size: var(--step--1); }
.form input, .form select, .form textarea { font-family: var(--font-body); font-size: var(--step-0); padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--azulejo); outline: none; box-shadow: 0 0 0 3px rgba(31,111,158,.18); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hint { font-size: var(--step--1); color: var(--text-muted); font-style: italic; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--text-muted); }
.form .consent input { width: auto; margin-top: .3rem; }
@media (max-width: 840px) { .contact { grid-template-columns: 1fr; } .form .row2 { grid-template-columns: 1fr; } }

/* légal / 404 */
.legal { max-width: 75ch; }
.legal h2 { color: var(--slate); margin-top: var(--space-m); font-size: var(--step-1); }
.legal p, .legal ul { margin-top: var(--space-s); color: var(--text-muted); }
.legal ul { padding-left: 1.2rem; }
.error-page { text-align: center; padding-block: var(--space-xl); }
.error-page .code { font-family: var(--font-title); font-weight: 700; font-size: var(--step-4); color: var(--azulejo-lt); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.demo-flag { background: var(--slate-3); color: var(--text-inv-muted); text-align: center; font-size: .78rem; padding: .35rem 1rem; letter-spacing: .03em; }
.demo-flag b { color: var(--azulejo-lt); }

/* ---------- Figure illustrative (pages internes) ---------- */
.prose-figure { margin: 1.8rem 0 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,.14); box-shadow: 0 12px 30px -18px rgba(0,0,0,.45); }
.prose-figure img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.prose-figure figcaption { font-size: .9rem; color: #6b6b6b; padding: .55rem .85rem; background: rgba(0,0,0,.05); font-style: italic; }


/* Fix specificite : le bouton CTA du header garde la couleur de texte du bouton
   (sinon .primary-nav a { color } le rend illisible sur le fond colore). */
.primary-nav a.btn--primary { color: #fff; }
