/* Google Fonts chargées en async depuis head.ejs */

/* ============================================================
   Variables globales — palette, typo, espacement
   ============================================================ */
:root {
  --brun:         #3D2418;
  --cognac:       #8B5A2B;
  --ivoire:       #F0E6D6;
  --petrole:      #22404A;
  --laiton:       #C99A3C;
  --texte:        #2A1A0E;
  --texte-doux:   #6B4C35;
  --fond-clair:   #FBF6EF;

  --font-titre: 'Fraunces', Georgia, serif;
  --font-texte: 'Work Sans', system-ui, sans-serif;

  --largeur-max: 1180px;
  --rayon:       2px;
  --transition:  0.22s ease;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-texte);
  color: var(--texte);
  background-color: var(--fond-clair);
  line-height: 1.75;
}

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

a {
  color: var(--cognac);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--brun); }

/* ============================================================
   Typographie
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brun);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Utilitaires de mise en page
   ============================================================ */
.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 1.5rem; }
.section--compact { padding: 3.5rem 1.5rem; }

.section--sombre {
  background-color: var(--brun);
  color: var(--ivoire);
}
.section--sombre h1,
.section--sombre h2,
.section--sombre h3 { color: var(--ivoire); }

.section--claire { background-color: var(--ivoire); }

/* ============================================================
   Boutons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  font-family: var(--font-texte);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
  border-radius: var(--rayon);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  letter-spacing: 0.015em;
}

.btn--principal {
  background-color: var(--cognac);
  color: var(--ivoire);
}
.btn--principal:hover {
  background-color: #6f4421;
  color: var(--ivoire);
}

.btn--contour {
  background-color: transparent;
  color: var(--ivoire);
  border: 1.5px solid rgba(240, 230, 214, 0.6);
}
.btn--contour:hover {
  border-color: var(--ivoire);
  color: var(--ivoire);
}

.btn--petrole {
  background-color: var(--petrole);
  color: var(--ivoire);
}
.btn--petrole:hover {
  background-color: #1a3038;
  color: var(--ivoire);
}

/* ============================================================
   En-tête du site (injecté via JS)
   ============================================================ */
.site-header {
  background-color: var(--brun);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--largeur-max);
  margin: 0 auto;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo__monogramme {
  width: 44px;
  height: 44px;
  background-color: var(--cognac);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivoire);
  flex-shrink: 0;
}

/* Logo PNG fond transparent — affiché directement sur le header sombre */
.header-logo__img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  /* légère ombre portée pour décoller le badge du fond foncé */
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.header-logo__texte {
  line-height: 1.1;
}

.header-logo__nom {
  display: block;
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivoire);
  line-height: 1.25;
}

.header-logo__sous {
  display: block;
  font-family: var(--font-texte);
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(240, 230, 214, 0.6);
  letter-spacing: 0.04em;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--laiton);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.header-tel:hover { color: var(--ivoire); }

/* Navigation */
.header-nav { display: flex; align-items: center; }

.nav-liste {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.nav-liste a {
  display: block;
  padding: 0.45rem 0.8rem;
  color: rgba(240, 230, 214, 0.8);
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: var(--rayon);
  transition: color var(--transition), background-color var(--transition);
}

.nav-liste a:hover {
  color: var(--ivoire);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-liste a[aria-current="page"] {
  color: var(--ivoire);
  border-bottom: 2px solid var(--cognac);
  padding-bottom: calc(0.45rem - 2px);
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ivoire);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Titres de section
   ============================================================ */
.titre-section { margin-bottom: 2.5rem; }
.titre-section--centre { text-align: center; }
.titre-section h2 { margin-bottom: 0.4rem; }

.titre-section__trait {
  width: 44px;
  height: 3px;
  background-color: var(--cognac);
  margin-top: 0.65rem;
  border-radius: 1px;
}
.titre-section--centre .titre-section__trait {
  margin-left: auto;
  margin-right: auto;
}

.titre-section__sous {
  color: var(--texte-doux);
  font-size: 1rem;
  margin-top: 0.4rem;
}

/* ============================================================
   Section hero (page d'accueil)
   ============================================================ */
.hero {
  background-color: var(--brun); /* fallback si l'image ne charge pas */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--ivoire);
  padding: 5.5rem 1.5rem;
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Overlay : fonçage progressif gauche→droite pour lisibilité du texte sur photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(20, 8, 2, 0.88) 0%,
    rgba(20, 8, 2, 0.62) 45%,
    rgba(20, 8, 2, 0.28) 100%
  );
  pointer-events: none;
}

