/* ============================================================
   Bel Ouvrage — vitrine agence. DA inspirée adquality.fr :
   crème / noir / jaune vif / sauge, typo géométrique légère,
   titres géants clamp(), cartes très arrondies, photos N&B.
   ============================================================ */

/* ---------- Police locale (aucune requête externe) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --creme: #f6f4f0;
  --noir: #121212;
  --noir-2: #1c1c1a;
  --jaune: #f7e94a;
  --sauge: #c9dfc0;
  --carte: #edebe5;
  --texte: #171717;
  --texte-2: #5d5a53;
  --texte-creme: #f1efe9;
  --r: 28px;
  --r-petit: 18px;
  --marge: clamp(1.25rem, 4vw, 4rem);
  --ombre: 0 18px 45px rgba(18, 18, 18, .10);
  --transition: .45s cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Century Gothic", "Segoe UI", Futura, sans-serif;
  font-weight: 300;
  background: var(--creme);
  color: var(--texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
a { color: inherit; }
::selection { background: var(--jaune); color: var(--noir); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--jaune); color: var(--noir); padding: .6rem 1.2rem;
  border-radius: 0 0 var(--r-petit) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; border-radius: 4px; }
.card-noire :focus-visible, .process :focus-visible, .contact-noir :focus-visible, .overlay :focus-visible { outline-color: var(--jaune); }

/* La ponctuation des titres hérite ; jaune sur fond noir (voir sections) */
.dot { color: inherit; }

/* ---------- Starburst ✳ ---------- */
.star { width: 1.05em; height: 1.05em; fill: currentColor; flex: 0 0 auto; }
@keyframes tourne { to { transform: rotate(360deg); } }
.star-slow { animation: tourne 26s linear infinite; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-block; padding: .85rem 1.9rem; border-radius: 999px;
  font-size: 1rem; font-weight: 400; text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.btn-noir { background: var(--noir); color: var(--texte-creme); }
.btn-noir:hover { background: var(--noir-2); }
.btn-outline-noir { border: 1.5px solid var(--noir); color: var(--noir); }
.btn-outline-noir:hover { background: var(--noir); color: var(--jaune); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 400; text-decoration: none; width: fit-content;
  position: relative; padding-bottom: 2px;
}
.lien-fleche::after {
  content: "→"; transition: transform var(--transition); font-weight: 300;
}
.lien-fleche::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.lien-fleche:hover::after { transform: translateX(6px); }
.lien-fleche:hover::before { transform: scaleX(1); }

/* ---------- Cartes ---------- */
.card { border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); }
.card-jaune { background: var(--jaune); color: var(--noir); }
.card-grise { background: var(--carte); color: var(--texte); }
.card-noire { background: var(--noir); color: var(--texte-creme); }
.card-photo { padding: 0; overflow: hidden; background: var(--carte); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.card-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 400; margin-bottom: 1.1rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--marge);
  transition: transform .4s ease;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header.cache { transform: translateY(-110%); }
.menu-btn {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1.5px solid var(--noir); background: var(--creme);
  font: inherit; font-size: .95rem; color: var(--noir); cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.menu-btn:hover { background: var(--noir); color: var(--jaune); transform: rotate(-8deg) scale(1.04); }
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; color: var(--noir);
  background: var(--creme); border-radius: 999px; padding: .5rem 1.1rem;
}
.logo .star { color: var(--noir); }

