/* ================================================================ */
/* AU TOUR DU BOIS — Feuille de styles principale                   */
/* Artisan menuisier — Bessèges, Cévennes                          */
/*                                                                  */
/* Organisation :                                                   */
/*  1. Polices (@font-face)                                        */
/*  2. Variables CSS                                                */
/*  3. Reset minimal                                                */
/*  4. Accessibilité                                                */
/*  5. Styles de base (body, typo, liens)                          */
/*  6. Utilitaires (boutons, sections)                             */
/*  7. Header et navigation                                         */
/*  8. Accueil (hero)                                              */
/*  9. Savoir-faire (grille de cartes)                             */
/* 10. Sections métier + galeries                                   */
/* 11. Artisan                                                      */
/* 12. Contact + formulaire                                         */
/* 13. Footer                                                       */
/* 14. Lightbox                                                     */
/* 15. Media queries (tablette puis desktop)                        */
/* ================================================================ */


/* ================================ */
/* 1. POLICES — @font-face          */
/* SpartanMB : titres               */
/* TangoSans : texte courant        */
/* Hébergées localement             */
/* ================================ */

@font-face {
  font-family: 'SpartanMB';
  src: url('assets/polices/TangoSans_Bold.ttf') format('opentype');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SpartanMB';
  src: url('assets/polices/TangoSans.ttf') format('opentype');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SpartanMB';
  src: url('assets/polices/TangoSans.ttf') format('opentype');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TangoSans';
  src: url('assets/polices/TangoSans.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TangoSans';
  src: url('assets/polices/TangoSans.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TangoSans';
  src: url('assets/polices/TangoSans_Italic.ttf') format('truetype');
  font-style: italic;
  font-display: swap;
}


/* ================================ */
/* 2. VARIABLES CSS                 */
/* Palette, polices, espacements    */
/* ================================ */

:root {
  /* Couleurs — palette bois et métal */
  --couleur-fond: #F5F5F0;
  --couleur-gris: #8C8C8C;
  --couleur-gris-fonce: #4A4A4A;
  --couleur-brun: #693C1F;
  --couleur-brun-fonce: #3C1C0F;
  --couleur-noire: #110c00;
  --couleur-ocre: #87532D;
  --couleur-beige: #C59B71;

  /* Polices */
  --police-titre: 'TangoSans', Georgia, serif;
  --police-corps: 'TangoSans', Arial, sans-serif;

  /* Espacements */
  --espace-xs: 0.5rem;
  --espace-sm: 1rem;
  --espace-md: 2rem;
  --espace-lg: 3rem;
  --espace-xl: 5rem;

  /* Largeur max du contenu */
  --largeur-max: 1100px;

  /* Arrondi par défaut */
  --arrondi: 6px;

  /* Transition par défaut */
  --transition: 0.25s ease;
}


/* ================================ */
/* 3. RESET MINIMAL                 */
/* Box-sizing, marges, images       */
/* ================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Les images s'adaptent à leur conteneur */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Les listes de navigation n'ont pas de puces */
ul {
  list-style: none;
}


/* ================================ */
/* 4. ACCESSIBILITÉ                 */
/* Skip-link et focus visible       */
/* ================================ */

/* Lien d'évitement — masqué sauf au focus clavier */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--espace-sm);
  background: var(--couleur-brun-fonce);
  color: var(--couleur-fond);
  padding: var(--espace-xs) var(--espace-sm);
  border-radius: var(--arrondi);
  font-family: var(--police-corps);
  font-size: 0.9rem;
  z-index: 1000;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--espace-sm);
}

/* Indicateur de focus clavier — tous les éléments interactifs */
:focus-visible {
  outline: 3px solid var(--couleur-ocre);
  outline-offset: 2px;
}


/* ================================ */
/* 5. STYLES DE BASE                */
/* Body, typographie, liens         */
/* ================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--police-corps);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--couleur-gris-fonce);
  background-color: var(--couleur-fond);
  background-image: url('assets/images/fond/fondbois.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Titres — police SpartanMB */
