/* ===== Police (hébergée avec le site, rien n'est chargé depuis Google) ===== */
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("polices/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("polices/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Couleurs de ton compte Instagram ===== */
:root {
  --bleu: #1800ad;        /* fond partout */
  --beige: #fff8dc;       /* texte */
  --turquoise: #04c2ad;   /* petits accents : filets, survols, bandeau */
  --nuit: #0d0068;        /* bleu plus sombre : fond des photos qui chargent, visionneuse */

  --marge: clamp(1.25rem, 5vw, 5rem);
  --barre: 3.5rem;
  --police: "Bricolage", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--barre); }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.125rem;
  line-height: 1.6;
  background: var(--bleu);
  color: var(--beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
ul { margin: 0; }

:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 4px; }

.sr-seul {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 40;
  background: var(--beige); color: var(--bleu); padding: .6rem 1rem; text-decoration: none;
}
.evitement:focus { top: .75rem; }
.sans-js { padding: 6rem var(--marge); }

/* Apparition au scroll (seulement si JavaScript est actif) */
.js .revele { opacity: 0; transform: translateY(2rem); }
.js .revele.visible {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delai, 0ms);
}

/* ===== Barre de navigation ===== */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--barre);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--marge);
  background: var(--bleu); color: var(--beige);
  border-bottom: 1px solid rgb(255 248 220 / .22);
}
.barre__marque { font-weight: 700; font-stretch: 75%; font-size: 1.25rem; letter-spacing: .01em; text-decoration: none; }
.barre__nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); font-size: .95rem; }
.barre__nav a { text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.barre__nav a:hover { border-bottom-color: var(--turquoise); }
.progression {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--turquoise); transform: scaleX(0); transform-origin: left;
}
@media (max-width: 520px) {
  .barre__marque { display: none; }
  .barre__nav { width: 100%; justify-content: space-between; }
}

