/* ============================================================
   COTTE STUDIO — Feuille de style
   Identité : bleu franc, noir profond, accent brique,
   motif rayé signature, typographie massive.
   ------------------------------------------------------------
   Sommaire :
     1. Polices (@font-face) + variables
     2. Réinitialisation & base
     3. Utilitaires (sections, tags, rayures, reveal)
     4. Navigation
     5. Hero
     6. Présentation (about)
     7. Projets
     8. Services
     9. Contact
    10. Footer
    11. Responsive
   ============================================================ */


/* ------------------------------------------------------------
   1. POLICES
   ------------------------------------------------------------
   Muro (logo) est installé dans /fonts et activé ci-dessous.
   Deux styles disponibles :
     - 'Muro'       → Muro.otf       (droit — utilisé pour le logo)
     - 'Muro Slant' → Muroslant.otf  (penché — variante)
   Pour passer le logo en penché : dans --font-logo (plus bas),
   remplace 'Muro' par 'Muro Slant'.

   La police de texte Neue Haas Grotesk Display Pro est installée
   dans /fonts (3 graisses : 400 / 500 / 700) et activée plus bas.
------------------------------------------------------------ */

/* --- Logo : Muro --- */
@font-face {
  font-family: 'Muro';
  src: url('fonts/Muro.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Muro Slant';
  src: url('fonts/Muroslant.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Texte : Neue Haas Grotesk Display Pro --- */
@font-face {
  font-family: 'Neue Haas Grotesk Display Pro';
  src: url('fonts/NeueHaasDisplay-Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Display Pro';
  src: url('fonts/NeueHaasDisplay-Mediu.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Display Pro';
  src: url('fonts/NeueHaasDisplay-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Couleurs de la marque --- */
  --blue:        #3a5bc7;   /* bleu Klein vif — LA couleur de la marque */
  --blue-bright: #4a6bde;   /* variante plus claire pour survols */
  --black:       #1a1a1a;   /* noir profond — texte & formes */
  --brick:       #82241b;   /* rouge brique / bordeaux — touche accent */
  --white:       #f6f5f1;   /* blanc cassé (papier) */
  --pure-white:  #ffffff;

  /* --- Typographie --- */
  /* Logo : Muro si dispo, sinon un grotesque net (repli plus léger,
     pour éviter le rendu ultra-gras et les lettres collées) */
  --font-logo: 'Muro', 'Helvetica Neue', Arial, sans-serif;
  /* Texte : Neue Haas Grotesk Display Pro, repli Inter/grotesque */
  --font-text: 'Neue Haas Grotesk Display Pro', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* --- Rythme --- */
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1400px;
}


/* ------------------------------------------------------------
   2. RÉINITIALISATION & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  font-size: 1.0625rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

strong { font-weight: 600; }

/* Surlignages colorés */
.hl-blue  { color: var(--blue); }
.hl-brick { color: var(--brick); }


/* ------------------------------------------------------------
   3. UTILITAIRES
   ------------------------------------------------------------ */

/* Étiquette de section (petit label en capitales) */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 2.75rem;
}
.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--brick);
}
.section-tag--light { color: var(--white); }
.section-tag--light::before { background: var(--white); }

/* Motif rayé signature : bandes noires & blanches horizontales */
.stripes {
  height: 46px;
  background: repeating-linear-gradient(
    to bottom,
    var(--black) 0,
    var(--black) 6px,
    var(--pure-white) 6px,
    var(--pure-white) 12px
  );
}

/* Emplacements images : bloc coloré + nom de fichier + description */
.img-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem;
  color: var(--white);
  overflow: hidden;
  border: 2px solid var(--black);
}
/* Petit motif de repère graphique en fond du placeholder */
.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 22px,
    rgba(0,0,0,0.12) 22px,
    rgba(0,0,0,0.12) 24px
  );
  pointer-events: none;
}
/* Photo réelle déposée dans un emplacement : elle recouvre le repère */
.img-placeholder img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-placeholder--tall { aspect-ratio: 3 / 4; }
.img-placeholder__file {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  background: var(--black);
  color: var(--white);
  padding: 0.35rem 0.75rem;
}
.img-placeholder__desc {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  max-width: 22ch;
  opacity: 0.95;
}

/* Animation d'apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* ------------------------------------------------------------
   4. NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  background: transparent;
  transition: background 0.35s ease, padding 0.35s ease;
}
/* État "réduit" (ajouté par JS au défilement) */
.nav.is-scrolled {
  background: var(--black);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav__brand { display: flex; align-items: center; gap: 0.5rem; color: var(--white); }

/* Logo SVG (fichier de marque) en blanc — utilisé header + footer */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  fill: var(--white);
}
/* Taille header : petit, aligné à gauche, centré verticalement */
.nav__brand .brand-logo {
  height: 1.35rem;   /* net et compact pour la barre de nav */
  width: auto;
}
.nav__brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.85;
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  background: var(--brick);
  padding: 0.55rem 1.1rem;
  color: var(--white) !important;
}
.nav__cta:hover { background: var(--blue-bright); }