h1, h2, h3 {
  font-family: var(--police-titre);
  line-height: 1.3;
  color: var(--couleur-brun-fonce);
}

/* Liens — couleur brun, soulignement au survol */
a {
  color: var(--couleur-brun);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--couleur-ocre);
}

/* Listes à puces dans le texte courant */
ul:not([class]) {
  list-style: disc;
  padding-left: 1.5em;
}

/* Texte en gras */
strong {
  color: var(--couleur-brun);
}

/* Paragraphes — espacement vertical */
p + p {
  margin-top: var(--espace-sm);
}


/* ================================ */
/* 6. UTILITAIRES                   */
/* Boutons et conteneurs de section */
/* ================================ */

/* Conteneur de section — centrage et largeur max */
.section__contenu {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: var(--espace-lg) var(--espace-sm);
}

/* En-tête de section — titre + sous-titre */
.section__entete {
  text-align: center;
  margin-bottom: var(--espace-lg);
}

.section__titre {
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--couleur-noire);
  margin-bottom: var(--espace-xs);
}

.section__sous-titre {
  font-size: 1.05rem;
  color: #9C663B;
}

/* --- Boutons --- */
.bouton {
  display: inline-block;
  font-family: var(--police-titre);
  font-size: 0.95rem;
  padding: 0.75em 1.8em;
  border-radius: var(--arrondi);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

/* Principal — fond brun, texte clair */
.bouton--principal {
  background-color: var(--couleur-brun);
  color: var(--couleur-fond);
  border-color: var(--couleur-brun);
}

.bouton--principal:hover {
  background-color: var(--couleur-brun-fonce);
  border-color: var(--couleur-brun-fonce);
  color: var(--couleur-fond);
}

/* Secondaire — transparent, bordure brun */
.bouton--secondaire {
  background-color: transparent;
  color: var(--couleur-brun);
  border-color: var(--couleur-brun);
}

.bouton--secondaire:hover {
  background-color: var(--couleur-brun);
  color: var(--couleur-fond);
}

/* Plein — largeur complète (formulaire) */
.bouton--plein {
  width: 100%;
}


/* ================================ */
/* SECTION : HEADER                 */
/* Barre de navigation fixe en haut */
/* Logo à gauche, menu à droite     */
/* Hamburger sur mobile             */
/* ================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(245, 245, 240, 0.95);
  border-bottom: 1px solid var(--couleur-beige);
  backdrop-filter: blur(4px);
}

.header__contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: var(--espace-xs) var(--espace-sm);
}

/* Logo dans le header — superposition scie + centre */
.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.header__logo-scie {
  width: 50px;
  height: 50px;
}

.header__logo-centre {
  position: absolute;
  width: 30px;
  height: 30px;
}

/* --- Bouton hamburger (mobile) --- */
.header__menu-bouton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: auto;
}

/* Trois barres du hamburger */
.header__menu-barre {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--couleur-brun-fonce);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Transformation en croix — activée par JS via aria-expanded="true" */
.header__menu-bouton[aria-expanded="true"] .header__menu-barre:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-bouton[aria-expanded="true"] .header__menu-barre:nth-child(2) {
  opacity: 0;
}

.header__menu-bouton[aria-expanded="true"] .header__menu-barre:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Navigation principale --- */
/* Mobile : panneau latéral droit, masqué par défaut */
.header__nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  width: 280px;
  max-height: 100vh;
  overflow-y: auto;
  background-color: rgba(245, 245, 240, 0.95);
  border-left: 1px solid var(--couleur-beige);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 70px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  z-index: 105;
}

/* Menu ouvert — activé quand le bouton a aria-expanded="true" */
.header__menu-bouton[aria-expanded="true"] ~ .header__nav {
  transform: translateX(0);
  visibility: visible;
}