/* ---------- Overlay menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 150;
  background: var(--noir); color: var(--texte-creme);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--marge); overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.overlay.ouvert { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.overlay-close {
  position: absolute; top: 1.4rem; right: var(--marge);
  background: none; border: 1.5px solid rgba(241, 239, 233, .4); color: var(--texte-creme);
  font: inherit; font-size: .95rem; padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.overlay-close:hover { border-color: var(--jaune); color: var(--jaune); }
.overlay-links { list-style: none; position: relative; z-index: 2; }
.overlay-links a {
  display: flex; align-items: baseline; gap: 1.2rem;
  font-size: clamp(2.2rem, 6.5vw, 4.5rem); font-weight: 300; line-height: 1.25;
  text-decoration: none; color: var(--texte-creme);
  transition: color var(--transition), transform var(--transition), opacity .5s ease;
  transform-origin: left center;
  opacity: 0; translate: 0 24px;
}
.overlay.ouvert .overlay-links a { opacity: 1; translate: 0 0; transition: color var(--transition), translate .55s cubic-bezier(.22,.8,.3,1), opacity .55s ease; }
.overlay.ouvert .overlay-links li:nth-child(1) a { transition-delay: .05s; }
.overlay.ouvert .overlay-links li:nth-child(2) a { transition-delay: .1s; }
.overlay.ouvert .overlay-links li:nth-child(3) a { transition-delay: .15s; }
.overlay.ouvert .overlay-links li:nth-child(4) a { transition-delay: .2s; }
.overlay.ouvert .overlay-links li:nth-child(5) a { transition-delay: .25s; }
.overlay.ouvert .overlay-links li:nth-child(6) a { transition-delay: .3s; }
.overlay-links a:hover { color: var(--jaune); transform: translateX(12px); }
.ol-n { font-size: 1rem; color: var(--jaune); font-weight: 400; }
.overlay-foot { position: absolute; bottom: 1.6rem; left: var(--marge); font-size: .95rem; color: rgba(241, 239, 233, .55); z-index: 2; }
.overlay-star {
  position: absolute; right: -8vw; bottom: -14vh; width: 42vw; height: 42vw;
  color: var(--jaune); opacity: .14; z-index: 1;
}

/* ---------- Sections communes ---------- */
section { padding: clamp(4rem, 9vw, 8rem) var(--marge); }
.section-label {
  display: inline-block; font-size: .95rem; font-weight: 400;
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: .35rem 1.1rem; margin-bottom: 1.6rem;
}
.section-title {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 400; margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ---------- 1. Héros ---------- */
.hero { padding-top: clamp(9rem, 18vh, 13rem); }
.hero-title {
  font-size: clamp(3rem, 9.5vw, 8.2rem);
  font-weight: 400; letter-spacing: -.03em;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  will-change: transform;
}
.hero-cards {
  display: grid; grid-template-columns: 1.35fr .9fr .75fr;
  gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch;
}
.hero-pitch-txt { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.55; margin-bottom: 1.8rem; }
.hero-pitch-txt strong { font-weight: 500; }
.card-photo img { aspect-ratio: 4 / 5; }
.hero-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; }
.hero-cta p { font-size: 1.25rem; line-height: 1.4; position: relative; z-index: 2; }
.hero-cta .lien-fleche { color: var(--jaune); position: relative; z-index: 2; }
.hero-cta-star { position: absolute; right: -2.2rem; top: -2.2rem; width: 8rem; height: 8rem; color: var(--jaune); opacity: .22; }