.hero__contenu {
  position: relative;
  z-index: 1;
  max-width: var(--largeur-max);
  margin: 0 auto;
  width: 100%;
}

.hero__meta {
  font-family: var(--font-texte);
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  color: var(--ivoire);
  max-width: 680px;
  margin-bottom: 0.75rem;
}

.hero__accroche {
  font-size: 1.05rem;
  color: rgba(240, 230, 214, 0.75);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section page intérieure — en-tête */
.page-entete {
  background-color: var(--brun);
  color: var(--ivoire);
  padding: 4rem 1.5rem;
}

.page-entete__inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
}

.page-entete h1 { color: var(--ivoire); margin-bottom: 0.5rem; }

.page-entete__sous {
  color: rgba(240, 230, 214, 0.7);
  font-size: 1rem;
  max-width: 560px;
}

/* ============================================================
   Aperçu galerie (accueil)
   ============================================================ */
.apercu-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.apercu-grille__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--rayon);
  background-color: #C8B59E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte-doux);
  font-size: 0.82rem;
  font-style: italic;
}

.apercu-grille__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.apercu-grille__item:hover img { transform: scale(1.04); }

.apercu-lien {
  display: block;
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cognac);
}

/* ============================================================
   Section prestations — accordéon panneaux (page d'accueil)
   ============================================================ */
.section-prestations {
  background: #0e0806;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.prest-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.prest-surtitre {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cognac);
  margin-bottom: 0.8rem;
}

.prest-intro h2 {
  color: var(--ivoire);
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 0.7rem;
}

.prest-intro p {
  color: rgba(240,230,214,0.45);
  font-size: 0.95rem;
}

/* --- Panneaux horizontaux --- */
.prest-panneaux {
  display: flex;
  height: 560px;
  overflow: hidden;
}

.prest-panneau {
  flex: 1;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255,255,255,0.05);
}

.prest-panneau:last-child { border-right: none; }

/* Quand le conteneur a une carte active, toutes rétrécissent */
.prest-panneaux.has-active .prest-panneau {
  flex: 0.3;
}
.prest-panneaux.has-active .prest-panneau.is-active {
  flex: 4;
}

/* Brillance en haut de chaque panneau */
.prest-panneau::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.prest-panneau.is-active::after {
  transform: scaleX(1);
}

.prest-panneau__inner {
  position: absolute;
  inset: 0;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* --- Vue repliée (numéro + texte vertical) --- */
.prest-court {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.prest-panneau.is-active .prest-court {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

.prest-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.prest-label {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-family: var(--font-titre);
  font-size: 1rem;
  color: rgba(240,230,214,0.75);
  letter-spacing: 0.08em;
}

/* --- Vue dépliée --- */
.prest-long {
  position: absolute;
  inset: 0;
  padding: 2.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.prest-panneau.is-active .prest-long {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.prest-num--grand {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-titre);
  letter-spacing: -0.04em;
}

.prest-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  width: fit-content;
  opacity: 0.85;
}

.prest-long h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ivoire);
  margin: 0;
  line-height: 1.15;
}

.prest-long p {
  color: rgba(240,230,214,0.65);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 360px;
}

.prest-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 0.4rem;
  transition: gap 0.25s ease;
}

.prest-lien span {
  transition: transform 0.25s ease;
}

.prest-lien:hover span {
  transform: translateX(5px);
}

.prest-panneau--star .prest-label {
  color: var(--accent);
}

