/* Maison MV · portfolio. Design sobre : fond blanc, texte presque noir, aucune couleur d'accent.
   La couleur vient des vidéos. Police du studio (Archivo, OFL), hébergée avec le site. */
@font-face { font-family: "Archivo"; src: url("polices/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --fond: #ffffff;
  --fond-doux: #f6f6f5;
  --encre: #111214;
  --texte: #3a3b3e;
  --gris: #6b6d72;
  --ligne: #e6e6e4;
  --sombre: #0f1013;
  --bulle: #e9e9eb;
  --marge: max(20px, calc((100vw - 1240px) / 2));
  --h: 300px;
  --entete: 72px;
  --doux: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
  scrollbar-color: #b6b8bc var(--fond-doux);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--fond-doux); }
::-webkit-scrollbar-thumb { background: #c4c6ca; border-radius: 6px; border: 3px solid var(--fond-doux); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: 108%; color: var(--encre); }
::selection { background: var(--encre); color: var(--fond); }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

.evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--encre); color: var(--fond); padding: 10px 14px; }
.evitement:focus { left: 12px; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 40; height: var(--entete);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--marge);
  background: var(--fond); box-shadow: 0 1px 0 var(--ligne);
}
.nom { font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 600; font-size: 19px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--encre); text-decoration: none; white-space: nowrap; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu-bouton { display: none; align-items: center; gap: 8px; font-size: 14.5px; color: var(--encre); padding: 8px 4px; margin-left: auto; }
.menu-bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu a { font-size: 15.5px; color: var(--encre); text-decoration: none; }
.menu a:hover { text-decoration: underline; }
.langue { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--gris); text-decoration: none; padding: 6px 2px; }
.langue:hover { color: var(--encre); }

/* Boutons : plein (noir, ou blanc sur fond sombre) et ligne */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px;
  border-radius: 2px; font-family: "Archivo", sans-serif; font-stretch: 106%; font-weight: 600; font-size: 14.5px; letter-spacing: 0.02em;
  text-decoration: none; transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}
.bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bouton-plein { background: var(--encre); color: var(--fond); }
.bouton-plein:hover { background: #2c2d31; }
.bouton-ligne { border: 1px solid var(--encre); color: var(--encre); }
.bouton-ligne:hover { background: var(--encre); color: var(--fond); }
.bouton-plein.bouton-clair { background: var(--fond); color: var(--encre); }
.bouton-plein.bouton-clair:hover { background: #e7e7e7; }
.bouton-ligne.bouton-clair { border-color: rgba(255, 255, 255, 0.8); color: var(--fond); }
.bouton-ligne.bouton-clair:hover { background: var(--fond); color: var(--encre); }
.bouton-petit { min-height: 40px; padding: 0 18px; font-size: 13.5px; }

/* Ouverture : grande vidéo, titre par-dessus */
.ouverture { position: relative; height: min(calc(100svh - var(--entete)), 56.25vw); min-height: 520px; overflow: hidden; background: var(--sombre); }
.ouverture video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ouverture-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, 0.62) 0%, rgba(8, 9, 11, 0.44) 32%, rgba(8, 9, 11, 0.1) 56%, rgba(8, 9, 11, 0) 100%); }
.ouverture-texte { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--marge); color: var(--fond); }
.ouverture h1 { color: var(--fond); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 15ch; text-wrap: balance; }
.ouverture-texte p { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 19.5px); color: rgba(255, 255, 255, 0.9); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ouverture-pause { position: absolute; right: var(--marge); bottom: 22px; z-index: 2; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); padding: 6px 2px; }
.ouverture-pause:hover { color: var(--fond); }

/* Blocs */
.bloc { padding: clamp(72px, 9vw, 120px) var(--marge) 0; }
.bloc-tete { text-align: center; margin: 0 auto 44px; max-width: 760px; }
.bloc-tete h2, .intro h2 { font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.bloc-tete p { margin-top: 10px; color: var(--gris); font-size: 16.5px; }

/* Présentation */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: calc(1040px + 2 * var(--marge)); margin: 0 auto; }
.intro-texte h2 { margin-bottom: 22px; }
.intro-texte p { font-size: 18px; color: var(--texte); max-width: 52ch; }
.intro-texte p + p { margin-top: 14px; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }

/* Galeries : chaque ligne remplit la largeur, chaque vidéo garde son format (app.js) */
.galerie { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 14px; }
.galerie::after { content: ""; flex-grow: 1000000; }
.galerie.justifiee::after { display: none; }
.plan { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--h)); max-width: calc(var(--r) * var(--h) * 1.35); min-width: 0; text-align: center; }
.ecran { position: relative; display: block; width: 100%; aspect-ratio: var(--r); overflow: hidden; background: var(--fond-doux); border-radius: 2px; }
.ecran img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--doux); }
.ecran::after { content: ""; position: absolute; inset: 0; background: rgba(8, 9, 11, 0.28); opacity: 0; transition: opacity 0.25s ease-out; }
.lecture { position: absolute; left: 50%; top: 50%; z-index: 2; width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: 0; transition: opacity 0.25s ease-out; }
.lecture svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.5; }
.lecture svg .plein { fill: #fff; stroke: none; }
.ecran:hover img, .ecran:focus-visible img { transform: scale(1.03); }
.ecran:hover::after, .ecran:focus-visible::after, .ecran:hover .lecture, .ecran:focus-visible .lecture { opacity: 1; }
.plan h3 { margin-top: 16px; font-weight: 600; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; }
.plan p { margin: 4px auto 0; font-size: 13.5px; line-height: 1.4; color: var(--gris); }
.relance { margin-top: 48px; text-align: center; }

/* Avis : bulles de messages */
.fil { display: flex; flex-direction: column; gap: 16px; max-width: 460px; margin: 0 auto; }
.bulle { align-self: flex-start; max-width: 90%; }
.bulle blockquote {
  position: relative; background: var(--bulle); color: #0b0b0b; padding: 9px 14px 10px; border-radius: 20px;
  font-family: -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif; font-size: 17px; line-height: 1.32;
}
.bulle blockquote::before { content: ""; position: absolute; left: -7px; bottom: 0; width: 20px; height: 20px; background: var(--bulle); border-bottom-right-radius: 15px; }
.bulle blockquote::after { content: ""; position: absolute; left: -10px; bottom: 0; width: 10px; height: 20px; background: var(--fond); border-bottom-right-radius: 10px; }
.bulle figcaption { margin: 6px 0 0 14px; font-size: 12.5px; color: var(--gris); }
.fil-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--gris); }

/* Comment ça marche : quatre étapes numérotées (l'ordre compte), puis l'accès à l'espace client */
.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; max-width: 1240px; margin: 0 auto; padding: 0; }
.etapes li { counter-increment: etape; padding-top: 18px; border-top: 1px solid var(--encre); }
.etapes li::before { content: counter(etape); display: block; font-family: "Archivo", sans-serif; font-stretch: 106%; font-weight: 600; font-size: 15px; color: var(--gris); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.etapes h3 { font-family: "Archivo", sans-serif; font-stretch: 106%; font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--encre); margin-bottom: 8px; text-wrap: balance; }
.etapes p { font-size: 16px; color: var(--texte); }
.fonct-lien { text-align: center; margin-top: 44px; }
.menu-espace { font-weight: 600; }

