/* ============================================================
   OnePhoto.fr — Feuille de style globale
   Design : blanc épuré, premium, minimaliste
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f5f1;   /* off-white chaud */
  --bg-dark:   #14110c;   /* presque noir chaud (footer / hero overlay) */
  --ink:       #1b1813;   /* texte principal */
  --muted:     #6f6a61;   /* texte secondaire */
  --line:      #e8e3da;   /* filets / bordures */
  --accent:    #b08d57;   /* or discret */
  --accent-dk: #8f6f3e;

  --max:       1180px;
  --gut:       clamp(1.25rem, 4vw, 2.5rem);
  --radius:    4px;

  --ff-title:  "Playfair Display", Georgia, serif;
  --ff-body:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow:    0 18px 50px -20px rgba(20,17,12,.22);
  --t:         .35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset léger ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typographie ---------- */
h1,h2,h3,h4 { font-family: var(--ff-title); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p  { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }

.eyebrow {
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-dk);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ---------- Layout utilitaires ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-dk); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* ---------- Header sticky ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
  padding-block: 1.1rem;
}
.site-header.is-solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .65rem;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--ff-title); font-size: 1.15rem; font-weight: 600; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; transition: color var(--t); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px;
  background: var(--accent); transition: width var(--t);
}
.nav-links a:hover::after { width: 100%; }
.site-header:not(.is-solid) .nav--over-hero .brand,
.site-header:not(.is-solid) .nav--over-hero .nav-links a { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: currentColor; transition: var(--t); position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.site-header:not(.is-solid) .nav--over-hero .nav-toggle { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,12,.45) 0%, rgba(20,17,12,.25) 40%, rgba(20,17,12,.65) 100%);
}
.hero__inner { max-width: 760px; padding-block: 8rem 4rem; }
.hero .eyebrow { color: #f0d9b4; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.88); margin-top: 1.4rem; max-width: 560px; font-size: clamp(1.05rem,1.7vw,1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

/* ---------- Services (cartes orientation) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 1.5rem; }
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.service-card::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(20,17,12,0) 30%, rgba(20,17,12,.82) 100%); }
.service-card:hover img { transform: scale(1.06); }
.service-card__body { padding: 1.75rem; }
.service-card h3 { color: #fff; }
.service-card p { color: rgba(255,255,255,.85); font-size: .95rem; margin-top: .35rem; }
.service-card__link { display:inline-flex; align-items:center; gap:.4rem; margin-top: 1rem; font-weight:600; font-size:.9rem; color:#fff; }
.service-card__link span { transition: transform var(--t); }
.service-card:hover .service-card__link span { transform: translateX(5px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 2rem; text-align: center; }
.stat__num { font-family: var(--ff-title); font-size: clamp(2.4rem,5vw,3.4rem); color: var(--ink); line-height: 1; }
.stat__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: .6rem; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__sign { font-family: var(--ff-title); font-style: italic; color: var(--ink); margin-top: 1.5rem; }

/* ---------- Portfolio grid + lightbox ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .75rem; }
.portfolio-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; aspect-ratio: 4/5; }
.portfolio-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-grid figure:hover img { transform: scale(1.05); }
.portfolio-grid figure::after { content:""; position:absolute; inset:0; background: rgba(20,17,12,0); transition: background var(--t); }
.portfolio-grid figure:hover::after { background: rgba(20,17,12,.12); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,13,9,.94); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: background var(--t); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.12); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 1rem; } .lightbox__nav.next { right: 1rem; }

/* ---------- Témoignages ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.testi__photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.4rem; }
.testi__stars { color: var(--accent); letter-spacing: .15em; margin-bottom: 1rem; }
.testi blockquote { font-size: 1.05rem; color: var(--ink); font-family: var(--ff-title); font-style: italic; line-height: 1.5; }
.testi__author { margin-top: 1.25rem; font-weight: 600; font-size: .9rem; }
.testi__author span { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.4rem 0; font-family: var(--ff-title); font-size: 1.15rem; color: var(--ink); }
.faq-item__q .icon { flex: none; width: 24px; height: 24px; position: relative; transition: transform var(--t); }
.faq-item__q .icon::before, .faq-item__q .icon::after { content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background: var(--accent-dk); }
.faq-item__q .icon::before { width: 14px; height: 2px; }
.faq-item__q .icon::after  { width: 2px; height: 14px; transition: transform var(--t); }
.faq-item[open] .icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item__a { overflow: hidden; max-height: 0; transition: max-height var(--t); }
.faq-item__a p { padding-bottom: 1.4rem; }

/* ---------- Bande CTA / Contact ---------- */
.cta-band { background: var(--bg-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 540px; margin: 1rem auto 2rem; }

/* ---------- Formulaire ---------- */
.contact-form { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--ink); transition: border var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,141,87,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--ff-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.7); transition: color var(--t); }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .55rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }

/* ---------- Hero pages internes ---------- */
.hero--page { min-height: 74vh; }
.hero--page .hero__inner { padding-block: 7rem 3rem; }

/* ---------- Fil d'ariane ---------- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .9rem; font-size: .82rem; color: var(--muted); }
.breadcrumb li { display: flex; gap: .5rem; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--line); }
.breadcrumb a:hover { color: var(--accent-dk); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- Features / arguments ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 2rem; }
.feature__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.3rem; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { font-size: .95rem; }

/* ---------- Process (étapes) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 3.5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--ff-title); font-size: 1.3rem; display: grid; place-items: center; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; }

/* ---------- Packs / tarifs ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; align-items: stretch; }
.pack { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: #fff; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); }
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pack--featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.pack--featured::before { content: "Le plus choisi"; position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.pack h3 { font-size: 1.4rem; }
.pack__price { font-family: var(--ff-title); font-size: 2.4rem; color: var(--ink); margin: .5rem 0 1rem; }
.pack__price small { font-size: .9rem; color: var(--muted); font-family: var(--ff-body); }
.pack ul { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.pack li { font-size: .92rem; color: var(--muted); padding-left: 1.5rem; position: relative; }
.pack li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dk); font-weight: 700; }
.pack .btn { margin-top: auto; justify-content: center; }
.price-note { font-size: .82rem; color: var(--muted); margin-top: 1.5rem; text-align: center; }

/* tableau de prix simple */
.price-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.price-table th, .price-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--ff-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.price-table td:last-child { font-family: var(--ff-title); color: var(--ink); white-space: nowrap; }

/* ---------- Form : états de succès/erreur ---------- */
.form-alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .95rem; }
.form-alert--ok { background: #edf7ee; border: 1px solid #bfe3c4; color: #1f6b2b; }
.form-alert--err { background: #fbeeee; border: 1px solid #e6c2c2; color: #9a2c2c; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 2rem; gap: 1.5rem; transform: translateX(100%); transition: transform var(--t); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; color: inherit; }
  .nav .btn--primary { display: none; }
  .about { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