.header__liste {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--espace-sm);
  width: 100%;
}

.header__liste li {
  border-bottom: 1px solid rgba(197, 155, 113, 0.3);
}

.header__liste li:last-child {
  border-bottom: none;
}

.header__lien {
  font-family: var(--police-titre);
  font-size: 1rem;
  color: var(--couleur-brun-fonce);
  padding: 0.75em var(--espace-xs);
  display: block;
  transition: color var(--transition);
}

.header__lien:hover {
  color: var(--couleur-ocre);
}

/* Bouton Contact dans le menu — mis en valeur */
.header__lien--contact {
  background-color: var(--couleur-brun);
  color: var(--couleur-fond);
  padding: 0.5em 1.2em;
  border-radius: var(--arrondi);
}

.header__lien--contact:hover {
  background-color: var(--couleur-brun-fonce);
  color: var(--couleur-fond);
}


/* ================================ */
/* SECTION : ACCUEIL (Hero)         */
/* Pleine hauteur viewport          */
/* Centré verticalement             */
/* Fond texture bois très légère    */
/* ================================ */

.accueil {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--espace-lg) var(--espace-sm);
  position: relative;

  /* Fond texture bois — très légère opacité */
  background-image: url('assets/images/fond/fondbois.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------ */
/* ÉCLAIRAGE LOCALISÉ — Halo lumineux côté droit                 */
/* Remplace le voile clair global (ancien ::before opaque)       */
/*                                                                */
/* ::before  = halo lumineux principal, source à droite           */
/* ::after   = assise subtile côté gauche pour la profondeur      */
/* ------------------------------------------------------------ */

/* Halo lumineux principal — source lumineuse côté droit */
.accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Couche 1 : halo principal — ellipse douce, ancrée à droite */
    radial-gradient(
      ellipse 70% 80% at 90% 50%,
      rgba(245, 245, 240, 0.72) 0%,
      rgba(197, 155, 113, 0.35) 35%,
      rgba(135, 83, 45, 0.08) 60%,
      transparent 100%
    ),
    /* Couche 2 : diffusion secondaire — halo plus large, plus doux */
    radial-gradient(
      ellipse 90% 100% at 80% 45%,
      rgba(245, 245, 240, 0.30) 0%,
      rgba(197, 155, 113, 0.10) 40%,
      transparent 75%
    );
  z-index: 0;
  pointer-events: none;
}

/* Assise côté gauche — profondeur et transition douce */
.accueil::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Couche 3 : ombre légère à gauche pour ancrer la profondeur */
    radial-gradient(
      ellipse 60% 70% at 10% 55%,
      rgba(60, 28, 15, 0.12) 0%,
      rgba(60, 28, 15, 0.04) 40%,
      transparent 70%
    ),
    /* Couche 4 : voile très subtil en bas pour asseoir le contenu */
    linear-gradient(
      to top,
      rgba(60, 28, 15, 0.08) 0%,
      transparent 30%
    );
  z-index: 0;
  pointer-events: none;
}

.accueil__contenu {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Logo grand format — superposition scie + centre */
.accueil__logo {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto var(--espace-md);
}

.accueil__logo-scie {
  width: 180px;
  height: 180px;
}

.accueil__logo-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
}

/* Titre principal */
.accueil__titre {
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--couleur-noire);
  margin-bottom: var(--espace-xs);
  /* Renfort lisibilité sur fond bois texturé */
  text-shadow: 0 1px 3px rgba(245, 245, 240, 0.9);
}

/* Sous-titre — mention du métier */
.accueil__sous-titre {
  font-family: var(--police-titre);
  font-size: 1.4rem;
  color: var(--couleur-brun-fonce);
  margin-bottom: var(--espace-sm);
  text-shadow: 0 1px 2px rgba(245, 245, 240, 0.7);
}

