/* ==========================================================
   STYLE DU SITE GIGIPICX
   Pas besoin de toucher ce fichier pour changer les textes,
   les prix ou les photos : tout se passe dans contenu.js.
   ========================================================== */

/* Une page qui défile : en-tête collant, accueil en deux colonnes,
   galerie en colonnes de hauteurs libres, formules en grille. */
:root {
  --noir: #000000;
  --surface: #111111;
  --surface-2: #171717;
  --ligne: #262626;
  --ligne-moy: #3A3A3A;
  --ligne-forte: #4A4A4A;
  --texte: #F2F0EB;
  --texte-2: #C9C7C1;
  --texte-3: #A8A6A0;
  --rouge: #D91E2A;
  --rouge-fonce: #B5121B;
  --or: #E2A62B;
  --blanc: #FFFFFF;
  --erreur: #FF7A7A;
  --voile: rgba(0, 0, 0, 0.94);

  --titre: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --corps: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --largeur: 1200px;
  color-scheme: dark;
}

@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url(polices/bebas-neue-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(polices/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(polices/inter-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(polices/inter-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(polices/inter-700.woff2) format('woff2'); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--noir);
}
img { max-width: 100%; -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.wrap {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--corps);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-rouge { background: var(--rouge); color: var(--blanc); border: 2px solid var(--blanc); }
.btn-rouge:hover { background: var(--rouge-fonce); }
.btn-contour { background: transparent; color: var(--texte); border: 1px solid var(--ligne-forte); }
.btn-contour:hover { border-color: var(--texte); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--noir);
  border-bottom: 1px solid var(--ligne);
}
.entete .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--titre);
  font-size: 30px;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
}
.marque img { height: 44px; width: auto; display: block; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; }
.menu a:not(.btn) { padding-block: 10px; color: var(--texte-2); }
.menu a:not(.btn):hover { color: var(--blanc); }
.menu .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Accueil ---------- */
.accueil .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-block: 40px 0;
}
.accueil-texte { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.surtitre {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
}
h1, h2 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: clamp(56px, 8vw, 120px); line-height: .92; }
h2 { font-size: clamp(44px, 5.5vw, 72px); line-height: .95; }
h3 { margin: 0; text-wrap: balance; }
.accueil-sous { margin: 0; font-size: 18px; color: var(--texte-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.accueil-photo {
  flex: 0 1 440px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ligne);
  background: var(--surface);
}
.accueil-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }

.disciplines { margin-top: 56px; border-block: 1px solid var(--ligne); }
.disciplines ul {
  list-style: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-block: 16px;
  font-family: var(--titre);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--texte-2);
}
.disciplines li { display: inline-flex; align-items: center; gap: 18px; }
.disciplines li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--or);
}

/* ---------- Sections ---------- */
.section { padding-block: 96px 0; }
.section-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-tete > div:first-child { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.intro { margin: 0; color: var(--texte-2); max-width: 40em; }

/* ---------- Portfolio ---------- */
.onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.onglet {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--corps);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--texte);
  border: 1px solid var(--ligne-moy);
  transition: background-color .15s ease, border-color .15s ease;
}
.onglet:hover { border-color: var(--texte-2); }
.onglet[aria-selected="true"] { background: var(--rouge); color: var(--blanc); border: 2px solid var(--blanc); }
.galerie { columns: 3 280px; column-gap: 16px; transition: opacity .18s ease, transform .18s ease; }
.galerie.sortie { opacity: 0; transform: translateY(8px); }
.vignette {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  break-inside: avoid;
}
.vignette img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .35s ease, transform .5s ease; }
.vignette.chargee img { opacity: 1; }
.vignette:hover img { transform: scale(1.03); }

/* ---------- Visionneuse ---------- */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--voile);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(76px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(76px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.visionneuse img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.vis-compteur {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--texte-2);
  font-variant-numeric: tabular-nums;
}
.rond {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--blanc);
  background: var(--surface);
  border: 1px solid var(--ligne-forte);
}
.rond:hover { border-color: var(--texte); }
.rond.rouge { background: var(--rouge); border: 2px solid var(--blanc); }
.vis-fermer { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.vis-nav {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

/* ---------- Tarifs ---------- */
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--ligne);
}
.formule.vedette { border: 2px solid var(--or); }
.etiquette {
  align-self: flex-start;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--or);
  color: var(--noir);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.formule h3 { font-size: 22px; font-weight: 700; }
.pour { margin: 4px 0 0; color: var(--texte-3); font-size: 15px; }
.prix { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.prix small { font-size: 14px; color: var(--texte-3); }
.prix strong { font-family: var(--titre); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.inclus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex-grow: 1; }
.inclus li { display: flex; gap: 10px; }
.inclus svg { flex-shrink: 0; margin-top: 3px; color: var(--or); }

.faq { max-width: 820px; margin-top: 56px; }
.faq h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--ligne); padding-block: 18px; }
.faq details:last-of-type { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--or); font-size: 26px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--texte-2); max-width: 40em; }

/* ---------- À propos ---------- */
.apropos .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.apropos-photo {
  flex: 1 1 300px;
  max-width: min(460px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ligne);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte-3);
  font-size: 14px;
}
.apropos-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apropos-texte { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.apropos-paragraphes { display: flex; flex-direction: column; gap: 14px; }
.apropos-texte p { margin: 0; color: var(--texte-2); max-width: 38em; }
.apropos-texte p.premier { font-size: 18px; color: var(--texte); }
.clients-bloc { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.petit-titre { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.client {
  height: 76px;
  min-width: 120px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--ligne);
  background: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
}
.client img { height: 62px; width: auto; display: block; }

/* ---------- Contact ---------- */
.contact-boite {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--ligne);
}
.contact-gauche { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-gauche p { margin: 0; color: var(--texte-2); }
.reseaux { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.reseaux a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 600; }
.reseaux a:hover { color: var(--or); }
.contact-droite { flex: 999 1 420px; min-width: 0; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: 14px; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--ligne-moy);
  background: var(--noir);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
}
.champ textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--or); outline: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mention { margin: 0; font-size: 13px; color: var(--texte-3); max-width: 420px; }
.mention a { color: var(--texte-2); }
.statut { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.statut.ok { color: var(--or); }
.statut.erreur { color: var(--erreur); }
.merci { min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.merci p { margin: 0; color: var(--texte-2); }
.merci .grand { font-size: 24px; font-weight: 700; color: var(--texte); }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); margin-top: 96px; }
.pied .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  font-size: 14px;
  color: var(--texte-3);
}
.pied p { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.pied p img { height: 32px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied nav a { color: var(--texte-2); }

/* ---------- Page mentions légales ---------- */
.legal { padding-block: 56px 0; }
.legal .wrap > div { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: clamp(40px, 5vw, 60px); }
.legal h3 { font-size: 19px; font-weight: 700; margin-top: 20px; }
.legal p { margin: 0; color: var(--texte-2); }

/* ---------- Message d'erreur du fichier contenu ---------- */
.alerte { margin: 24px auto; max-width: 720px; padding: 20px; border-radius: 12px; border: 2px solid var(--erreur); color: var(--texte); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .vignette img { opacity: 1; }
}
