/* Thème CLAIR global — rendu fidèle à l'original (fond blanc, en-tête centré
   sans bandeau, texte noir). Chargé après site.css sur toutes les pages. */

:root {
  --page-bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #2a2723;
  --muted: #6b665e;
  --line: rgba(0, 0, 0, 0.10);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  --site-background-offset: 0px;
}

/* Fond blanc, on neutralise les voiles sombres */
body {
  background: #fff;
  color: var(--text);
}
body::after { display: none; }
/* Fond blanc + arbres/papillons sur toutes les pages (comme l'accueil) */
body.has-page-background::before {
  background: #fff url("/assets/remote/wp-content/uploads/2014/12/background.jpg") center var(--site-background-offset) / 100% auto no-repeat !important;
}

/* ---- En-tête : logo centré en haut, menu centré dessous, sans bandeau ---- */
.site-header {
  position: relative;
  z-index: 100;            /* l'en-tête (et son menu) passe au-dessus du contenu */
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}
.header-inner {
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  min-height: auto;
  padding: 1.5rem 0 0.9rem;
}
.brand { justify-content: center; }
.brand img { height: 60px; }
.site-nav { width: 100%; display: flex; justify-content: center; }
.nav-list { justify-content: center; }
.nav-link { color: #2a2723; }
.nav-link:hover,
.nav-link.is-active { color: #fea621; }
.nav-link::after { background: linear-gradient(90deg, #fea621, transparent); }
.nav-toggle { color: #2a2723; border-color: rgba(0, 0, 0, 0.15); }

/* La visionneuse passe devant l'en-tête et les commandes des galeries. */
.lightbox { z-index: 3000; }

/* ---- Cartes & sections en clair ---- */
.page-hero-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.section-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.story-copy p,
.text-columns p { color: var(--text); }
.portfolio-card { background: #f0ece4; border-color: var(--line); }
.portfolio-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62)); }
.portfolio-overlay h3 { color: #fff; }
.portfolio-overlay p { color: rgba(255, 255, 255, 0.85); }

/* Boutons secondaires en clair */
.button-secondary {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}

/* Pied de page discret sur blanc */
.site-footer { color: var(--muted); background: transparent; border-top: 1px solid var(--line); }

/* Masonry portfolio légendes lisibles */
.portfolio-masonry-live figcaption { color: #fff; }

/* Page Espace client : accès galerie */
.client-access__cta { margin: 1.6rem 0 0.4rem; }
.client-access__cta .button { text-decoration: none; }
.client-access__help { font-size: 0.95rem; margin-top: 1.1rem; }
.client-access__help a { color: #fea621; }

/* ====== Retouches pages intérieures ====== */

/* Titres de page élégants (serif) — plus jolis que les capitales Montserrat */
.page-hero-card .page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

/* Portfolio : une simple phrase centrée, sans grosse carte */
.portfolio-intro-text {
  text-align: center;
  max-width: 60ch;
  margin: 1rem auto 2.4rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: #4a453e;
}

/* Qui suis-je : la carte photo s'ajuste à la photo (plus de vide) */
.story-grid { align-items: start; }
.portrait-card { padding: 0; overflow: hidden; }
.portrait-card img { aspect-ratio: auto; border-radius: var(--radius); display: block; }

/* ====== Contact ====== */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.contact-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.contact-card a, .contact-card p { color: var(--text); margin: 0; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: #fea621; }

/* Formulaire : champs avec contours nets */
.contact-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fea621;
  box-shadow: 0 0 0 3px rgba(254, 166, 33, 0.16);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form .form-note { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 1.2rem; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* Formulaire contact : statut d'envoi + champ anti-spam invisible */
.form-status {
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}
.form-status--ok { background: rgba(83, 160, 91, 0.12); color: #2f6b36; border: 1px solid rgba(83, 160, 91, 0.35); }
.form-status--err { background: rgba(211, 88, 77, 0.10); color: #a03a31; border: 1px solid rgba(211, 88, 77, 0.35); }
.form-status--err a { color: #fea621; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Pied de page : copyright centré (toutes pages) */
.footer-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}

/* Portfolio : resserrer l'espace autour de la phrase d'intro */
.portfolio-page .page-hero { padding: 0.4rem 0 0; }
.portfolio-intro-text { margin: 0.3rem auto 1.2rem; }

/* Logo agrandi, le menu descend d'autant */
.brand img { height: 92px; }
.header-inner { gap: 0.75rem; }

/* Qui suis-je : mots mis en valeur */
.gold { color: #fea621; }

/* Menu descendu : évite que le papillon du fond chevauche « Accueil » */
.site-nav { margin-top: 1.1rem; }
.header-inner { padding-bottom: 1.2rem; }

/* Pages de reportage (galeries portfolio) en clair */
.masonry-gallery a {
  border: 1px solid var(--line);
  background: #f4f0e9;
  border-radius: 14px;
}
.masonry-gallery img { display: block; width: 100%; height: auto; }
.gallery-page .section-card { background: rgba(255, 255, 255, 0.92); }

/* Navigation mobile commune aux pages du site. */
.nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  color: #2a2723;
  cursor: pointer;
}
.nav-toggle__icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-toggle__label { font-size: 0.78rem; font-weight: 500; line-height: 1; }
.nav-toggle__close { display: none; }
.site-nav.is-open .nav-toggle__open { display: none; }
.site-nav.is-open .nav-toggle__close { display: block; }
.nav-toggle:focus-visible, .nav-link:focus-visible {
  outline: 2px solid #b78332;
  outline-offset: 4px;
}

@media (min-width: 821px) {
  .portfolio-page .page-title, .client-access .page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.1;
  }
  .portfolio-page .page-title { text-align: center; }
  .client-access .page-title { font-size: clamp(2rem, 4vw, 2.8rem); }
  .client-page .page-main { max-width: 760px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root {
    --layout: calc(100% - 2.5rem);
    --site-background-offset: 91px; /* Repli avant la mesure de l'en-tête. */
  }
  .site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #f0ece5;
  }
  .header-inner {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    min-height: 88px;
    padding: 0.75rem 0;
  }
  .brand { flex: 1; min-width: 0; justify-content: flex-start; }
  .brand img { width: min(196px, 100%); height: auto; }
  .site-nav {
    position: static;
    width: auto;
    flex: 0 0 auto;
    margin: 0;
  }
  .nav-toggle {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 94px;
    height: 44px;
    padding: 0 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-list {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 200;
    background: #fff;
    border: 1px solid #e6e1d8;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(42, 39, 35, 0.12);
    gap: 4px;
    padding: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
  }
  .nav-list li { width: 100%; }
  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    border-radius: 8px;
  }
  .nav-link:hover { color: #835b1b; background: #faf7f0; }
  .nav-link.is-active { color: #835b1b; background: #faf1e1; font-weight: 600; }
  .nav-link::after { display: none; }

  /* Marges, titres et formulaires : une même échelle sur toutes les pages. */
  .page-main { padding: 1.5rem 0 2.5rem; min-width: 0; }
  .page-hero { padding: 0 0 1rem; }
  .page-hero-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .page-title, .page-hero-card .page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 8.6vw, 2.75rem);
    font-weight: 500;
    line-height: 1.12;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: break-word;
  }
  .eyebrow { margin-bottom: 0.75rem; font-size: 0.65rem; letter-spacing: 0.16em; }
  .eyebrow::before { width: 2rem; }
  .page-subtitle { margin-top: 0.85rem; font-size: 0.96rem; line-height: 1.75; }
  .section { margin-top: 1.5rem; }
  .section-card { padding: 1.25rem; border-radius: 14px; box-shadow: none; }
  .contact-form { gap: 1.1rem; }
  .contact-form .form-row { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .contact-form .field { margin-bottom: 0; min-width: 0; gap: 0.4rem; }
  .contact-form label { margin: 0; font-size: 0.7rem; }
  .contact-form input, .contact-form textarea { min-height: 48px; font-size: 16px; padding: 0.75rem; }
  .button, .button-secondary { min-height: 48px; letter-spacing: 0.08em; }

  /* Portfolio : les légendes restent sous les photos sur écran tactile. */
  .portfolio-page .page-hero { padding: 0; }
  .portfolio-intro-text { text-align: left; margin: 0.75rem 0 0; font-size: 1.15rem; line-height: 1.5; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .portfolio-card { min-height: 0; border: 0; border-radius: 0; background: none; align-self: start; }
  .portfolio-card img { height: auto; border-radius: 10px; }
  .portfolio-card:hover img { transform: none; }
  .portfolio-overlay { position: static; padding: 0.85rem 0 0; background: none; }
  .portfolio-overlay h3 { color: var(--text); font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
  .portfolio-overlay p { color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; }

  /* Reportages : toute la largeur utile est consacrée aux images. */
  .gallery-page .section-card { padding: 0; border: 0; background: none; }
  .gallery-page .section { margin-top: 0.5rem; }
  .masonry-gallery { column-count: 2; column-gap: 0.75rem; }
  .masonry-gallery a { margin-bottom: 0.75rem; border: 0; border-radius: 8px; }
  .masonry-gallery a:hover img { transform: none; filter: none; }

  /* Contact : le texte ne doit jamais forcer la largeur d'une colonne. */
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .contact-card { min-width: 0; padding: 1rem; box-shadow: none; }
  .contact-card a, .contact-card p { overflow-wrap: anywhere; font-size: 0.94rem; }
  .contact-page .section > .section-card { background: #faf9f6; }

  /* Présentation : le portrait précède le texte sur mobile. */
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 0.5rem; }
  .story-grid .portrait-card { grid-row: 1; width: min(100%, 360px); justify-self: center; padding: 0; border: 0; }
  .portrait-card img { border-radius: 12px; }
  .story-copy { padding: 0; border: 0; background: none; font-size: 0.96rem; line-height: 1.8; }
  .story-copy p { margin-bottom: 1.25rem; }

  /* Espace client : connexion lisible, sans cadre qui réduit les champs. */
  .client-page .page-main { max-width: 560px; }
  .client-page .section { margin-top: 0; }
  .client-access { padding: 0; border: 0; background: none; }
  .client-login-form { margin-top: 1.5rem; }
  .client-access__help { font-size: 0.85rem; }

  .site-footer { padding: 0 0 max(1.25rem, env(safe-area-inset-bottom)); }
  .footer-inner { border-top: 0; padding-top: 1rem; font-size: 0.72rem; line-height: 1.6; }
  .lightbox { padding: 12px; }
  .lightbox img { border-radius: 8px; max-height: calc(100dvh - 100px); }
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .masonry-gallery { column-count: 1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
  }
  .contact-card h3 { margin: 0; font-size: 0.62rem; letter-spacing: 0.08em; }
  .contact-form .button { width: 100%; }
}