/* Accroche — phrase clé */
.accueil__accroche {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--couleur-brun-fonce);
  margin-bottom: var(--espace-xs);
}

/* Description courte — texte de lecture */
.accueil__description {
  font-size: 1rem;
  color: #EFE6D8; /* blanc cassé / ivoire */
  margin-bottom: var(--espace-md);
  line-height: 1.8;
}

/* Boutons d'action */
.accueil__actions {
  display: flex;
  flex-direction: column;
  gap: var(--espace-sm);
  align-items: center;
}

/* --- Indicateur de défilement --- */
.accueil__scroll {
  position: absolute;
  bottom: var(--espace-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espace-xs);
  color: var(--couleur-gris);
  font-size: 0.8rem;
  text-shadow: 0 1px 2px rgba(245, 245, 240, 0.8);
}

.accueil__scroll-texte {
  font-family: var(--police-corps);
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Flèche animée vers le bas */
.accueil__scroll-fleche {
  display: block;
  width: 2px;
  height: 24px;
  background-color: var(--couleur-gris);
  position: relative;
}

.accueil__scroll-fleche::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--couleur-gris);
  border-bottom: 2px solid var(--couleur-gris);
}

/* Animation douce de la flèche de scroll */
@keyframes defilement {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.4; transform: translateX(-50%) translateY(8px); }
}

.accueil__scroll {
  animation: defilement 2.5s ease-in-out infinite;
}


/* ================================ */
/* SECTION : SAVOIR-FAIRE           */
/* Grille de 4 cartes métier        */
/* 1 colonne mobile, 2x2 desktop    */
/* ================================ */

.savoir-faire {
  background-color: rgba(245, 245, 240, 0.90);
}

/* Grille — 1 colonne sur mobile */
.savoir-faire__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--espace-md);
}

/* Carte métier — cliquable */
.carte-metier {
  display: block;
  border-radius: var(--arrondi);
  overflow: hidden;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}

.carte-metier:hover {
  box-shadow: 0 4px 16px rgba(92, 74, 30, 0.15);
  transform: translateY(-2px);
}

/* Image de la carte */
.carte-metier__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.carte-metier__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.carte-metier:hover .carte-metier__image img {
  transform: scale(1.03);
}

/* Texte de la carte */
.carte-metier__texte {
  padding: var(--espace-sm);
}

.carte-metier__titre {
  font-size: 1.15rem;
  margin-bottom: 0.25em;
  text-transform: uppercase;
  color: var(--couleur-brun-fonce);
}

.carte-metier__description {
  font-size: 0.85rem;
  color: var(--couleur-gris);
  line-height: 1.5;
}


/* ================================ */
/* SECTION : SECTIONS MÉTIER        */
/* Structure commune aux 4 sections */
/* Texte + galerie côte à côte      */
/* Alternance avec --inverse         */
/* ================================ */

.section-metier {
  background-color: rgba(255, 255, 255, 0.90);
}

/* Alternance de fond pour les sections inversées */
.section-metier--inverse {
  background-color: rgba(245, 245, 240, 0.90);
}

/* Corps : 1 colonne sur mobile */
.section-metier__corps {
  display: flex;
  flex-direction: column;
  gap: var(--espace-md);
}

/* Bloc texte */
.section-metier__texte {
  flex: 1;
}

.section-metier__texte p {
  margin-bottom: var(--espace-sm);
}

/* Liste des prestations */
.section-metier__liste {
  list-style: none;
  padding: 0;
}

.section-metier__liste li {
  padding: 0.5em 0;
  border-bottom: 1px solid var(--couleur-beige);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-metier__liste li:last-child {
  border-bottom: none;
}

.galerie__indication {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--couleur-gris);
  text-align: center;
  margin-bottom: 0;
}

/* --- Galeries de photos --- */
.galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: var(--espace-xs);
  flex: 1;
}