.prest-cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Mobile : accordéon vertical --- */
@media (max-width: 768px) {
  .prest-panneaux {
    flex-direction: column;
    height: auto;
  }

  .prest-panneau {
    flex: none;
    height: 68px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .prest-panneau.is-active {
    height: 300px;
    flex: none;
  }

  .prest-panneaux.has-active .prest-panneau {
    flex: none;
    height: 68px;
  }

  .prest-panneaux.has-active .prest-panneau.is-active {
    flex: none;
    height: 300px;
  }

  .prest-court {
    flex-direction: row;
    bottom: auto;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    gap: 0.8rem;
    align-items: center;
  }

  .prest-panneau.is-active .prest-court {
    opacity: 0;
    transform: translateY(-50%);
  }

  .prest-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1rem;
  }

  .prest-long {
    padding: 1.5rem 1.5rem 2rem;
  }

  .prest-num--grand {
    font-size: 3.5rem;
    top: 1rem;
    right: 1rem;
  }

  .prest-long h3 {
    font-size: 1.3rem;
  }

  .prest-long p {
    font-size: 0.85rem;
  }
}

/* ============================================================
   Services — grille de cartes (pages internes)
   ============================================================ */
.grille-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.carte-service {
  background-color: #fff;
  border: 1px solid rgba(61, 36, 24, 0.1);
  border-left: 4px solid var(--cognac);
  padding: 1.75rem 1.5rem;
  border-radius: var(--rayon);
}

.carte-service--specialite {
  border-left-color: var(--petrole);
  background-color: #f2ede6;
  grid-column: 1 / -1;
}

.carte-service__etiquette {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--petrole);
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
  font-family: var(--font-texte);
}

.carte-service h3 { margin-bottom: 0.6rem; }

.carte-service p {
  color: var(--texte-doux);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   Galerie réalisations — catégories et avant/après
   ============================================================ */
.categorie-bloc { margin-bottom: 4.5rem; }
.categorie-bloc:last-child { margin-bottom: 0; }

.categorie-bloc__intro {
  max-width: 600px;
  margin-bottom: 1.75rem;
}

.categorie-bloc__intro h3 { margin-bottom: 0.4rem; }

.categorie-bloc__intro p {
  color: var(--texte-doux);
  font-size: 0.93rem;
}

.grille-realisations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

/* Carte avant/après */
.carte-realisation {
  border: 1px solid rgba(61, 36, 24, 0.12);
  border-radius: var(--rayon);
  overflow: hidden;
  background-color: #fff;
}

.avant-apres {
  position: relative;
  aspect-ratio: 4/3;
}

.avant-apres__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--texte-doux);
  transition: opacity 0.3s ease;
}

.avant-apres__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* fond simulé pour les placeholders */
.avant-apres__face--avant { background-color: #B09070; }
.avant-apres__face--apres { background-color: #D4C0A8; opacity: 0; }

/* état "après" activé par JS */
.avant-apres.montrer-apres .avant-apres__face--avant { opacity: 0; }
.avant-apres.montrer-apres .avant-apres__face--apres  { opacity: 1; }

.avant-apres__controles {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.2rem;
  z-index: 2;
}

.avant-apres__controles button {
  padding: 0.25rem 0.6rem;
  font-family: var(--font-texte);
  font-size: 0.72rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background-color: rgba(40, 20, 5, 0.65);
  color: var(--ivoire);
  border-radius: var(--rayon);
  transition: background-color var(--transition);
}

.avant-apres__controles button.actif,
.avant-apres__controles button:hover {
  background-color: var(--cognac);
}

.carte-realisation__legende {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--texte-doux);
  border-top: 1px solid rgba(61, 36, 24, 0.08);
}

/* ============================================================
   À propos — layout
   ============================================================ */
.apropos-grille {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4.5rem;
  align-items: center;
}

.atelier-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.atelier-media {
  aspect-ratio: 4/3;
  border-radius: var(--rayon);
  overflow: hidden;
  background-color: #C8B59E;
}

.atelier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apropos-media--placeholder {
  aspect-ratio: 3/4;
  background-color: #C8B59E;
  border-radius: var(--rayon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte-doux);
  font-size: 0.9rem;
  font-style: italic;
}

.apropos-media {
  aspect-ratio: 3/4;
  border-radius: var(--rayon);
  overflow: hidden;
}

.apropos-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apropos-citation {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--cognac);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--cognac);
}

.chiffres-cles {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.chiffre {
  text-align: center;
}

.chiffre__valeur {
  display: block;
  font-family: var(--font-titre);
  font-size: 3rem;
  font-weight: 700;
  color: var(--cognac);
  line-height: 1;
}

.chiffre__label {
  display: block;
  font-size: 0.8rem;
  color: var(--texte-doux);
  margin-top: 0.2rem;
}

/* ============================================================
   Formulaire de contact
   ============================================================ */
.formulaire { max-width: 680px; }

.form-groupe { margin-bottom: 1.1rem; }

.form-groupe label {
  display: block;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--brun);
  margin-bottom: 0.3rem;
}

