@import url("https://fonts.googleapis.com/css2?family=Marcellus&family=Mulish:wght@400;500;600;700;800&display=swap");
/* =================================================================
   KEITEL — Site vitrine
   style.css — Structure de base, prête à être habillée ensuite.
   Mobile-first. Design volontairement neutre/sobre.

   Les couleurs sont centralisées dans les variables ci-dessous :
   il suffira de les modifier pour appliquer l'identité visuelle
   finale (rouge du logo, typographie, etc.).
   ================================================================= */

/* ---------- Variables (à ajuster pour le design final) ---------- */
:root {
  /* Boutons : ROUGE conservé */
  --red: #d81f1f;
  --red-dark: #b31414;
  --red-glow: rgba(216, 31, 31, .30);

  /* Accent Provence : VERT OLIVE */
  --accent: #6f7d3f;
  --accent-dark: #55632c;
  --accent-light: #8f9e57;
  --accent-glow: rgba(111, 125, 63, .28);
  --ochre: #c39a3f;        /* jaune calcaire chaud */
  --terracotta: #b25a36;   /* terre / terracotta (touches) */
  --terracotta-dark: #8f4527;

  /* Neutres — THÈME CLAIR « pierre calcaire » */
  --ink: #2c2519;          /* brun foncé chaud (texte) */
  --ink-soft: #6d6450;     /* texte secondaire */
  --line: #ddd0b4;         /* bordures / séparateurs (pierre) */
  --bg: #f4eeda;           /* fond principal : calcaire clair */
  --bg-alt: #ece0c6;       /* sections alternées (plus chaud) */
  --panel: #fbf6ea;        /* cartes / champs */
  --bg-dark: #24261d;      /* header / footer : olive très foncé */

  /* Mise en page */
  --maxw: 1140px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 34px rgba(70,55,25,.14);
  --header-h: 68px;

  /* Typographie (police système par défaut — à remplacer ensuite) */
  --font: 'Mulish', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.20'/%3E%3C/svg%3E"),
    radial-gradient(1200px 720px at 12% -8%, rgba(195,154,63,.18), transparent 60%),
    radial-gradient(1100px 700px at 102% 6%, rgba(178,90,54,.12), transparent 55%),
    radial-gradient(1000px 900px at 50% 118%, rgba(111,125,63,.08), transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 120px 120px, auto, auto, auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); font-family: var(--font-display); font-weight: 400; }
ul { margin: 0; padding: 0; }

/* ---------- Utilitaires ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus visible clavier (accessibilité) */
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

/* ---------- Boutons (modernes : pilule, dégradé, halo, relief) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; letter-spacing: .2px;
  text-align: center;
  border: 1.5px solid transparent;
  border-radius: 999px;                 /* pilule */
  padding: 13px 26px;
  cursor: pointer;
  font-size: 1rem; line-height: 1.1;
  position: relative; overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.8,.2,1),
              box-shadow .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }

/* Reflet lumineux qui balaie le bouton au survol */
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .55s ease;
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(135deg, #ef4a4a 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--red-glow), 0 0 0 3px rgba(216,31,31,.16), inset 0 1px 0 rgba(255,255,255,.3);
  filter: brightness(1.05); color: #fff;
}
.btn-ghost {
  background: rgba(0,0,0,.015); color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(111,125,63,.12); border-color: var(--accent); color: var(--accent-dark);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(70,55,25,.14);
}
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  /* Dégradé vers l'olive (rappel du thème / de la version sombre) */
  background: linear-gradient(100deg, rgba(33,36,24,.90) 0%, rgba(74,84,45,.80) 100%);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(195,154,63,.28);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}