.galerie__item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.galerie__item img {
  width: 100%;
  min-height: 0;
  flex-shrink: 1;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--arrondi);
  transition: transform var(--transition);
}

.galerie__item:hover img {
  transform: scale(1.04);
}

.galerie__legende {
  display: none;
  flex-shrink: 0;
  padding: 0.4rem 0.2rem;
  font-size: 0.85rem;
  color: var(--couleur-brun);
  text-align: center;
  line-height: 1.3;
}

/* Diaporama — les images au-delà du groupe visible sont masquées */
.galerie[data-diaporama] .galerie__item {
  display: none;
}

.galerie[data-diaporama] .galerie__item--visible {
  display: flex;
}

/* Navigation du diaporama — centrée sous la grille */
.galerie__nav {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--espace-sm);
  padding-top: var(--espace-xs);
}

.galerie__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--couleur-beige);
  border-radius: 50%;
  color: var(--couleur-brun);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  line-height: 1;
}

.galerie__btn:hover {
  background-color: var(--couleur-brun);
  color: var(--couleur-fond);
  border-color: var(--couleur-brun);
}

.galerie__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.galerie__btn:disabled:hover {
  background: none;
  color: var(--couleur-brun);
  border-color: var(--couleur-beige);
}

.galerie__compteur {
  font-size: 0.8rem;
  color: var(--couleur-gris);
  font-family: var(--police-corps);
  min-width: 3em;
  text-align: center;
}


/* ================================ */
/* SECTION : L'ARTISAN              */
/* Portrait + citation, texte,      */
/* puis 3 valeurs en grille         */
/* ================================ */

.artisan {
  background-color: rgba(255, 255, 255, 0.90);
}

.artisan__corps {
  max-width: 800px;
  margin: 0 auto;
}

/* Bloc présentation — portrait + citation */
.artisan__presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--espace-md);
  margin-bottom: var(--espace-lg);
}

/* Portrait (image ronde) */
.artisan__portrait {
  width: 150px;
  height: 150px;
 /* border-radius: 50%;*/
  overflow: hidden;
 /* border: 3px solid var(--couleur-beige);*/
  flex-shrink: 0;
}

.artisan__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Citation — mise en valeur */
/*.artisan__citation {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--couleur-brun);
  position: relative;
  padding-left: 1.5em;
  border-left: 3px solid var(--couleur-ocre);
  text-align: left;
}*/

/* Texte de présentation */
.artisan__texte {
  margin-bottom: var(--espace-lg);
  line-height: 1.8;
}

/* Grille des 3 valeurs — 1 colonne mobile */
.artisan__valeurs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--espace-md);
}

.valeur {
  text-align: center;
  padding: var(--espace-sm);
}

.valeur__titre {
  font-size: 1.1rem;
  color: var(--couleur-brun);
  margin-bottom: var(--espace-xs);
}

.valeur__texte {
  font-size: 0.95rem;
  color: var(--couleur-gris);
  line-height: 1.6;
}


/* ================================ */
/* SECTION : CONTACT                */
/* Infos à gauche, formulaire       */
/* à droite. 1 colonne mobile       */
/* ================================ */

.contact {
  background-color: rgba(245, 245, 240, 0.90);
}

/* Corps du contact — 1 colonne mobile */
.contact__corps {
  display: flex;
  flex-direction: column;
  gap: var(--espace-lg);
}

/* --- Colonne informations --- */
.contact__infos {
  flex: 1;
}

.contact__nom {
  font-family: var(--police-titre);
  font-size: 1.4rem;
  color: var(--couleur-brun-fonce);
  margin-bottom: 0.25em;
}

.contact__metier {
  font-size: 1rem;
  color: var(--couleur-gris);
  font-style: italic;
  margin-bottom: var(--espace-md);
}

/* Adresse — pas d'italique par défaut */
.contact__coordonnees {
  font-style: normal;
  margin-bottom: var(--espace-md);
}

