/* ============================================================
   design.css — couche de finition commune (chargée après responsive.css)
   Objectif : un rendu plus sobre et plus « studio » :
   - deux polices auto-hébergées (Cormorant Garamond + Inter), plus aucun appel à Google Fonts
   - titres en or uni (plus de reflet animé)
   - pied de page classique, navigation avec page active
   - accueil / listes vidéo en blocs éditoriaux sombres, galeries photo proportionnelles
   ============================================================ */

/* ---------- Polices (fichiers dans /fonts, sous-ensemble latin) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/CormorantGaramond-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/Inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ink: #0e0d0c;
  --ink-2: #161412;
  --ivory: #f4efe6;
  --muted-light: #c9c1b3;
  --gold-deep: #b08d4f;
  --line: rgba(202, 167, 106, 0.22);
}

/* Une seule police de texte, une seule police de titres (les anciennes règles sont écrasées). */
:where(body, body *) {
  font-family: var(--font-body) !important;
}

body h1,
body h2,
body h3,
body h4,
body .testimonial blockquote {
  font-family: var(--font-display) !important;
}

/* ---------- Titres : or uni, sans reflet animé ---------- */
body h1,
body h2,
body h3 {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
  text-shadow: none !important;
  font-weight: 600;
  line-height: 1.12;
  color: var(--gold-deep);
}

#about h1,
#about h2 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  text-transform: none;
  letter-spacing: 0;
}

.hero-text:hover h1,
.hero-text:hover p {
  text-shadow: none;
}

/* ---------- Accessibilité : focus visible, mouvement réduit ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fond uni (le « grain de film » brun apparaissait sous les cartes et derrière le pied de page) */
body {
  background-image: none;
  background-color: var(--bg-white);
}

body::before {
  display: none;
}

/* Le préchargeur n'a de sens que sur l'accueil. */
body:not(.home-page) #preloader {
  display: none !important;
}

/* ---------- Navigation ---------- */
.nav-list a,
.nav-list button,
.nav-list .drop-toggle {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dropdown a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* Page active */
.nav-list a[aria-current="page"]:not(.cta),
.has-dropdown:has(a[aria-current="page"]) > .drop-toggle {
  color: #fff;
}

.nav-list a[aria-current="page"]:not(.cta)::after,
.has-dropdown:has(a[aria-current="page"]) > .drop-toggle::after {
  opacity: 1;
  transform: scaleX(1);
}

.dropdown a[aria-current="page"] {
  color: #fff;
  background: rgba(202, 167, 106, 0.12);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: rgba(202, 167, 106, 0.16);
}

.btn-primary {
  background: var(--gold);
  color: #12100d;
}

.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.cv-btn {
  padding: 0.95rem 1.8rem;
  background: var(--gold);
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-btn:hover {
  background: var(--gold-soft);
  box-shadow: none;
  transform: none;
}

/* ---------- Hero : apparition rapide, sans machine à écrire ni reflets ---------- */
.hero-text::before,
.hero-text::after {
  display: none;
}

.hero-text p {
  width: auto;
  overflow: visible;
  white-space: normal;
  border-right: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  animation: homeHeroIn 0.9s ease-out 0.4s both;
}

.hero-text h1 {
  animation: homeHeroIn 0.9s ease-out both !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
  animation: homeHeroIn 0.9s ease-out 0.6s both;
}

/* ---------- Pied de page classique (n'est plus collé en bas de l'écran) ---------- */
body .site-footer {
  position: static;
  margin: 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
  backdrop-filter: none;
  color: var(--muted-light);
}

.footer-inner {
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  padding: 2rem clamp(16px, 4vw, 32px);
}

.footer-inner .right p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.footer-inner .socials a {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
}

.footer-inner .socials a:hover {
  box-shadow: none;
  transform: none;
}

.site-footer .legal-link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}

body.portrait-page {
  padding-bottom: 0;
}

/* ---------- Accueil et listes vidéo : blocs éditoriaux sombres ---------- */
body .section.white-section.portfolio {
  background: var(--ink-2);
  color: var(--ivory);
  counter-reset: row;
}

body .portfolio .section-row {
  counter-increment: row;
  align-items: center;
}

body .portfolio .image-block {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

body .portfolio .image-block img,
body .portfolio .image-block video {
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

body .section.white-section.portfolio .image-block:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: none;
}

body .section.white-section.portfolio .image-block:hover img,
body .section.white-section.portfolio .image-block:hover video {
  transform: scale(1.03);
  filter: none;
  box-shadow: none;
}

/* Le bloc texte n'est plus une carte : texte clair sur fond sombre */
body .section.white-section.portfolio .text-block {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0rem, 2vw, 1.5rem);
  color: var(--ivory);
}

body .section.white-section.portfolio .text-block:hover,
.home-page .section.white-section.portfolio .text-block:hover {
  box-shadow: none;
  transform: none;
}

body .section.white-section.portfolio .text-block::before {
  content: counter(row, decimal-leading-zero);
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
}

body .section.white-section.portfolio h3 {
  margin-bottom: 1rem;
  color: var(--ivory);
  font-size: clamp(2rem, 3.6vw, 3rem);
  text-transform: none;
  letter-spacing: 0;
}

body .section.white-section.portfolio p {
  color: var(--muted-light);
  font-size: 1.02rem;
  line-height: 1.75;
}

body .portfolio .text-block a {
  color: inherit;
  text-decoration: none;
}

body .portfolio .text-block a p:last-child {
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Sur l'accueil, tout le bloc est un lien : on ajoute l'indication visuelle */
.home-page .portfolio a.link-block::after {
  content: "Découvrir  ›";
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.25s ease;
}

.home-page .portfolio a.link-block:hover::after {
  transform: translateX(6px);
}

.link-block:hover {
  transform: none;
  box-shadow: none;
}

/* « Qui suis-je ? » : halo au survol beaucoup plus discret */
#about .container.two-col.align-center.reflow:hover {
  box-shadow: 0 18px 50px rgba(48, 35, 18, 0.12);
  transform: none;
}

/* ---------- Galeries photo : proportions respectées ---------- */
body.portrait-page,
.portraits-gallery {
  background: var(--ink);
}

.portraits-gallery {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(12px, 3vw, 40px) clamp(3rem, 6vw, 5rem);
}

.portraits-container {
  /* Grille (et non des colonnes façon "masonry") : occupe toujours toute la largeur disponible,
     même quand une galerie a peu de photos, au lieu de laisser un vide à droite sur grand écran
     (les colonnes CSS s'équilibrent sur moins de colonnes que prévu dès que le contenu est court). */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: 1500px;
  margin-inline: auto;
}

.portrait-item {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0;
  border-radius: 3px;
  cursor: zoom-in;
  transform: none !important;
  box-shadow: none;
  transition: filter 0.3s ease;
}

.portrait-item:hover {
  box-shadow: none;
  filter: brightness(1.1);
}

/* ---------- Livre d'or : le hero s'adapte à la hauteur du contenu ---------- */
.guestbook-page .hero {
  height: auto;
  min-height: 100vh;
}

/* ---------- Témoignages (accueil, alimentés par le livre d'or) ---------- */
.testimonials {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  border-top: 1px solid var(--line);
}

.testimonials .eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.testimonials h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 4vw, 3rem);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ivory);
}