.form-groupe input,
.form-groupe select,
.form-groupe textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  font-family: var(--font-texte);
  font-size: 0.95rem;
  color: var(--texte);
  background-color: #fff;
  border: 1.5px solid rgba(61, 36, 24, 0.2);
  border-radius: var(--rayon);
  transition: border-color var(--transition);
  appearance: none;
}

.form-groupe input:focus,
.form-groupe select:focus,
.form-groupe textarea:focus {
  outline: none;
  border-color: var(--cognac);
}

.form-groupe textarea {
  resize: vertical;
  min-height: 110px;
}

.form-groupe--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Wrapper select pour la flèche personnalisée */
.select-wrapper { position: relative; }

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--cognac);
  font-size: 0.8rem;
}

/* Zone d'upload de photos */
.upload-zone {
  border: 2px dashed rgba(61, 36, 24, 0.22);
  border-radius: var(--rayon);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}

.upload-zone:hover,
.upload-zone:focus-within { border-color: var(--cognac); }

.upload-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone__label {
  font-size: 0.87rem;
  color: var(--texte-doux);
  pointer-events: none;
}

.upload-zone__label strong { color: var(--cognac); }

#upload-noms {
  font-size: 0.8rem;
  color: var(--texte-doux);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Aperçu des photos uploadées */
.upload-apercu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.upload-apercu__item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: var(--rayon);
  overflow: hidden;
  border: 2px solid rgba(61,36,24,0.15);
  animation: apercu-entree 0.25s ease;
}

@keyframes apercu-entree {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.upload-apercu__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-apercu__suppr {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.upload-apercu__suppr:hover {
  background: #c0392b;
}

/* Message de confirmation après envoi */
.form-confirmation {
  display: none;
  background-color: #e8f0e9;
  border: 1px solid rgba(34, 64, 74, 0.3);
  color: var(--petrole);
  padding: 1rem 1.25rem;
  border-radius: var(--rayon);
  margin-top: 1rem;
  font-size: 0.92rem;
}

/* ============================================================
   Contact — layout deux colonnes
   ============================================================ */
.contact-grille {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 4rem;
  align-items: start;
}

.coordonnees { display: flex; flex-direction: column; gap: 1.25rem; }

.coord-ligne { display: flex; gap: 0.85rem; align-items: flex-start; }

.coord-ligne__icone {
  font-size: 1rem;
  color: var(--cognac);
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 20px;
  text-align: center;
}

.coord-ligne__texte strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brun);
  margin-bottom: 0.1rem;
}

.coord-ligne__texte span,
.coord-ligne__texte a {
  font-size: 0.95rem;
  color: var(--texte-doux);
}

.coord-ligne__texte a { color: var(--cognac); }

.horaires-grille {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
  margin: 0.4rem 0 0.6rem;
}

.horaires-ferme {
  color: var(--rouge);
  font-style: italic;
}

.coord-ligne__note {
  display: block;
  font-size: 0.8rem;
  color: var(--texte-doux);
  font-style: italic;
  margin-top: 0.2rem;
}

.carte-maps iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--rayon);
  display: block;
}

/* ============================================================
   Section localisation (carte + texte)
   ============================================================ */
.section-localisation {
  padding: 5rem 1.5rem;
  background-color: var(--ivoire);
}

.localisation-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--largeur-max);
  margin: 0 auto;
}

.localisation-texte h2 {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  color: var(--petrole);
  margin-bottom: 1rem;
}

.localisation-texte p {
  color: var(--petrole);
  line-height: 1.7;
  font-size: 1rem;
}

.localisation-note {
  font-size: 0.82rem !important;
  opacity: 0.65;
  margin-top: 0.5rem;
}

.localisation-carte {
  height: 360px;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.localisation-carte iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 700px) {
  .localisation-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .localisation-carte {
    height: 260px;
  }
}

/* ============================================================
   Bandeau CTA
   ============================================================ */
