/* =========================================================
   Marcos Agency — feuille de style
   Couleurs et polices en haut du fichier (variables).
   ========================================================= */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("../fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #ffffff;
  --cream: #f6f5f3;
  --stone: #eeece8;
  --ink: #1e1c1a;
  --text: #3a3835;
  --muted: #6b6864;
  --line: #d9d5cd;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(22px, 6vw, 110px);
  --section: clamp(72px, 9vw, 130px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
section[id] { scroll-margin-top: 80px; }
[hidden] { display: none !important; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: .9rem; }
.skip-link:focus { top: 12px; }

/* Emplacement coloré quand une photo manque */
.ph { display: block; width: 100%; height: 100%; background: #cfc9bd; }

/* ---------- Typographie ---------- */
.display-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: 1.15; color: var(--ink); letter-spacing: .005em; }
.display-title--large { font-size: clamp(2.6rem, 5vw, 4rem); }
.script-title { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; color: var(--ink); }
.script-title--xl { font-size: clamp(3rem, 6vw, 4.8rem); }
.script-sub { font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink); margin-top: .1em; }
.text-link { display: inline-block; font-size: .95rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: opacity .25s; }
.text-link:hover { opacity: .6; }
.text-link--caps { text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.text-link--small { font-size: .88rem; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--display); font-weight: 400; line-height: .88; color: inherit; }
.brand span:first-child { font-size: clamp(2.3rem, 4.4vw, 3.4rem); letter-spacing: .01em; }
.brand span:last-child { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-left: .35em; }
.brand--small span:first-child { font-size: 1.35rem; }
.brand--small span:last-child { font-size: 1.1rem; }
.brand--footer span:first-child { font-size: clamp(2.2rem, 4vw, 3rem); }
.brand--footer span:last-child { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

/* ---------- En-tête ---------- */
.site-header { z-index: 20; padding: 26px clamp(20px, 4vw, 56px) 0; color: var(--ink); }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; color: #fff; }
.site-header--solid { position: relative; background: var(--cream); padding-bottom: 28px; }
.site-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.site-header__row .brand { margin-top: clamp(30px, 5vw, 70px); }
.site-header__end { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 8px; font-size: 1.05rem; }
.lang-switch a { opacity: .65; transition: opacity .2s; }
.lang-switch a:hover, .lang-switch a[aria-current] { opacity: 1; }
.lang-switch a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.socials { display: flex; gap: 14px; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; transition: opacity .2s; }
.socials a:hover { opacity: .6; }
.socials svg { width: 26px; height: 26px; }

.main-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(18px, 2.4vw, 34px); margin-top: 22px; }
.main-nav a, .sticky-nav a { font-size: clamp(1rem, 1.35vw, 1.2rem); padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.main-nav a:hover, .main-nav a[aria-current], .sticky-nav a:hover, .sticky-nav a[aria-current] { background-size: 100% 1px; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; }
.burger span { display: block; height: 1.5px; background: currentColor; }

/* Barre compacte qui apparaît au défilement */
.stickybar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 12px clamp(20px, 4vw, 56px); background: rgba(246, 245, 243, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); color: var(--ink); transform: translateY(-105%); transition: transform .4s cubic-bezier(.6, 0, .2, 1); }
.stickybar.is-visible { transform: none; }
.stickybar .brand { align-items: flex-start; }
.stickybar .brand span:last-child { margin-left: .5em; }
.sticky-nav ul { display: flex; justify-content: center; gap: clamp(16px, 2vw, 30px); }
.sticky-nav a { font-size: .98rem; }
.stickybar__end { display: flex; align-items: center; gap: 18px; }
.stickybar .socials svg { width: 22px; height: 22px; }

/* Menu mobile */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; background: var(--ink); color: var(--cream); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__close { position: absolute; top: 18px; right: 22px; font-size: 2.4rem; line-height: 1; width: 44px; height: 44px; }
.mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mobile-nav a { font-family: var(--display); font-size: 2rem; }
.mobile-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mobile-menu__foot { display: flex; align-items: center; gap: 28px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: #8e8c87 center / cover no-repeat; }
.hero:not([style]) { background-image: linear-gradient(180deg, #a6a49f 0%, #8b8984 55%, #6f6d69 100%); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 45%; background: linear-gradient(rgba(0, 0, 0, .28), transparent); pointer-events: none; }

/* ---------- À propos / L'amour ---------- */
.about { background: var(--paper); padding: var(--section) var(--gutter); text-align: center; }
.about p { max-width: 36em; margin: 1.6em auto 0; font-size: 1.08rem; }
.about p + p { margin-top: 1.2em; }

/* ---------- Services ---------- */
.services { background: var(--cream); padding: var(--section) var(--gutter); text-align: center; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(56px, 6vw, 90px) clamp(24px, 3.2vw, 48px); margin-top: clamp(56px, 7vw, 96px); text-align: center; }
.service__media { aspect-ratio: 3 / 2; overflow: hidden; }
.service__img { width: 100%; height: 100%; object-fit: cover; }
.service__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.6rem); color: var(--ink); margin-top: 18px; }
.service__text { max-width: 25em; margin: 16px auto 0; }
.service .text-link { margin-top: 26px; }

.included { max-width: 25em; margin: 26px auto 0; text-align: left; }
.included__toggle { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.included__sign { display: inline-block; width: 14px; font-family: var(--sans); font-size: 1.2rem; line-height: 1; transition: transform .3s; }
.included__toggle[aria-expanded="true"] .included__sign { transform: rotate(45deg); }
.included__list { margin-top: 12px; padding-left: 20px; list-style: disc; }
.included__list li { padding: 2px 0; }
.included__list li::marker { color: var(--muted); }

/* ---------- Témoignages ---------- */
.testimonials { position: relative; display: grid; place-items: center; min-height: 82vh; min-height: 82svh; padding: var(--section) var(--gutter); color: #fff; background: #55534f center / cover no-repeat; }
.testimonials:not([style]) { background-image: radial-gradient(120% 60% at 30% 30%, #8a8884 0%, transparent 60%), radial-gradient(90% 70% at 80% 80%, #3c3a37 0%, transparent 60%), linear-gradient(180deg, #6d6b67, #4a4845); }
.testimonials::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); }
.testimonials__inner { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: clamp(12px, 4vw, 60px); width: 100%; max-width: 1100px; }
.testimonials__slides { grid-column: 2; }
.quote { max-width: 26em; margin: 0 auto; }
.quote.is-active { animation: fade .7s ease; }
.quote blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.35; text-align: center; }
.quote figcaption { font-family: var(--script); font-size: clamp(1.8rem, 3vw, 2.6rem); text-align: right; margin-top: 18px; padding-right: 8%; }
.testimonials__arrow { font-size: 2.6rem; line-height: 1; width: 44px; height: 44px; opacity: .8; transition: opacity .2s; }
.testimonials__arrow:hover { opacity: 1; }
.testimonials__arrow--next { grid-column: 3; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Réalisations (accueil) ---------- */
.recent { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: clamp(36px, 5vw, 80px); align-items: center; background: var(--cream); padding: var(--section) var(--gutter); }
.recent__text { max-width: 22em; margin-top: 34px; }
.recent__intro .text-link { margin-top: 22px; }
.recent__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }

.work-card { display: block; }
.work-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #d7d4cd; }
.work-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
a.work-card:hover .work-card__img { transform: scale(1.04); }
.work-card__name { display: block; margin-top: 12px; text-align: center; font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--ink); }
.work-card__soon { font-family: var(--serif); color: var(--muted); }

/* ---------- Bandeau photo pleine largeur ---------- */
.banner { aspect-ratio: 21 / 9; overflow: hidden; background: #b9b6af; }
.banner--love { aspect-ratio: 3 / 1; }
.banner__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ils nous font confiance ---------- */
.trusted { background: var(--cream); padding: clamp(60px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.trusted__title { font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: var(--ink); }
.marquee { margin-top: 42px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; }
.marquee__set img { height: 44px; width: auto; margin: 0 clamp(26px, 3.4vw, 54px); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact { background: var(--cream); padding: clamp(40px, 5vw, 70px) var(--gutter) var(--section); text-align: center; }
.contact__sub { font-size: 1.1rem; color: var(--ink); margin-top: 6px; }
.contact-form { display: grid; gap: 22px; max-width: 540px; margin: 44px auto 0; text-align: left; }
.field label { display: block; font-size: .9rem; color: var(--muted); }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 2px; font: inherit; color: var(--ink); border-radius: 0; transition: border-color .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button { justify-self: center; margin-top: 10px; padding: 14px 40px; background: var(--ink); color: var(--cream); font-size: .95rem; letter-spacing: .02em; transition: opacity .25s; }
.button:hover { opacity: .85; }
.button:disabled { opacity: .55; cursor: progress; }
.form-status { min-height: 1.6em; text-align: center; color: var(--ink); }
.form-status.is-error { color: #8a2d1f; }
.form-status a { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--cream); color: var(--ink); }
.site-footer__top { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: clamp(50px, 6vw, 80px) 20px 30px; border-top: 1px solid var(--line); }
.site-footer__ig { font-size: 1rem; transition: opacity .2s; }
.site-footer__ig:hover { opacity: .6; }
.ig-strip { display: grid; grid-template-columns: repeat(var(--ig, 8), 1fr); }
.ig-strip a { display: block; aspect-ratio: 1; overflow: hidden; background: #cfc9bd; }
.ig-strip__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.ig-strip a:hover .ig-strip__img { opacity: .8; }
.ig-widget { padding: 0 4px; }
.site-footer__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px clamp(20px, 4vw, 56px); background: var(--stone); font-size: .9rem; line-height: 1.35; }
.site-footer__bar p:last-child { grid-column: 2; }

/* ---------- Mariages ---------- */
.about--love p { max-width: 38em; }
.weddings { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 17vw, 260px); background: var(--stone); padding: var(--section) clamp(22px, 15vw, 230px) var(--section) clamp(22px, 9vw, 140px); }
.wedding { position: relative; display: flex; flex-direction: column; align-items: center; }
.wedding__media { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.wedding__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.wedding__media:hover .wedding__img { transform: scale(1.03); }
.wedding__label { position: absolute; z-index: 2; top: 9%; left: calc(100% - 2rem); transform: translateX(-5%); display: flex; flex-direction: column; align-items: center; font-weight: 400; pointer-events: none; }
.wedding__word { font-family: var(--script); font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; color: var(--ink); }
.wedding__couple { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text); }
.wedding__more { margin-top: 18px; font-family: var(--display); font-size: 1.2rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- L'agence ---------- */
.agency { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; padding: clamp(40px, 5vw, 80px) var(--gutter) var(--section); }
.agency__text { padding-top: clamp(10px, 3vw, 50px); }
.agency__p { max-width: 30em; margin-top: 1.4em; text-align: justify; hyphens: auto; }
.agency__text .script-sub { margin-left: .2em; }
.agency__text .script-sub + .agency__p { margin-top: 2.4em; }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: clamp(36px, 5vw, 80px); align-items: start; padding: clamp(40px, 5vw, 80px) var(--gutter) var(--section); }
.portfolio__intro { position: sticky; top: 110px; }
.portfolio__intro .page-head__text { max-width: 22em; margin-top: 34px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 50px) clamp(14px, 2vw, 28px); }
.work-card--soon .work-card__media { opacity: .75; }

/* ---------- Page client ---------- */
.client-head { padding: clamp(30px, 4vw, 60px) var(--gutter) 0; }
.client-head__name { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--ink); line-height: 1.2; }
.client-head__service { margin-top: 2px; color: var(--text); }
.client-head .text-link { margin-top: 18px; }
.page-client { background: var(--stone); }
.page-client .site-header--solid, .page-client .site-footer { background: var(--stone); }
.gallery-wrap { padding: clamp(36px, 4vw, 60px) var(--gutter) var(--section); }
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: clamp(12px, 1.8vw, 26px); }
.gallery-grid--rest { margin-top: clamp(24px, 3vw, 48px); }
.gallery-grid__tile { aspect-ratio: var(--tile, 3 / 4); overflow: hidden; }
.gallery__img { width: 100%; height: 100%; object-fit: cover; }

/* Collage (pages clients et page L'agence) */
.collage { position: relative; width: 100%; aspect-ratio: var(--ratio, 1.6); }
.collage__tile { position: absolute; overflow: hidden; box-shadow: 0 10px 30px rgba(30, 28, 26, .08); }
.collage__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: var(--section) var(--gutter); text-align: center; }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .stickybar { grid-template-columns: auto 1fr auto; }
  .stickybar .socials { display: none; }
  .portfolio-grid, .recent__items { grid-template-columns: repeat(2, 1fr); }
  .recent__items .work-card:nth-child(3) { display: none; }
  .gallery-grid { grid-template-columns: repeat(min(var(--cols, 4), 3), 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .main-nav, .sticky-nav, .site-header .socials, .stickybar .lang-switch { display: none; }
  .burger { display: flex; }
  .site-header__row .brand { margin-top: 42px; }
  .site-header--solid { padding-bottom: 8px; }
  .stickybar { grid-template-columns: auto auto; justify-content: space-between; }

  .services__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .recent, .portfolio, .agency { grid-template-columns: 1fr; }
  .portfolio__intro { position: static; }
  .recent__items { grid-template-columns: repeat(3, 1fr); }
  .recent__items .work-card:nth-child(3) { display: block; }
  .banner, .banner--love { aspect-ratio: 4 / 3; }

  .weddings { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .wedding__label { position: static; margin-top: 18px; transform: none; }
  .wedding__more { margin-top: 8px; }

  .testimonials__inner { grid-template-columns: 34px 1fr 34px; }
  .quote figcaption { text-align: center; padding-right: 0; }

  .collage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .collage__tile { position: static; width: auto !important; height: auto !important; aspect-ratio: 3 / 4; box-shadow: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .ig-strip { grid-template-columns: repeat(4, 1fr); }
  .site-footer__bar { grid-template-columns: 1fr auto; }
  .site-footer__bar p:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .recent__items { grid-template-columns: repeat(2, 1fr); }
  .recent__items .work-card:nth-child(3) { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .marquee__set img { height: 36px; }
}

/* ---------- Animations réduites (réglage du système) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: 100%; justify-content: center; }
  .marquee__set { flex-wrap: wrap; justify-content: center; row-gap: 22px; }
  .marquee__set[aria-hidden] { display: none; }
}