/* Formulaire « Parlez-moi de votre projet » */
.formulaire-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; max-width: 820px; margin: 0 auto; }
.fc-champ { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fc-large { grid-column: 1 / -1; }
.formulaire-contact[hidden] { display: none; }
.fc-champ label, .fc-champ legend { font-family: "Archivo", sans-serif; font-stretch: 106%; font-weight: 600; font-size: 14.5px; color: var(--encre); padding: 0; }
.fc-champ input, .fc-champ select, .fc-champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c9cacd; border-radius: 2px; background: var(--fond);
  font: inherit; font-size: 16px; color: var(--encre); caret-color: var(--encre);
}
.fc-champ textarea { min-height: 0; line-height: 1.5; resize: vertical; }
.fc-champ input::placeholder, .fc-champ textarea::placeholder { color: #8a8c91; }
.fc-champ input:focus, .fc-champ select:focus, .fc-champ textarea:focus { outline: 2px solid var(--encre); outline-offset: 0; border-color: var(--encre); }
.fc-radio { display: flex; gap: 10px; align-items: center; min-height: 32px; font-weight: 400 !important; font-size: 16px !important; color: var(--texte) !important; cursor: pointer; }
.fc-radio input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--encre); }
.fc-aide { font-size: 14.5px; color: var(--gris); margin: -4px 0 0; }
.fc-aide a { color: var(--gris); }
.fc-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fc-fin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fc-statut { margin: 0; font-size: 15px; color: var(--encre); }
.fc-statut.fc-erreur { color: #a1251b; }
.fc-merci { max-width: 640px; margin: 0 auto; padding: 28px 24px; text-align: center; font-size: 19px; font-weight: 500; color: var(--encre); border: 1px solid var(--encre); }
.fc-merci:focus { outline: none; }

/* Tarifs */
.tarifs { max-width: 640px; margin: 0 auto; }
.tarif { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
.tarif:first-child { border-top: 1px solid var(--ligne); }
.tarif dt { font-family: "Archivo", sans-serif; font-stretch: 106%; font-weight: 600; font-size: 16px; color: var(--encre); }
.tarif dd { font-size: 16px; color: var(--texte); text-align: right; font-variant-numeric: tabular-nums; }
.faits { margin-top: 22px; text-align: center; font-size: 15px; color: var(--gris); }

/* Contact et pied : bandeau sombre */
.contact { margin-top: clamp(72px, 9vw, 120px); background: var(--sombre); color: rgba(255, 255, 255, 0.82); text-align: center; padding: clamp(72px, 9vw, 112px) var(--marge); }
.contact h2 { color: var(--fond); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; }
.contact p { margin: 16px auto 0; max-width: 46ch; font-size: 18px; }
.contact .actions { justify-content: center; }
.contact .profil { margin-top: 22px; font-size: 16px; color: rgba(255, 255, 255, 0.6); }
.contact .profil a { color: var(--fond); text-underline-offset: 3px; }
.pied { background: var(--sombre); color: rgba(255, 255, 255, 0.6); text-align: center; font-size: 14px; padding: 0 20px calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pied p { padding-top: 14px; }
.pied .nom-pied { color: var(--fond); padding-top: 40px; font-size: 15px; }
.pied a { color: rgba(255, 255, 255, 0.85); }

/* Barre de contact fixe sur téléphone */
.barre-mobile { display: none; }

/* Lecteur */
.lecteur { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 80px 28px; background: #08090b; }
body.lecteur-ouvert .barre-mobile { display: none; }
.lecteur[hidden] { display: none; }
.lecteur-cadre { --r: 0.5625; aspect-ratio: var(--r); width: min(calc(100vw - 160px), calc((100svh - 240px) * var(--r)), 1280px); background: #000; }
.lecteur-cadre video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.commandes { display: flex; align-items: center; gap: 6px; width: min(calc(100vw - 160px), 760px); max-width: 100%; margin-top: 10px; color: #fff; }
.cmd { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; transition: background-color 0.18s ease-out; }
.cmd:hover { background: rgba(255, 255, 255, 0.1); }
.cmd svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#cmd-lecture .ico-lecture, #cmd-lecture.en-pause .ico-pause { display: none; }
#cmd-lecture.en-pause .ico-lecture { display: inline; }
#cmd-son .ico-muet, #cmd-son.muet .ico-son { display: none; }
#cmd-son.muet .ico-muet { display: inline; }
.cmd-temps { flex: 1; min-width: 0; height: 24px; margin: 0 6px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cmd-temps::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, 0.28) var(--p, 0%)); }
.cmd-temps::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.28); }
.cmd-temps::-moz-range-progress { height: 2px; background: #fff; }
.cmd-temps::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.cmd-temps::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.cmd-duree { flex: none; font-size: 13px; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.lecteur-legende { margin-top: 16px; width: min(calc(100vw - 160px), 680px); text-align: center; color: rgba(255, 255, 255, 0.75); }
.lecteur-legende h3 { color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.lecteur-legende p { margin-top: 6px; font-size: 14.5px; }
.lecteur-btn { position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; transition: background-color 0.18s ease-out; }
.lecteur-btn:hover { background: rgba(255, 255, 255, 0.1); }
.lecteur-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lecteur-fermer { top: 12px; right: 12px; }
.lecteur-prec { left: 16px; top: 50%; margin-top: -24px; }
.lecteur-suiv { right: 16px; top: 50%; margin-top: -24px; }

/* Pages de texte (confidentialité) */
.texte { max-width: 70ch; margin: 0 auto; padding: 56px 20px 96px; }
.texte h1 { font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); }
.texte h2 { font-weight: 600; font-size: 19px; margin: 36px 0 8px; }
.texte p, .texte li { margin-top: 10px; }
.texte ul { list-style: disc; padding-left: 20px; }
.texte .maj { color: var(--gris); font-size: 14px; }

@media (max-width: 1080px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
  .menu-bouton { display: inline-flex; }
  .menu { display: none; }
  .menu.ouvert {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--entete); left: 0; right: 0; margin: 0;
    background: var(--fond); padding: 8px var(--marge) 16px; box-shadow: 0 1px 0 var(--ligne), 0 18px 30px -20px rgba(0, 0, 0, 0.25);
  }
  .menu.ouvert a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--ligne); }
  .menu.ouvert a:last-child { border-bottom: 0; }
}
@media (max-width: 860px) {
  :root { --entete: 60px; --h: 240px; }
  .entete { gap: 16px; }
  .nom { font-size: 16px; letter-spacing: 0.22em; }
  .ouverture { height: calc(100svh - var(--entete) - 40px); max-height: 720px; min-height: 480px; }
  .ouverture-voile { background: linear-gradient(0deg, rgba(8, 9, 11, 0.8) 0%, rgba(8, 9, 11, 0.45) 55%, rgba(8, 9, 11, 0.2) 100%); }
  .ouverture-texte { justify-content: flex-end; padding-bottom: 72px; }
  .ouverture-pause { bottom: 18px; }
  .intro { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .barre-mobile {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); box-shadow: 0 -1px 0 var(--ligne);
    transform: translateY(110%); transition: transform 0.28s var(--doux);
  }
  .barre-mobile.visible { transform: none; }
  .barre-mobile .bouton { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 12px; white-space: nowrap; }
  .etapes { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .formulaire-contact { grid-template-columns: minmax(0, 1fr); }
  .fc-fin .bouton { width: 100%; }
  .pied { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .lecteur { padding: 60px 12px 92px; }
  .lecteur-cadre { width: min(calc(100vw - 24px), calc((100svh - 300px) * var(--r))); }
  .lecteur-legende, .commandes { width: calc(100vw - 24px); }
  .lecteur-prec, .lecteur-suiv { top: auto; bottom: 22px; margin-top: 0; }
  .lecteur-prec { left: calc(50% - 60px); }
  .lecteur-suiv { right: calc(50% - 60px); }
}
@media (max-width: 420px) {
  :root { --h: 300px; }
  .galerie { gap: 32px 10px; }
  .entete .bouton-petit { padding: 0 12px; white-space: nowrap; }
  .nom { font-size: 15px; letter-spacing: 0.16em; }
  .menu-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .entete { gap: 12px; }
  .ouverture-texte .actions .bouton { flex: 1 1 100%; }
  .plan p { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .nom { font-size: 13.5px; letter-spacing: 0.08em; }
  .entete { gap: 6px; }
  .entete .bouton-petit { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