/* Bouton hamburger (caché sur desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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); }


/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--blue);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--pad-x) 4rem;
  overflow: hidden;
}

/* Filigrane : logo COTTE exact, grand, centré, bleu foncé, discret.
   Reste DERRIÈRE le contenu (z-index 0 < .hero__inner z-index 1). */
.hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(118vw, 1250px); /* grand ; débordement latéral rogné par overflow:hidden du hero */
  height: auto;              /* ratio préservé, aucune déformation */
  fill: #1e2d63;             /* bleu foncé sur le fond bleu de la marque */
  opacity: 0.15;             /* texture discrète, ne concurrence pas le texte */
  z-index: 0;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

/* Logo massif (fichier SVG) */
.logo {
  margin: 0;
  line-height: 0; /* évite l'espace fantôme sous le SVG inline */
}
.hero__logo {
  display: block;
  width: min(82vw, 780px); /* massif sur desktop, contenu sur mobile */
  max-width: 100%;
  height: auto;            /* ratio préservé, aucune déformation */
  margin: 0 auto;          /* centrage horizontal */
  fill: var(--black);      /* noir profond de la marque */
}
.logo__sub {
  margin-top: 1.25rem;
  font-size: clamp(0.8rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--black);
}
.logo__dash { color: var(--brick); font-weight: 700; }

.hero__place {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-block;
  background: var(--black);
  padding: 0.4rem 1rem;
}

/* Indicateur de défilement */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--black);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__scroll svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--black);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}


/* ------------------------------------------------------------
   6. PRÉSENTATION
   ------------------------------------------------------------ */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad-x);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.about__text p { margin-bottom: 1.15rem; max-width: 52ch; color: #333; }
.about__text p strong { color: var(--black); }

.about__facts {
  list-style: none;
  margin-top: 2.25rem;
  border-top: 2px solid var(--black);
}
.about__facts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--black);
  font-weight: 500;
  font-size: 1rem;
}
.about__facts-num {
  font-family: var(--font-logo);
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
}


/* ------------------------------------------------------------
   7. PROJETS
   ------------------------------------------------------------ */
.projects {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad-x) clamp(4rem, 9vw, 8rem);
}
.projects__head { margin-bottom: 3rem; }
.projects__title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project {
  background: var(--pure-white);
  border: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project:hover {
  transform: translate(-5px, -5px);
  box-shadow: 10px 10px 0 var(--blue);
}
.project .img-placeholder { border: 0; border-bottom: 2px solid var(--black); }

/* Photo de présentation cliquable (ouvre la galerie du projet) */
.project__cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}
.project__cover .img-placeholder img { transition: transform 0.5s ease; }
.project__cover:hover .img-placeholder img,
.project__cover:focus-visible .img-placeholder img { transform: scale(1.04); }
.project__cover:focus-visible { outline: 3px solid var(--brick); outline-offset: -3px; }

/* Pastille « Voir les photos » posée sur la photo */
.project__cover-hint {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  transform: translateY(100%);
  transition: transform 0.35s ease, background 0.35s ease;
}
.project__cover:hover .project__cover-hint,
.project__cover:focus-visible .project__cover-hint { transform: translateY(0); }
.project__cover:hover .project__cover-hint { background: var(--blue); }
.project__cover-count { opacity: 0.7; letter-spacing: 0.05em; }

.project__body { padding: 1.35rem 1.4rem 1.6rem; }
.project__index {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brick);
}
.project__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.35rem 0 0.25rem;
  letter-spacing: -0.01em;
}
.project__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
}
.project__desc { font-size: 0.95rem; color: #444; }


/* ------------------------------------------------------------
   7 bis. GALERIE PROJET (fenêtre plein écran)
   ------------------------------------------------------------ */
body.has-lightbox { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.92);
}
.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  height: 100%;           /* hauteur fixe : la photo occupe la place restante */
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--white);
  border: 2px solid var(--black);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  animation: lb-in 0.3s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.lightbox__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.85rem;
}
.lightbox__meta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
}
.lightbox__title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.2rem;
}
.lightbox__close {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease;
}
.lightbox__close:hover { background: var(--brick); }
.lightbox__close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: square;
}