.contact__coordonnees p {
  margin-bottom: var(--espace-xs);
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--couleur-gris);
  margin-bottom: 0.15em;
}

.contact__zone {
  font-size: 0.95rem;
  color: var(--couleur-gris-fonce);
  line-height: 1.6;
}

/* --- Formulaire --- */
.contact__formulaire {
  flex: 1;
}

/* Champ de formulaire — conteneur */
.champ {
  margin-bottom: var(--espace-sm);
}

.champ__label {
  display: block;
  font-size: 0.9rem;
  color: var(--couleur-gris-fonce);
  margin-bottom: 0.35em;
}

/* Astérisque des champs requis */
.champ__label span {
  color: var(--couleur-brun);
}

/* Inputs, select et textarea — style unifié */
.champ__input,
.champ__select,
.champ__textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  font-family: var(--police-corps);
  font-size: 1rem;
  color: var(--couleur-gris-fonce);
  background-color: #fff;
  border: 1px solid var(--couleur-beige);
  border-radius: var(--arrondi);
  transition: border-color var(--transition);
}

.champ__input:focus,
.champ__select:focus,
.champ__textarea:focus {
  border-color: var(--couleur-ocre);
  outline: none;
}

/* Textarea — hauteur fixée par rows, redimensionnable verticalement */
.champ__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select — apparence native conservée pour accessibilité */
.champ__select {
  cursor: pointer;
}

/* Compteur de caractères */
.champ__compteur {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--couleur-gris);
  margin-top: 0.25em;
}

/* Champ anti-spam — totalement invisible */
.champ--invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mention champs obligatoires */
.contact__mention {
  font-size: 0.85rem;
  color: var(--couleur-gris);
  margin-bottom: var(--espace-sm);
}


/* ================================ */
/* SECTION : PIED DE PAGE (Footer)  */
/* Fond brun foncé, texte clair     */
/* Deux colonnes : marque + nav     */
/* Mobile : centré en une colonne   */
/* Desktop : côte à côte            */
/* ================================ */

.pied-de-page {
  padding: var(--espace-lg) 0 var(--espace-md);
  background-color: rgba(60, 28, 15, 0.75);
  color: var(--couleur-beige);
}

.pied-de-page__contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espace-lg);
  text-align: center;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--espace-sm);
}

/* --- Colonne marque --- */
.pied-de-page__col--marque {
  display: flex;
  justify-content: center;
}

.pied-de-page__marque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espace-xs);
}

.pied-de-page__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.9;
}

.pied-de-page__marque-texte {
  text-align: center;
}

.pied-de-page__nom {
  display: block;
  font-family: var(--police-titre);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--couleur-fond);
  line-height: 1.2;
}

.pied-de-page__accroche {
  display: block;
  font-size: 0.85rem;
  color: var(--couleur-ocre);
  margin-bottom: var(--espace-xs);
}

.pied-de-page__copyright {
  display: block;
  font-size: 0.75rem;
  color: var(--couleur-beige);
  opacity: 0.8;
}

.pied-de-page__design {
  display: block;
  font-size: 0.75rem;
  color: var(--couleur-beige);
  opacity: 0.8;
  margin-top: 0.25em;
}

/* --- Colonne navigation --- */
.pied-de-page__col--nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espace-xs);
}

.pied-de-page__liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--espace-xs) var(--espace-md);
  list-style: none;
}

.pied-de-page__lien {
  font-size: 0.9rem;
  color: var(--couleur-beige);
  transition: color var(--transition);
}

.pied-de-page__lien:hover {
  color: var(--couleur-ocre);
}

.pied-de-page__lien--souligne {
  text-decoration: underline;
}

.pied-de-page__liens-secondaires {
  display: flex;
  justify-content: center;
  gap: var(--espace-md);
}


/* ================================ */
/* SECTION : LIGHTBOX               */
/* Overlay plein écran, image        */
/* centrée, navigation prev/next    */
/* Masquée par défaut               */
/* ================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;

  /* Masquée par défaut */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