.logo { display: flex; align-items: center; color: #fff; }
.logo:hover { text-decoration: none; }
.logo-img { height: 38px; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 22px; list-style: none; }
.main-nav a { color: #e6e8eb; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: #fff; text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; white-space: nowrap; }
.header-phone:hover { color: var(--accent-light); text-decoration: none; }
.header-ig { display: inline-flex; align-items: center; color: #fff; }
.header-ig svg { width: 24px; height: 24px; fill: currentColor; }
.header-ig:hover { color: var(--accent-light); }

/* Bouton hamburger (masqué sur desktop) */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero { color: var(--ink); padding: calc(var(--header-h) + 48px) 0 60px; background: transparent; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-content { min-width: 0; }

/* Diaporama : cadre portrait, photos à leur échelle -> nettes */
.hero-slideshow {
  position: relative; width: 100%; max-width: 440px; justify-self: end;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  background: var(--panel);
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 10px; max-width: 16ch; color: var(--ink); }
.hero-slogan { font-style: italic; color: var(--accent-dark); font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 600; margin: 0 0 16px; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 52ch; margin: 0 0 26px; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; font-size: .9rem; color: var(--ink-soft); }

/* ================================================================
   SECTIONS génériques
   ================================================================ */
.section { padding: 72px 0; position: relative; }

.section-alt {
  background-color: rgba(224,208,174,.42);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* ================================================================
   TEXTURES DE FOND — alternance MATIÈRE / ESQUISSE, une par section.
   - Matières (pierre, travertin, bois) : trait clair tuilé, en multiply.
   - Esquisses (croquis d'archi) : posées en filigrane plein cadre.
   Dans les deux cas le blanc de l'image disparaît (multiply), seul le
   trait subsiste : discret et lisible.
   ================================================================ */

/* --- MATIÈRES (tuilées) --- */
#services, #atouts, #devis { background-color: var(--bg); background-repeat: repeat; background-blend-mode: multiply; }
#services { background-image: url("../images/textures/pierre.png");    background-size: 1300px auto; }   /* Prestations */
#atouts   { background-image: url("../images/textures/travertin.png"); background-size: 1200px auto; }   /* Pourquoi nous */
#devis    { background-image: url("../images/textures/Bois.png");      background-size: 1300px auto; }   /* Devis */

/* --- ESQUISSES (filigrane plein cadre) --- */
.hero, #realisations, #zone, #contact { overflow: hidden; }
.hero::after, #realisations::after, #zone::after, #contact::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: no-repeat; background-position: center; background-size: cover;
  mix-blend-mode: multiply; opacity: .4; pointer-events: none; z-index: 0;
}
.hero::after         { background-image: url("../images/textures/esquisse2-bg.jpg"); }  /* Hero : terrasse */
#realisations::after { background-image: url("../images/textures/esquisse3-bg.jpg"); }  /* Réalisations : villa + oliviers */
#zone::after         { background-image: url("../images/textures/esquisse4-bg.jpg"); opacity: .5; }  /* Zone : plan de masse */
#contact::after      { background-image: url("../images/textures/maison-bg.jpg"); }     /* Contact : mas */

/* Le contenu passe au-dessus du filigrane */
.hero > .container, #realisations > .container, #zone > .container, #contact > .container { position: relative; z-index: 1; }

/* --- Réglage MOBILE des textures ---
   Sur petit écran, un motif prévu pour le desktop se retrouve énormément
   zoomé (un seul gros fragment). On réduit la taille des tuiles (matières)
   et on affiche les esquisses en 'contain' + plus discrètes, pour qu'elles
   restent lisibles et fines. */
@media (max-width: 760px) {
  #services { background-size: 560px auto; }
  #atouts   { background-size: 520px auto; }
  #devis    { background-size: 560px auto; }
  .hero::after, #realisations::after, #zone::after, #contact::after {
    background-size: contain; background-position: center;
    opacity: .18;
  }
  #zone::after { opacity: .22; }
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; position: relative; }
.section-head h2::after {
  content: ""; display: block; width: 62px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--ochre), var(--terracotta)); border-radius: 3px;
}
.section-sub { color: var(--ink-soft); margin: 0; }
.section-cta { text-align: center; margin-top: 36px; }

/* ---------- Grilles de cartes ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Services : bandes « croquis » -> 2 colonnes, 1 sur mobile */
.services-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .services-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon, .atout-icon { font-size: 2rem; margin-bottom: 12px; }

/* Cartes services : croquis en trait, texte à gauche sur voile clair */
.service-card {
  position: relative; overflow: hidden; padding: 0;
  aspect-ratio: 5 / 3; background: var(--panel); border-color: var(--line); box-shadow: var(--shadow);
}
/* Fond crème + croquis OLIVE : filtre duotone (creux crème, traits olive)
   -> effet miroir de l'ancienne carte (fond olive / traits crème). */
.service-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: url(#svc-duotone); }
.service-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(251,246,234,.94) 0%, rgba(251,246,234,.82) 38%, rgba(251,246,234,.40) 62%, rgba(251,246,234,0) 84%);
}
.service-text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 26px; max-width: 66%;
}
.service-text h3 { font-size: 1.2rem; margin: 0 0 8px; color: var(--accent-dark); }
.service-text p { margin: 0; color: var(--accent-dark); font-size: .92rem; line-height: 1.5; }
.service-card:hover .service-img { transform: scale(1.04); transition: transform .4s ease; }
.service-img { transition: transform .4s ease; }
.service-card h3, .atout h3 { font-size: 1.15rem; margin: 0 0 8px; }
.service-card p, .atout p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.atout { text-align: center; padding: 8px; }
.atout-badge {
  width: 70px; height: 70px; margin: 0 auto 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.atout-ico {
  width: 32px; height: 32px; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.atout:hover .atout-badge {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(111,125,63,.12);
  transform: translateY(-3px);
}

/* ================================================================
   PORTFOLIO — CARROUSEL HORIZONTAL
   Défile automatiquement vers la droite à l'entrée dans l'écran
   (géré en JS), et peut être fait glisser / swipé à la main.
   ================================================================ */
.portfolio-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 16px;
  /* défilement fluide au toucher + masque les barres pour un rendu propre */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  cursor: grab;
}
.portfolio-carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.portfolio-carousel::-webkit-scrollbar { height: 8px; }
.portfolio-carousel::-webkit-scrollbar-track { background: transparent; }
.portfolio-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 20px; }
.portfolio-carousel:hover::-webkit-scrollbar-thumb { background: var(--accent); }