.lightbox__stage {
  flex: 1 1 auto;
  display: flex;
  /* stretch (et non center) : la colonne photo + légende est bornée par
     la hauteur de la scène, sinon elle déborde sur les vignettes. */
  align-items: stretch;
  gap: 0.75rem;
  min-height: 0;
}
.lightbox__figure {
  flex: 1;
  min-width: 0;
  min-height: 0;          /* autorise la photo à se réduire en hauteur */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
/* La photo occupe toute la place laissée libre par l'en-tête, la légende
   et les vignettes — quel que soit son format, portrait ou paysage.
   L'image reste entière (object-fit: contain), jamais rognée. */
.lightbox__frame {
  position: relative;
  background: var(--black);
  border: 2px solid var(--black);
  flex: 1 1 auto;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}
.lightbox__fallback {
  width: 100%;
  height: 100%;
  border: 0;
  aspect-ratio: auto;
}
.lightbox__caption {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: #444;
}
.lightbox__counter {
  flex: none;
  font-family: var(--font-logo);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
}

.lightbox__nav {
  flex: none;
  align-self: center;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  background: var(--pure-white);
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.lightbox__nav:hover { background: var(--blue); color: var(--white); }
.lightbox__nav--prev:hover { transform: translateX(-3px); }
.lightbox__nav--next:hover { transform: translateX(3px); }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lightbox__thumbs {
  flex: none;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.lightbox__thumb {
  flex: none;
  width: 5.5rem;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--blue);
  border: 2px solid var(--black);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
  /* Repli quand la photo n'existe pas encore : on affiche son numéro */
  color: var(--white);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 0.9rem;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-active {
  opacity: 1;
  box-shadow: inset 0 0 0 3px var(--brick);
}


/* ------------------------------------------------------------
   8. SERVICES (fond bleu)
   ------------------------------------------------------------ */
.services {
  background: var(--blue);
  color: var(--white);
  padding: clamp(4rem, 9vw, 8rem) var(--pad-x);
}
.services__head {
  max-width: var(--maxw);
  margin: 0 auto 3.5rem;
}
.services__title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.services__lead { font-size: clamp(1rem, 2vw, 1.35rem); max-width: 46ch; opacity: 0.92; }

/* Deux blocs côte à côte, traitement strictement identique */
.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch; /* même hauteur → deux offres à part entière */
}
.service-block {
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(246,245,241,0.4);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-block:hover {
  transform: translate(-5px, -5px);
  box-shadow: 10px 10px 0 var(--black);
}
.service-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}
.service-block__num {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--black);
}
.service-block__mark { width: 34px; height: 34px; fill: var(--black); flex-shrink: 0; }
.service-block__title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.service-block__intro {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 42ch;
}
.service-block__list { list-style: none; margin-top: auto; }
.service-block__list li {
  padding: 0.7rem 0;
  border-top: 2px solid rgba(246,245,241,0.35);
  font-weight: 500;
  font-size: 1.02rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.service-block__list li::before {
  content: "—";
  color: var(--black);
  font-weight: 700;
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   9. CONTACT
   ------------------------------------------------------------ */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad-x);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact__title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}
.contact__list { list-style: none; }
.contact__list li {
  padding: 1.1rem 0;
  border-top: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact__list li:last-child { border-bottom: 2px solid var(--black); }
.contact__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--brick);
  font-weight: 600;
}
.contact__list a, .contact__list li > span:last-child {
  font-size: 1.3rem;
  font-weight: 500;
}
.contact__list a:hover { color: var(--blue); }

/* Formulaire */
.contact__form {
  background: var(--black);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.55rem;
  color: rgba(246,245,241,0.75);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 2px solid rgba(246,245,241,0.4);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.25s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(246,245,241,0.4); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue-bright); }
.field textarea { resize: vertical; }
/* État d'erreur (ajouté par JS) */
.field.has-error input,
.field.has-error textarea { border-color: var(--brick); }