/* Affichage quand aria-hidden="false" (activé par JS) */
.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* Image */
.lightbox__contenu {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--arrondi);
}

/* Boutons communs — fermer, prev, next */
.lightbox__fermer,
.lightbox__precedent,
.lightbox__suivant {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  padding: var(--espace-sm);
  opacity: 0.7;
  transition: opacity var(--transition);
  line-height: 1;
}

.lightbox__fermer:hover,
.lightbox__precedent:hover,
.lightbox__suivant:hover {
  opacity: 1;
}

/* Bouton fermer — haut droite */
.lightbox__fermer {
  top: var(--espace-sm);
  right: var(--espace-sm);
  font-size: 2.5rem;
}

/* Bouton précédent — à gauche */
.lightbox__precedent {
  left: var(--espace-sm);
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* Bouton suivant — à droite */
.lightbox__suivant {
  right: var(--espace-sm);
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox__legende {
  color: #F5F5F0;
  text-align: center;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  max-width: 80%;
  margin: 0 auto;
}


/* ================================================================ */
/* MEDIA QUERIES                                                     */
/* Mobile first — tablette (768px), desktop (1024px)                */
/* ================================================================ */


/* ================================ */
/* TABLETTE — min 768px             */
/* ================================ */

@media (min-width: 768px) {

  /* Titres de section plus grands */
  .section__titre {
    font-size: 2rem;
  }

  /* Accueil — titre plus grand */
  .accueil__titre {
    font-size: 3rem;
  }

  /* Boutons d'action en ligne */
  .accueil__actions {
    flex-direction: row;
    justify-content: center;
  }

  /* Savoir-faire — grille 2 colonnes */
  .savoir-faire__grille {
    grid-template-columns: 1fr 1fr;
  }

  /* Artisan — portrait centré */
  .artisan__presentation {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Valeurs — 3 colonnes */
  .artisan__valeurs {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact — 2 colonnes */
  .contact__corps {
    flex-direction: row;
  }
}


/* ================================ */
/* DESKTOP — min 1024px             */
/* ================================ */

@media (min-width: 1024px) {

  /* Header — hamburger masqué, menu horizontal */
  .header__menu-bouton {
    display: none;
  }

  .header__nav {
    position: static;
    width: auto;
    max-height: none;
    overflow-y: visible;
    visibility: visible;
    transform: none;
    background: none;
    border-left: none;
    box-shadow: none;
    padding-top: 0;
    flex: 1;
  }

  .header__liste {
    flex-direction: row;
    gap: var(--espace-sm);
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .header__liste li {
    border-bottom: none;
  }

  .header__lien {
    font-size: 0.9rem;
    padding: var(--espace-xs);
    display: inline-block;
  }

  .header__menu-bouton {
    margin-left: 0;
  }

  /* Espacement des contenus de section */
  .section__contenu {
    padding: var(--espace-xl) var(--espace-md);
  }

  /* Sections métier — 2 colonnes côte à côte, texte centré verticalement */
  .section-metier__corps {
    flex-direction: row;
    align-items: center;
  }

  /* Section inversée — galerie à gauche, texte à droite */
  .section-metier--inverse .section-metier__corps {
    flex-direction: row-reverse;
  }

  /* Texte et galerie prennent chacun la moitié */
  .section-metier__texte,
  .galerie {
    flex: 1;
    min-width: 0;
  }

  /* Footer — deux colonnes côte à côte */
  .pied-de-page__contenu {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: var(--espace-xl);
  }

  .pied-de-page__col--marque {
    justify-content: flex-start;
  }

  .pied-de-page__marque {
    flex-direction: row;
    align-items: flex-start;
  }

  .pied-de-page__marque-texte {
    text-align: left;
  }

  .pied-de-page__col--nav {
    flex: 1;
    align-items: center;
  }
}