.bandeau-cta {
  background-color: var(--petrole);
  color: var(--ivoire);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.bandeau-cta h2 { color: var(--ivoire); margin-bottom: 0.6rem; }

.bandeau-cta p {
  color: rgba(240, 230, 214, 0.75);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ============================================================
   Pied de page (injecté via JS)
   ============================================================ */
.site-footer { background-color: var(--brun); }

/* Logo dans la colonne marque du footer */
.footer-logo {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
  transition: filter var(--transition), transform var(--transition);
}

.footer-marque a:hover .footer-logo {
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.65));
  transform: translateY(-2px);
}

/* Ligne de couture — séparateur unique en haut du footer */
.footer-couture {
  height: 10px;
  background-image: radial-gradient(circle, var(--cognac) 1.5px, transparent 1.5px);
  background-size: 14px 10px;
  background-repeat: repeat-x;
  background-position: 0 center;
  opacity: 0.55;
}

.footer-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.3fr;
  gap: 3rem;
  color: rgba(240, 230, 214, 0.7);
}

.footer-marque__nom {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.35rem;
  color: var(--ivoire);
  margin-bottom: 0.4rem;
}

.footer-marque p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.footer-col-titre {
  font-family: var(--font-texte);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--laiton);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

.footer-liens {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-liens a {
  color: rgba(240, 230, 214, 0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-liens a:hover { color: var(--ivoire); }

.footer-contact-liste {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.footer-contact-liste a {
  color: rgba(240, 230, 214, 0.65);
  transition: color var(--transition);
}
.footer-contact-liste a:hover { color: var(--ivoire); }

.footer-horaires {
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(240, 230, 214, 0.45);
  margin-top: 0.3rem;
}

.footer-bas {
  border-top: 1px solid rgba(240, 230, 214, 0.08);
  padding: 1.25rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(240, 230, 214, 0.35);
  max-width: var(--largeur-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.footer-bas p { margin: 0; }

.footer-tva {
  font-size: 0.72rem;
  color: rgba(240, 230, 214, 0.35);
}

.footer-credit {
  font-size: 0.72rem;
  color: rgba(240, 230, 214, 0.5);
}

.footer-credit a {
  color: rgba(240, 230, 214, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: rgba(240, 230, 214, 0.95);
}

/* ============================================================
   Responsive — mobile first
   ============================================================ */
@media (max-width: 900px) {
  .apropos-grille { grid-template-columns: 1fr; gap: 2.5rem; }
  .atelier-grille { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grille { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner  { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 1.25rem; }
  .apercu-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section        { padding: 3rem 1.25rem; }
  .section--compact { padding: 2.25rem 1.25rem; }
  .page-entete    { padding: 2.75rem 1.25rem; }

  /* Navigation mobile */
  .header-inner { flex-wrap: wrap; }

  .header-nav {
    display: none;
    width: 100%;
    order: 4;
    padding-bottom: 0.75rem;
  }

  .header-nav.ouvert { display: block; }

  .nav-liste {
    flex-direction: column;
    gap: 0;
  }

  .nav-liste a {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(240, 230, 214, 0.08);
    border-radius: 0;
    width: 100%;
  }

  .nav-liste a[aria-current="page"] {
    color: var(--laiton);
    border-bottom-color: var(--cognac);
    padding-bottom: 0.55rem;
  }

  .burger { display: flex; }

  /* Hero mobile — overlay uniforme car le texte occupe toute la largeur */
  .hero { padding: 3.5rem 1.25rem; min-height: 62vh; }
  .hero::before { background: rgba(20, 8, 2, 0.78); }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  /* Formulaire mobile */
  .form-groupe--double { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .apercu-grille { grid-template-columns: 1fr; }
  .chiffres-cles { gap: 1.75rem; }
}

/* ============================================================
   Sélecteur de langue
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lang-switcher span {
  color: rgba(240, 230, 214, 0.25);
}

.lang-switcher a {
  color: rgba(240, 230, 214, 0.5);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.2rem 0.3rem;
  border-radius: 3px;
  transition: color var(--transition);
}

.lang-switcher a:hover { color: var(--ivoire); }

.lang-switcher a.actif {
  color: var(--laiton);
  font-weight: 600;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(240, 230, 214, 0.08);
  }
}