.btn-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border: 0;
  font-family: var(--font-logo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn-submit:hover { background: var(--brick); }

.form-feedback {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-feedback.is-success { color: #7ce0a0; }
.form-feedback.is-error   { color: #ff9a8f; }

/* --- Formulaire de qualification : rangées, select, radios, case --- */

/* Champ piège anti-spam : totalement hors écran */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rangée à 2 colonnes → 1 colonne sous 560px.
   row-gap 0 : l'espacement vertical reste géré par le margin-bottom des .field */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

/* Intitulé du groupe de choix, calqué sur les <label> des .field */
.field__legend {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.55rem;
  color: rgba(246,245,241,0.75);
}

/* Menu déroulant : même habillage que les inputs + chevron blanc */
.field select {
  width: 100%;
  background: transparent;
  border: 2px solid rgba(246,245,241,0.4);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 2.4rem 0.8rem 0.9rem;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23f6f5f1' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
}
.field select:focus { outline: none; border-color: var(--blue-bright); }
.field.has-error select { border-color: var(--brick); }
/* Lisibilité de la liste déroulante native (fond clair du système) */
.field select option { color: #1a1a1a; }

/* Groupe de boutons radio présentés comme des choix encadrés */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.field .radio-choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid rgba(246,245,241,0.4);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;      /* neutralise le style .field label */
  text-transform: none;        /* idem */
  color: rgba(246,245,241,0.9);
  margin-bottom: 0;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  user-select: none;
}
.field .radio-choice:hover { border-color: rgba(246,245,241,0.7); }
/* Puce ronde personnalisée */
.radio-choice input {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 2px solid rgba(246,245,241,0.5);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.radio-choice input:checked { border-color: var(--blue-bright); }
.radio-choice input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue-bright);
}
.radio-choice input:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
/* Choix sélectionné : encadré mis en avant */
.field .radio-choice:has(input:checked) {
  border-color: var(--blue-bright);
  background: rgba(58,91,199,0.14);
  color: var(--white);
}
.field.has-error .radio-choice { border-color: var(--brick); }
.field.has-error .field__legend { color: #ff9a8f; }

/* Case à cocher RGPD : texte courant (pas en capitales) */
.field--check { margin-top: 0.25rem; }
.field .checkbox-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;      /* neutralise le style .field label */
  text-transform: none;        /* idem */
  color: rgba(246,245,241,0.85);
  margin-bottom: 0;
}
.checkbox-choice input {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  border: 2px solid rgba(246,245,241,0.5);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.checkbox-choice input:checked {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
}
.checkbox-choice input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.checkbox-choice input:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.field--check.has-error .checkbox-choice { color: #ff9a8f; }
.field--check.has-error .checkbox-choice input { border-color: var(--brick); }

/* Sous 560px : les rangées et les choix repassent en 1 colonne */
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }
}


/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; }
/* Logo SVG du footer : plus grand, centré, responsive */
.footer__logo {
  width: clamp(200px, 42vw, 320px);
  height: auto;
  margin: 0 auto 0.4rem;
}
.footer__sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  opacity: 0.8;
}
.footer__meta { font-size: 0.9rem; opacity: 0.85; margin-bottom: 0.5rem; }
.footer__meta a:hover { color: var(--blue); }
.footer__copy { font-size: 0.8rem; opacity: 0.55; }

/* Liens légaux discrets dans le pied de page */
.footer__legal {
  margin-top: 1.1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 0.78rem;
  opacity: 0.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer__legal a:hover { opacity: 1; color: var(--blue); }

/* Lien "politique de confidentialité" dans la case RGPD (sur fond noir) */
.checkbox-choice a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-choice a:hover { color: var(--blue-bright); }


/* ------------------------------------------------------------
   10 bis. PAGES LÉGALES (.legal) — mentions légales & confidentialité
   ------------------------------------------------------------ */

/* Sur ces pages, pas de hero bleu : la nav doit rester noire et lisible
   dès le haut de page (le texte de la nav est blanc). */
.page-legal .nav { background: var(--black); }

/* Conteneur de lecture : colonne centrée, aérée */
.legal {
  max-width: 760px;
  margin: 0 auto;
  /* le padding-top dégage la barre de nav fixe */
  padding: clamp(7rem, 14vh, 9.5rem) var(--pad-x) clamp(4rem, 9vw, 7rem);
  color: var(--black);
}
.legal h1 {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.legal__updated {
  font-size: 0.85rem;
  color: rgba(26,26,26,0.55);
  margin-bottom: 2.75rem;
}
.legal h2 {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  margin-bottom: 0.85rem;
  border-top: 2px solid var(--black);
}
.legal p { margin-bottom: 1.1rem; max-width: 68ch; }
.legal ul { margin: 0 0 1.1rem 1.25rem; max-width: 68ch; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { font-weight: 600; }
.legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word; /* évite tout débordement des emails/URL sur mobile */
}
.legal a:hover { color: var(--brick); }


/* ------------------------------------------------------------
   11. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 420px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; } /* les deux blocs l'un sous l'autre */
}

@media (max-width: 640px) {
  /* Menu mobile déroulant */
  .nav__toggle { display: flex; z-index: 2; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    gap: 2.25rem;
    font-size: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.5rem; }
  .nav__cta { padding: 0.7rem 1.5rem; }

  .projects__grid { grid-template-columns: 1fr; }

  /* Galerie : la photo d'abord, les flèches en dessous */
  .lightbox__stage { flex-wrap: wrap; justify-content: center; align-content: center; }
  .lightbox__figure { flex: 1 1 100%; order: -1; min-height: 0; }
  .lightbox__nav { width: 3rem; height: 3rem; }
  .lightbox__thumb { width: 4.5rem; }

  .hero__watermark { width: 135vw; } /* un peu plus grand pour rester présent sur mobile */
}

/* Écrans tactiles : pas de survol, la pastille « Voir les photos » reste visible */
@media (hover: none) {
  .project__cover-hint { transform: translateY(0); }
}
