/* ==========================================================================
   JB Provence Photography — styles communs à toutes les pages
   (couleurs, typographie, en-tête, menu, pied de page, boutons)
   ========================================================================== */

:root {
  /* Couleurs */
  --ink: #171611;          /* texte principal */
  --ink-soft: #241f16;     /* liens du menu */
  --paper: #fcfaf5;        /* fond clair */
  --cream: #eee3d4;        /* fond beige */
  --sand: #b9a982;         /* en-tête */
  --sand-dark: #756747;    /* bouton « Me contacter » */
  --gold: #b38a45;         /* accent décoratif, gros titres */
  --gold-text: #8a6631;    /* accent pour les petits textes (contraste suffisant) */
  --muted: #5f584f;        /* texte secondaire */
  --lavender: #dacdd3;     /* pied de page */
  --dark: #28231c;         /* bandeau sombre */
  --line: #d9cebc;

  /* Typographie */
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  /* Mise en page */
  --gutter: 8vw;
  --header-height: 132px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(138, 102, 49, .45); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typographie partagée ---------- */

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

em { color: var(--gold); }

.section { padding: 110px var(--gutter); }
.section h2 { font-size: clamp(40px, 5vw, 67px); }

/* ---------- Boutons ---------- */

.button {
  display: inline-block;
  padding: 14px 19px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover,
.button:focus-visible { background: var(--gold); border-color: var(--gold); }

.text-link {
  padding: 11px 0;
  border-bottom: 1px solid #8b7a5b;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link:hover,
.text-link:focus-visible { color: var(--gold-text); border-color: currentColor; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding: 10px 2.5vw;
  background: var(--sand);
  border-bottom: 1px solid #cfc2a7;
  transition: min-height .28s ease, box-shadow .28s ease;
}
.site-header.is-scrolled { min-height: 100px; box-shadow: 0 5px 18px rgba(57, 43, 26, .1); }

.brand { flex-shrink: 0; display: block; }
.brand img {
  display: block;
  width: 150px;
  height: 112px;
  object-fit: contain;
  transition: width .28s ease, height .28s ease;
}
.site-header.is-scrolled .brand img { width: 112px; height: 80px; }

.site-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.services-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(71, 58, 36, .28);
  border-radius: 999px;
  background: rgba(247, 240, 227, .12);
  color: var(--ink-soft);
  font: 600 14px/1.5 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.nav-link:hover,
.nav-link:focus-visible,
.services-trigger:hover,
.services-menu.is-open .services-trigger,
.nav-link[aria-current="page"] {
  background: rgba(247, 240, 227, .28);
  border-color: rgba(71, 58, 36, .55);
}

.nav-contact {
  margin-left: auto;
  min-width: 150px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--sand-dark);
  border-radius: 999px;
  background: var(--sand-dark);
  color: #fffdf8;
  font: 600 14px/1 var(--sans);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.nav-contact:hover,
.nav-contact:focus-visible,
.nav-contact[aria-current="page"] { background: #635638; border-color: #635638; }

/* Menu déroulant « Prestations » */
.services-menu { position: relative; flex-shrink: 0; }
.services-chevron {
  display: block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.services-menu.is-open .services-chevron { transform: translateY(2px) rotate(225deg); }

.services-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 230px;
  padding: 8px;
  border: 1px solid #b7a887;
  border-radius: 16px;
  background: #f5eee2;
  box-shadow: 0 10px 25px rgba(48, 41, 30, .14);
}
.services-menu.is-open > .services-dropdown { display: block; }
/* Pont invisible : le menu reste ouvert quand la souris descend vers la liste */
.services-dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }

.services-dropdown a,
.service-soon {
  display: block;
  min-height: 48px;
  padding: 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font: 600 15px/1.5 var(--sans);
  text-decoration: none;
}
.services-dropdown a:hover,
.services-dropdown a:focus-visible { background: #e5dac5; }
.services-dropdown span {
  display: block;
  margin-top: 3px;
  color: #625638;
  font-size: 12px;
  font-weight: 400;
}
.service-soon { border-top: 1px solid #d8cbb4; border-radius: 0; color: #554a36; cursor: default; }

/* Bouton du menu mobile */
.menu-toggle {
  display: none;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  place-content: center;
  gap: 5px;
  border: 1px solid #635337;
  border-radius: 50%;
  background: transparent;
  color: #352d20;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1181px) and (max-width: 1350px) {
  .site-header { gap: 18px; padding-inline: 2vw; }
  .site-nav { gap: 8px; }
  .nav-link,
  .services-trigger { padding-inline: 12px; font-size: 13px; }
  .nav-contact { min-width: 132px; font-size: 13px; }
}

@media (max-width: 1180px) {
  :root { --header-height: 100px; }
  .site-header { padding: 8px 4vw; }
  .site-header.is-scrolled { min-height: 82px; }
  .brand img,
  .site-header.is-scrolled .brand img { width: 112px; height: 84px; }
  .site-header.is-scrolled .brand img { width: 92px; height: 68px; }

  .menu-toggle { display: grid; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 18px 6vw 24px;
    background: var(--sand);
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 18px 34px rgba(57, 43, 26, .18);
  }
  .site-nav.is-open { display: flex; }

  .nav-link,
  .services-trigger { width: 100%; min-height: 46px; padding: 12px 20px; font-size: 15px; }
  .services-menu { width: 100%; }
  .services-dropdown { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .services-dropdown a,
  .service-soon { text-align: center; }
  .nav-contact { width: 100%; min-height: 48px; margin: 6px 0 0; font-size: 15px; }
}

/* ---------- Pied de page ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  align-items: center;
  gap: 28px;
  padding: 42px var(--gutter);
  background: var(--lavender);
  color: #5d574f;
  font-size: 12px;
}

.footer-brand { display: flex; justify-content: center; }
.footer-brand img { display: block; width: min(240px, 100%); height: auto; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #272219;
  text-align: center;
}
.footer-kicker { color: var(--gold-text); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.footer-title {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin: 0;
  font: 400 22px var(--serif);
}
.footer-title::after { content: ""; width: 42px; height: 1px; background: var(--gold); }

.footer-email {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(178, 138, 75, .4);
  color: var(--gold-text);
  font-size: 13px;
  text-decoration: none;
}
.footer-email:hover { color: var(--ink); border-color: var(--ink); }

.footer-phone-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 13px; margin-top: 5px; }
.footer-phone { color: #272219; font-size: 18px; font-weight: 500; letter-spacing: .035em; text-decoration: none; }
.pill-actions { display: inline-flex; gap: 6px; }
.pill-actions a {
  padding: 5px 10px;
  border: 1px solid #a37b3e;
  border-radius: 99px;
  color: var(--gold-text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.pill-actions a:hover,
.pill-actions a:focus-visible { background: var(--gold-text); color: #fffaf1; }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 14px; margin-top: 8px; }
.footer-legal a { color: #5d574f; font-size: 10px; letter-spacing: .06em; text-underline-offset: 3px; }

.instagram-qr { text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.instagram-qr a { display: grid; justify-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.instagram-qr img { display: block; width: 94px; height: 94px; }
.instagram-qr small { display: block; margin-top: 10px; color: #5d574f; font-size: 11px; letter-spacing: 0; text-transform: none; }

@media (max-width: 760px) {
  :root { --gutter: 6vw; }
  .section { padding: 75px var(--gutter); }
  .site-footer { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Chargement des photos ----------
   Une photo pas encore chargée reste invisible sur un fond beige,
   puis apparaît en fondu une fois entièrement téléchargée. */

img.is-loading { opacity: 0; }
img.is-ready { opacity: 1; transition: opacity .6s ease; }

/* ---------- Animations d'apparition ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