.portfolio-item {
  position: relative; padding: 0; border: none; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--line);
  flex: 0 0 320px;           /* largeur fixe de chaque vignette */
  max-width: 82vw;           /* jamais plus large que l'écran sur mobile */
  aspect-ratio: 3 / 4;       /* portrait (photos verticales) */
  scroll-snap-align: start;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease; pointer-events: none; /* évite le drag natif de l'image */
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--terracotta); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.portfolio-hint { text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: 6px; }

/* ---- Comparateur avant / après (curseur) ---- */
.ba-item { cursor: default; }                 /* pas de lightbox sur un slider */
/* touch-action:none => le geste horizontal pilote le curseur (pas le scroll du carrousel) */
.ba { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; }
.ba img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none;
}
/* L'image « avant » est rognée à droite selon la position du curseur */
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }

.ba-label {
  position: absolute; top: 10px; z-index: 3;
  font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 20px; color: #fff;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
}
.ba-label-before { left: 10px; }
.ba-label-after  { right: 10px; }

/* Trait vertical + poignée */
.ba-divider {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  left: var(--pos, 50%); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.5);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.5); font-size: 1rem;
}
.ba-handle svg { width: 22px; height: 22px; fill: #fff; }
.ba:hover .ba-divider, .ba:focus-within .ba-divider { background: #fff; }
@media (max-width: 600px) {
  .ba-handle { width: 48px; height: 48px; }   /* plus facile à attraper au doigt */
  .ba-handle svg { width: 26px; height: 26px; }
}

/* Bloc « Vidéos » -> lien vers Instagram */
.video-cta {
  margin-top: 34px; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.video-cta h3 { font-size: 1.25rem; margin: 0 0 8px; }
.video-cta p { color: var(--ink-soft); margin: 0 0 18px; }
.btn-insta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 60%, #cc2366 80%, #bc1888);
  color: #fff; border: none;
}
.btn-insta:hover { color: #fff; filter: brightness(1.08); text-decoration: none; }
.btn-insta svg { width: 20px; height: 20px; fill: currentColor; }

/* ================================================================
   ZONE D'INTERVENTION
   ================================================================ */
.zone-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.zone-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px; margin: 18px 0;
}
.zone-list li { position: relative; padding-left: 22px; }
.zone-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236f7d3f' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") no-repeat center/contain; }
.zone-note { color: var(--ink-soft); font-size: .92rem; margin-bottom: 20px; }
.zone-map iframe { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ================================================================
   FORMULAIRE DEVIS
   ================================================================ */
.devis-form { max-width: 760px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #a99f86; }
.form-group select option { background: var(--panel); color: var(--ink); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; }
.req { color: var(--accent); }
.opt { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
.field-hint { display: block; color: var(--ink-soft); font-size: .82rem; margin-top: 4px; }
.field-error { display: block; color: var(--accent-dark); font-size: .82rem; margin-top: 4px; min-height: 1em; }

/* Champ invalide (ajouté par le JS) */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--red); background: #f8e9e3; }

/* Honeypot : totalement masqué à l'écran et aux lecteurs d'écran */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.form-consent input { width: auto; margin-top: 5px; }
.form-consent label { font-weight: 400; margin: 0; flex: 1; min-width: 200px; }

.form-submit { text-align: center; margin-top: 8px; }
.form-privacy { color: var(--ink-soft); font-size: .85rem; margin: 12px 0 0; }

.form-feedback { margin-top: 20px; padding: 0; border-radius: var(--radius); text-align: center; font-weight: 600; }
.form-feedback.show { padding: 16px 18px; }
.form-feedback.success { background: #eaf1dc; color: #4d5f24; border: 1px solid #cdd9a8; }
.form-feedback.error { background: #f8e6e1; color: #a2402e; border: 1px solid #e6c3b8; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.contact-block h3 { font-family: var(--font); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 0 0 8px; }
.contact-block p { margin: 0 0 4px; font-size: 1.1rem; }
.contact-block a { color: var(--ink); font-weight: 700; }
.contact-note { color: var(--ink-soft); font-size: .85rem !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: linear-gradient(160deg, #24261d 0%, #46512a 100%); color: #d6dac8; padding-top: 44px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 30px; }
.footer-logo { height: 34px; }
.footer-brand p { margin: 10px 0 0; font-size: .9rem; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-social a { color: #c8cdd2; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .82rem; }
.footer-legal p { margin: 0; color: #9aa1a8; }
.footer-legal .legal-details { font-size: .78rem; color: #7c858d; margin-top: 6px; line-height: 1.7; }
.footer-legal a { color: #c8cdd2; }

/* ================================================================
   LIGHTBOX (portfolio)
   Masquée par défaut ; affichée quand le JS ajoute la classe .open.
   ================================================================ */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15, 18, 22, .92);
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox-figure img {
  max-width: 90vw; max-height: 78vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.lightbox-figure figcaption { color: #fff; margin-top: 12px; font-size: .95rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: none; cursor: pointer; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
  .zone-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Hero : le texte au-dessus, le diaporama en dessous */
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-slideshow { justify-self: center; max-width: 420px; }
}

@media (max-width: 760px) {
  /* Menu mobile : la nav se déplie sous le header */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-dark); margin: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { max-height: 340px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a { display: block; padding: 14px 0; }

  /* Sur mobile, on masque le libellé du numéro et le CTA texte pour la place */
  .header-phone .phone-number { display: none; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }

  .section { padding: 52px 0; }
  .hero { min-height: 80vh; }
}

/* Respect de la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