/* ---------- 2. Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}
.service h3 {
  font-size: 1.15rem; font-weight: 500; margin-bottom: 1rem;
  padding-bottom: .8rem; border-bottom: 1.5px solid rgba(18, 18, 18, .18);
}
.service img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-petit) var(--r-petit) 120px 120px;
  filter: grayscale(1);
  transition: filter .6s ease, transform .6s ease;
}
.service:hover img { filter: grayscale(0); transform: translateY(-6px); }
.service p { font-size: .95rem; color: var(--texte-2); margin-top: 1rem; }

/* ---------- 3. Pourquoi + compteurs ---------- */
.pourquoi {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.pourquoi-txt p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--texte-2); max-width: 34em; margin-bottom: 2rem; }
.compteurs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
.compteur {
  background: var(--carte); border-radius: var(--r); padding: clamp(1.4rem, 2.5vw, 2.2rem);
  display: flex; flex-direction: column; gap: .4rem;
}
.compteur:nth-child(2) { background: var(--jaune); }
.compteur-n { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.compteur-l { font-size: .95rem; color: var(--texte-2); }
.compteur:nth-child(2) .compteur-l { color: rgba(18, 18, 18, .7); }

/* ---------- 4. Valeurs (bento) ---------- */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.bento .card { display: flex; flex-direction: column; gap: 1rem; transition: transform var(--transition), box-shadow var(--transition); }
.bento .card:hover { transform: translateY(-8px); box-shadow: var(--ombre); }
.bento .card .star { width: 2rem; height: 2rem; }
.bento .card h3 { font-size: 1.5rem; font-weight: 400; }
.bento .card p { font-size: .98rem; color: var(--texte-2); }
.bento .card-noire p { color: rgba(241, 239, 233, .7); }
.bento .card-jaune p { color: rgba(18, 18, 18, .72); }
.bento .card-jaune .star, .bento .card-noire .star { color: currentColor; }
.bento .card:nth-child(1) { grid-column: span 2; }
.bento .card:nth-child(2) { grid-column: span 2; margin-top: 2.5rem; }
.bento .card:nth-child(3) { grid-column: span 2; }
.bento .card:nth-child(4) { grid-column: span 3; margin-top: -1rem; }
.bento .card:nth-child(5) { grid-column: span 3; margin-top: 1.5rem; }
.bento .card-noire .star { color: var(--jaune); }

/* ---------- 5. Process (bande noire) ---------- */
.process { background: var(--noir); color: var(--texte-creme); border-radius: var(--r) var(--r) 0 0; }
.process .section-label { border-color: rgba(241, 239, 233, .4); }
.process .section-title .dot { color: var(--jaune); }
.etapes {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.etape {
  background: var(--noir-2); border-radius: var(--r);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  border: 1px solid rgba(241, 239, 233, .08);
  transition: transform var(--transition), border-color var(--transition);
}
.etape:hover { transform: translateY(-8px); border-color: rgba(247, 233, 74, .5); }
.etape-n { font-size: 1rem; color: var(--jaune); font-weight: 400; display: block; margin-bottom: 1.4rem; }
.etape h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: .8rem; }
.etape p { font-size: .95rem; color: rgba(241, 239, 233, .65); }

/* ---------- 6. Réalisations (bande sauge) ---------- */
.realisations { background: var(--sauge); }
.realisations-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.realisation {
  background: var(--creme); padding: 0; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.realisation:hover { transform: translateY(-8px); box-shadow: var(--ombre); }
.navigateur {
  display: flex; align-items: center; gap: .9rem;
  background: var(--noir); color: rgba(241, 239, 233, .75);
  padding: .7rem 1.2rem; font-size: .85rem;
}
.nav-points { display: flex; gap: .35rem; }
.nav-points i { width: .65rem; height: .65rem; border-radius: 50%; background: rgba(241, 239, 233, .3); }
.nav-points i:first-child { background: var(--jaune); }
.nav-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realisation img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  filter: grayscale(.35);
  transition: filter .6s ease;
}
.realisation:hover img { filter: grayscale(0); }
.realisation-info {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem;
  padding: 1.2rem 1.5rem 1.5rem;
}
.realisation-info strong { font-size: 1.2rem; font-weight: 500; }
.realisation-info > span:not(.lien-fleche) { color: var(--texte-2); font-size: .95rem; }
.realisation-info .lien-fleche { margin-left: auto; font-size: .95rem; }

/* ---------- 7. Offre ---------- */
.offre-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  max-width: 62rem;
}
.offre-carte { display: flex; flex-direction: column; align-items: flex-start; }
.offre-carte h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; }
.offre-prix { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.03em; margin: .4rem 0 1.4rem; }
.offre-prix-p { font-size: 1.1rem; letter-spacing: 0; }
.offre-liste { list-style: none; margin-bottom: 2rem; width: 100%; }
.offre-liste li {
  padding: .7rem 0 .7rem 1.8rem; position: relative;
  border-bottom: 1px solid rgba(18, 18, 18, .12); font-size: .98rem;
}
.offre-liste li::before { content: "✳"; position: absolute; left: 0; font-size: .85rem; }
.offre-carte .btn { margin-top: auto; }

/* ---------- 8. FAQ ---------- */
.faq-liste { max-width: 52rem; }
.faq-liste details {
  background: var(--carte); border-radius: var(--r-petit);
  margin-bottom: .8rem; overflow: hidden;
  transition: background var(--transition);
}
.faq-liste details[open] { background: var(--jaune); }
.faq-liste summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.3rem 1.6rem; font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 400;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; inset: 50% auto auto 0;
  width: 100%; height: 2px; background: currentColor; translate: 0 -50%;
  transition: rotate var(--transition);
}
.faq-plus::after { rotate: 90deg; }
details[open] .faq-plus::after { rotate: 0deg; }
.faq-liste details p { padding: 0 1.6rem 1.4rem; color: rgba(18, 18, 18, .72); max-width: 44em; }