.testimonial figcaption {
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.testimonials-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

@media (max-width: 900px) {
  body .site-footer {
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Palier C : services, fiches projet, appels à l'action
   ============================================================ */

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Accueil : boucle vidéo auto-hébergée dans le hero */
.youtube-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Les boutons placés dans un bloc texte du portfolio gardent leurs couleurs */
body .portfolio .text-block a.btn {
  color: var(--ivory);
  text-decoration: none;
}

body .portfolio .text-block a.btn-primary {
  color: #12100d;
}

/* ---------- En-tête de page (Services) ---------- */
.page-hero {
  padding: calc(72px + clamp(3.5rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1.2rem;
  color: var(--ivory);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.page-hero .lead {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: var(--muted-light);
  font-size: 1.1rem;
  line-height: 1.75;
}

.page-hero .hero-actions {
  margin-top: 0;
}

/* ---------- Prestations ---------- */
.service-list {
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.4rem;
  color: var(--ivory);
  font-size: 0.98rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 0.8rem;
  height: 1px;
  background: var(--gold);
}

.service-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-actions {
  justify-content: center;
}

/* ---------- Déroulement, questions fréquentes, appel final ---------- */
.process,
.faq,
.cta-band {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  color: var(--ivory);
  text-align: center;
}

.process,
.cta-band {
  background: var(--ink);
}

.faq {
  background: var(--ink-2);
}

.cta-band {
  border-top: 1px solid var(--line);
}

.process h2,
.faq h2,
.cta-band h2 {
  margin-bottom: 2rem;
  color: var(--ivory);
  font-size: clamp(2rem, 4vw, 3rem);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.process-steps li {
  counter-increment: step;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
}

.process-steps h3 {
  margin-bottom: 0.6rem;
  color: var(--ivory);
  font-size: 1.6rem;
}

.process-steps p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq .container {
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--line);
  text-align: left;
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 1.2rem 2rem 1.2rem 0;
  color: var(--ivory);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 1rem;
  right: 0.2rem;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.3rem;
  color: var(--muted-light);
  line-height: 1.7;
}

.faq-item a {
  color: var(--gold);
}

/* ---------- Fiches projet ---------- */
.breadcrumb {
  width: min(100% - 32px, 1100px);
  margin: 0 auto 1.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #6d6254;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.7rem;
  color: var(--gold);
}

.breadcrumb a {
  color: #6d6254;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-deep);
}

.breadcrumb [aria-current] {
  color: #2a251f;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(176, 141, 79, 0.5);
  border-radius: 999px;
  color: #6d5a37;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-tags a {
  color: inherit;
  text-decoration: none;
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(100% - 32px, 1100px);
  margin: 2.5rem auto 4rem;
}

.project-nav a {
  color: #2a251f;
  font-size: 1rem;
  text-decoration: none;
}

.project-nav a span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold-deep);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.project-nav .next {
  text-align: right;
}

.project-nav .all {
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(176, 141, 79, 0.5);
  border-radius: 999px;
  color: #6d5a37;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .project-nav {
    grid-template-columns: 1fr 1fr;
  }

  .project-nav .all {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}

/* Aperçu cliquable des vidéos (la vidéo elle-même ne se charge qu'au clic) */
.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  cursor: pointer;
}

.video-thumb .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.video-thumb:hover .video-poster {
  transform: scale(1.03);
  filter: brightness(1.08);
}