/* ===== Boutons ===== */
.bouton {
  display: inline-block; padding: .8em 1.4em;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 2px solid var(--beige); border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bouton--clair { background: var(--beige); color: var(--bleu); }
.bouton--clair:hover { background: var(--turquoise); border-color: var(--turquoise); }
.bouton--contour { color: var(--beige); }
.bouton--contour:hover { background: var(--beige); color: var(--bleu); }

/* ===== Accueil ===== */
.accueil {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  padding-top: var(--barre);
  overflow: hidden;
}
.accueil__texte {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) var(--marge);
  padding-right: clamp(1rem, 3vw, 3rem);
  position: relative; z-index: 4;
}
.accueil__nom {
  font-size: clamp(3.25rem, 8.5vw, 8.5rem);
  font-weight: 800; font-stretch: 75%;
  line-height: .9; letter-spacing: -.025em;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.accueil__accroche {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 600; font-stretch: 90%; line-height: 1.2;
  max-width: 28ch;
}
.accueil__presentation { margin-top: 1.25rem; max-width: 50ch; opacity: .9; }
.accueil__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Trois photos côte à côte, décalées en hauteur, qui bougent à des vitesses différentes au scroll */
.accueil__cartes {
  display: flex; align-items: flex-start; align-self: center;
  gap: clamp(.7rem, 1.5vw, 1.3rem);
  margin-right: var(--marge); padding: 2rem 0;
}
.carte-photo {
  position: relative; flex: 1 1 0; min-width: 0; will-change: transform;
  box-shadow: 0 1.25rem 2.5rem rgb(5 0 60 / .45); background: var(--nuit);
}
.carte-photo img { width: 100%; }
.carte-photo:nth-child(1) { margin-top: 3.5rem; }
.carte-photo:nth-child(3) { margin-top: 6.5rem; }
@media (max-width: 820px) {
  .accueil { grid-template-columns: 1fr; min-height: 0; }
  .accueil__texte { padding-top: 2.5rem; padding-bottom: 2rem; }
  .accueil__nom { font-size: clamp(3.5rem, 16vw, 6rem); }
  .accueil__cartes { align-self: auto; margin: 0; padding: 0 var(--marge) 3rem; gap: .6rem; }
  .carte-photo, .carte-photo:nth-child(n) { margin-top: 0; transform: none; }
}

/* ===== Bandes de mots qui défilent quand on scrolle ===== */
.defile { overflow: hidden; }
.defile__piste { display: flex; width: max-content; will-change: transform; }
.defile__segment { display: flex; flex: none; }
.defile__mot { flex: none; white-space: nowrap; font-weight: 800; font-stretch: 75%; line-height: 1; }
.defile__mot::after {
  content: ""; display: inline-block; width: .3em; height: .3em; border-radius: 50%;
  background: currentColor; margin: 0 .7em; vertical-align: middle;
}

.bandeau { background: var(--turquoise); color: var(--bleu); padding: .85rem 0; }
.bandeau .defile__mot { font-size: clamp(1.75rem, 4.6vw, 3.75rem); }

.bandeau + #projets { padding-top: clamp(3rem, 7vw, 6rem); }

.client__bande { border-block: 2px solid var(--turquoise); padding: .5rem 0 .3rem; }
.client__bande .defile__mot {
  font-size: clamp(4rem, 12vw, 10.5rem);
  color: transparent; -webkit-text-stroke: 2px var(--turquoise);
}
.client__bande .defile__mot::after { background: var(--turquoise); width: .22em; height: .22em; }

/* ===== Projets ===== */
.client__corps { padding: clamp(3rem, 7vw, 6rem) var(--marge) clamp(3.5rem, 7vw, 6rem); }
.client__entete {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.client__logo { height: clamp(6.5rem, 13vw, 10.5rem); width: auto; }
.client__nom {
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 800; font-stretch: 75%; line-height: .95; letter-spacing: -.02em;
  text-wrap: balance;
}
.client__description { margin-top: .75rem; font-size: 1.2rem; opacity: .92; }
.client__role { margin-top: .4rem; max-width: 52ch; opacity: .92; }
@media (max-width: 640px) { .client__entete { grid-template-columns: 1fr; } }

.projet { padding-top: clamp(2.25rem, 4.5vw, 3.5rem); }
.projet + .projet { margin-top: clamp(3rem, 6vw, 5rem); border-top: 2px solid var(--turquoise); }
.projet__haut { display: block; }
.projet__titre {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  font-weight: 700; font-stretch: 80%; line-height: 1; letter-spacing: -.01em;
  text-wrap: balance;
}
.projet__meta { margin-top: .75rem; line-height: 1.35; opacity: .9; }
.projet__recit {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem clamp(1.5rem, 4vw, 4rem); margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.projet__bloc h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; }
.projet__bloc p { max-width: 60ch; }
.projet__bloc p + p { margin-top: .8rem; }
.temoignage {
  grid-column: 1 / -1; padding-left: 1.25rem; border-left: 3px solid var(--turquoise);
  font-size: 1.4rem; line-height: 1.35; font-weight: 500; font-stretch: 90%;
}
.temoignage footer { margin-top: .75rem; font-size: 1rem; font-weight: 400; opacity: .9; }
.projet__sous-titre {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; font-stretch: 80%; line-height: 1.15;
}
.projet__haut + .galerie { margin-top: clamp(2rem, 4vw, 3rem); }

/* Galeries : rangées de même hauteur, chaque photo garde son format (aucun recadrage) */
.galerie { display: flex; flex-wrap: wrap; gap: .6rem; }
.galerie::after { content: ""; flex: 999 1 0; }  /* la dernière rangée ne s'étire pas… */
.galerie--pleine::after { display: none; }        /* …sauf si elle est presque pleine */
.vignette {
  display: block; flex: .667 1 200px; min-width: 0; margin: 0; padding: 0;
  border: 0; background: none; color: inherit; cursor: zoom-in; overflow: hidden;
}
.vignette img { width: 100%; height: auto; aspect-ratio: 2 / 3; color: transparent; font-size: 0; background: var(--nuit); transition: transform .5s ease, filter .3s; }
.vignette:hover img { transform: scale(1.04); filter: brightness(1.06); }
@media (max-width: 560px) { .vignette { flex-basis: 150px; } }

/* Visuels : une rangée, collés les uns aux autres */
.affiches { display: flex; flex-wrap: wrap; gap: .25rem; }
.affiches .vignette { flex: .6 1 150px; }

/* ===== Services ===== */
.services { padding: clamp(4rem, 9vw, 8rem) var(--marge) clamp(3rem, 6vw, 5rem); border-top: 4px solid var(--beige); }
.services h2, .apropos h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800; font-stretch: 75%; line-height: .92; letter-spacing: -.02em;
  text-wrap: balance;
}
.services__intro { margin-top: 1.25rem; max-width: 52ch; }
.services__grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem);
}
.service { border-top: 3px solid var(--turquoise); padding-top: 1.25rem; display: flex; flex-direction: column; }
.service h3 { font-size: 1.75rem; font-weight: 700; font-stretch: 80%; line-height: 1.1; }
.service > p { margin-top: .75rem; }
.service ul { margin-top: 1rem; }
.service li { padding: .35rem 0; border-top: 1px solid rgb(255 248 220 / .3); }
.service > .service__prix { margin-top: auto; padding-top: 1.25rem; font-weight: 700; color: var(--turquoise); }

/* ===== À propos ===== */
.apropos { padding: clamp(3rem, 6vw, 5rem) var(--marge) clamp(4rem, 9vw, 8rem); }
.apropos__haut {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.apropos__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--nuit); }
.apropos__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.apropos h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); }
.apropos__texte p { margin-top: 1.1rem; max-width: 56ch; }
.apropos__texte h2 + p { margin-top: 1.75rem; }
@media (max-width: 760px) { .apropos__haut { grid-template-columns: 1fr; } .apropos__photo { aspect-ratio: 1 / 1; } }