/* ---------- 9. Signature + marquee ---------- */
.signature { padding-left: 0; padding-right: 0; text-align: center; overflow: hidden; }
.signature-txt {
  font-size: clamp(2.6rem, 8vw, 7rem); font-weight: 400; letter-spacing: -.03em;
  line-height: 1.1; padding: 0 var(--marge); margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.signature-txt em { font-style: normal; color: var(--noir); background: var(--jaune); border-radius: .18em; padding: 0 .12em; }
.marquee { border-block: 1.5px solid rgba(18, 18, 18, .15); padding: 1.1rem 0; white-space: nowrap; }
.marquee-piste { display: inline-flex; animation: defile 36s linear infinite; }
.marquee-piste span { font-size: 1.15rem; font-weight: 300; color: var(--texte-2); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- 10. Contact ---------- */
.contact { padding: 0 var(--marge) clamp(4rem, 9vw, 8rem); }
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.contact-noir {
  background: var(--noir); color: var(--texte-creme);
  border-radius: var(--r); padding: clamp(2rem, 4.5vw, 4rem);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
}
.contact-noir h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); position: relative; z-index: 2; }
.contact-noir .dot { color: var(--jaune); }
.contact-noir p { color: rgba(241, 239, 233, .7); max-width: 30em; position: relative; z-index: 2; }
.contact-liens { display: flex; flex-direction: column; gap: .9rem; position: relative; z-index: 2; }
.contact-liens .lien-fleche { color: var(--jaune); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.contact-star { position: absolute; right: -4rem; bottom: -4rem; width: 16rem; height: 16rem; color: var(--jaune); opacity: .12; z-index: 1; }
.contact-photo { border-radius: var(--r); overflow: hidden; margin: 0; min-height: 22rem; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ---------- Page mentions légales ---------- */
.legal { padding-top: clamp(7rem, 14vh, 10rem); max-width: 52rem; }
.legal h2 { font-size: 1.4rem; font-weight: 500; margin: 2.2rem 0 .6rem; }
.legal p { color: var(--texte-2); }
.legal a { color: var(--texte); }

/* ---------- Footer ---------- */
.footer { background: var(--creme); padding: 0 var(--marge) 2rem; }
.footer-haut {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem;
  padding: 2rem 0; border-top: 1.5px solid rgba(18, 18, 18, .15);
}
.footer-logo { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.15rem; font-weight: 500; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a, .footer-bas a { text-decoration: none; color: var(--texte-2); font-size: .95rem; transition: color var(--transition); }
.footer-nav a:hover, .footer-bas a:hover { color: var(--noir); }
.footer-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .9rem; color: var(--texte-2); }

/* ---------- Reveal on scroll ----------
   L'état masqué n'existe que si JS a posé html.anim : sans JS ou sans
   IntersectionObserver, tout est visible d'office. */
.reveal { transition: opacity .8s ease, translate .8s cubic-bezier(.22, .8, .3, 1); }
html.anim .reveal { opacity: 0; translate: 0 36px; }
html.anim .reveal.vu { opacity: 1; translate: 0 0; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: 0 0; }
  .hero-title { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .bento .card:nth-child(n) { grid-column: span 3; margin-top: 0; }
  .etapes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-cta { grid-column: span 2; flex-direction: row; align-items: center; }
  .pourquoi { grid-template-columns: 1fr; }
  .realisations-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-photo { min-height: 16rem; }
}
@media (max-width: 640px) {
  .menu-btn { width: 62px; height: 62px; font-size: .85rem; }
  .logo { font-size: 1.05rem; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-cta { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .card-photo img { aspect-ratio: 16 / 10; }
  .services-grid { grid-template-columns: 1fr; }
  .service img { aspect-ratio: 16 / 9; }
  .bento .card:nth-child(n) { grid-column: span 6; }
  .etapes { grid-template-columns: 1fr; }
  .offre-grid { grid-template-columns: 1fr; }
  .compteurs { grid-template-columns: 1fr 1fr; }
  .footer-haut, .footer-bas { flex-direction: column; align-items: flex-start; }
}