/* Parcours avec Sipario : la ligne se remplit au scroll */
.parcours { margin-top: clamp(3.5rem, 8vw, 6rem); }
.parcours__titre {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; font-stretch: 80%; line-height: 1.1;
}
.parcours__corps { --p: 0; position: relative; margin-top: 2rem; }
.parcours__ligne {
  position: absolute; left: 0; right: 0; top: .6rem; height: 3px;
  background: linear-gradient(to right, var(--turquoise) calc(var(--p) * 100%), rgb(255 248 220 / .3) calc(var(--p) * 100%));
}
.parcours__etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.parcours__etape { display: flex; flex-direction: column; padding-top: 2.25rem; position: relative; opacity: .55; transition: opacity .4s; }
.parcours__etape strong { font-size: 1.5rem; font-weight: 700; font-stretch: 80%; line-height: 1.1; }
.parcours__etape span:last-child { margin-top: .35rem; max-width: 26ch; }
.parcours__point {
  position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--bleu); border: 3px solid rgb(255 248 220 / .6); transition: background-color .4s, border-color .4s;
}
.parcours__etape.actif { opacity: 1; }
.parcours__etape.actif .parcours__point { background: var(--turquoise); border-color: var(--turquoise); }
@media (max-width: 600px) {
  .parcours__ligne {
    left: .6rem; right: auto; top: 0; bottom: 0; width: 3px; height: auto;
    background: linear-gradient(to bottom, var(--turquoise) calc(var(--p) * 100%), rgb(255 248 220 / .3) calc(var(--p) * 100%));
  }
  .parcours__etapes { grid-template-columns: 1fr; gap: 1.75rem; }
  .parcours__etape { padding: 0 0 0 2.5rem; }
}

/* ===== Contact ===== */
.contact { padding: clamp(4rem, 9vw, 8rem) var(--marge) 2rem; border-top: 4px solid var(--beige); }
.contact h2 {
  max-width: 20ch;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800; font-stretch: 75%; line-height: .92; letter-spacing: -.02em;
  text-wrap: balance;
}
.contact__texte { margin-top: 1.5rem; max-width: 50ch; }
.contact__liens { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.contact__lien {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: clamp(1.4rem, 3.6vw, 2.75rem);
  font-weight: 800; font-stretch: 75%; line-height: 1.1; letter-spacing: -.01em;
  text-decoration: none; transition: color .2s;
}
.contact__lien span {
  text-decoration: underline; text-decoration-color: var(--turquoise);
  text-decoration-thickness: .08em; text-underline-offset: .14em; overflow-wrap: anywhere;
}
.contact__lien:hover { color: var(--turquoise); }
.icone { flex: none; width: 1em; height: 1em; }
.mentions { margin-top: clamp(4rem, 9vw, 7rem); font-size: .9rem; border-top: 1px solid rgb(255 248 220 / .3); padding-top: 1rem; }
.mentions summary { cursor: pointer; width: fit-content; }
.mentions dl { margin-top: 1rem; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; max-width: 60rem; }
.mentions dt { font-weight: 700; }
.contact__droits { margin-top: 1.5rem; font-size: .85rem; opacity: .8; }

/* ===== Visionneuse ===== */
.visionneuse {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: rgb(13 0 104 / .97); color: var(--beige);
}
.visionneuse:not([open]) { display: none; }
.visionneuse[open] { display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; }
.visionneuse::backdrop { background: rgb(13 0 104 / .97); }
.visionneuse__cadre {
  grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: .75rem;
  max-height: 100dvh; padding: 3.5rem 0 1.25rem;
}
.visionneuse__cadre img { max-width: 100%; max-height: calc(100dvh - 8.5rem); width: auto; height: auto; object-fit: contain; }
.visionneuse figcaption { font-size: .95rem; text-align: center; max-width: 60ch; opacity: .9; }
.visionneuse button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.visionneuse__fermer {
  position: absolute; top: .75rem; right: 1rem; padding: .5rem .9rem;
  border: 2px solid currentColor !important; border-radius: 2px; font-weight: 600;
}
.visionneuse .visionneuse__nav { font-size: 3rem; line-height: 1; height: 100%; }
.visionneuse__nav--prec { grid-column: 1; grid-row: 1; }
.visionneuse__nav--suiv { grid-column: 3; grid-row: 1; }
.visionneuse__nav:hover { background: rgb(255 248 220 / .1); }
@media (max-width: 560px) {
  .visionneuse[open] { grid-template-columns: 2.5rem 1fr 2.5rem; }
  .visionneuse .visionneuse__nav { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele { opacity: 1; transform: none; }
  .vignette img, .parcours__etape, .parcours__point { transition: none; }
}
