/* ============================================================
   POLICES (hébergées localement, sans appel à Google)
   ============================================================ */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-italic-latin.woff2') format('woff2');
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --clr-bg:        #ffffff;
  --clr-bg-alt:    #f5f5f5;
  --clr-bg-cta:    #1400ff;
  --clr-text:      #0a0a0a;
  --clr-text-soft: #555555;
  --clr-accent:    #1400ff;
  --clr-border:    #e0e0e0;

  --ff-sans:   'Montserrat', system-ui, sans-serif;

  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.375rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.25rem;
  --fs-hero: clamp(2rem, 5vw, 3.25rem);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  --radius:   4px;
  --max-w:    820px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --clr-bg:        #0a0a14;
    --clr-bg-alt:    #111122;
    --clr-bg-cta:    #0a0a80;
    --clr-text:      #f0f0ff;
    --clr-text-soft: #9090b0;
    --clr-accent:    #5566ff;
    --clr-border:    #2a2a40;
  }
}

:root[data-theme="dark"] {
  --clr-bg:        #0a0a14;
  --clr-bg-alt:    #111122;
  --clr-bg-cta:    #0a0a80;
  --clr-text:      #f0f0ff;
  --clr-text-soft: #9090b0;
  --clr-accent:    #5566ff;
  --clr-border:    #2a2a40;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
}

img { max-width: 100%; display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: var(--space-md);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-sans);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 30px;
  width: auto;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.navbar-links a {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--clr-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--clr-accent); }

/* Burger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.navbar-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 640px) {
  .navbar-toggle { display: flex; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: var(--space-xs) 1rem var(--space-xs);
    gap: 0;
  }

  .navbar-links.is-open { display: flex; }

  .navbar-links li { border-bottom: 1px solid var(--clr-border); }
  .navbar-links li:last-child { border-bottom: none; }

  .navbar-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: var(--fs-base);
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--clr-border);
  /* account for sticky navbar when jumping to anchor */
  scroll-margin-top: 56px;
}

.hero { scroll-margin-top: 56px; }

.section--alt {
  background: var(--clr-bg-alt);
}

/* ============================================================
   HOVER ÉCLAIRCISSEMENT — desktop uniquement
   Approche par superposition : n'affecte pas les couleurs de
   texte ni de fond héritées, fonctionne en light et dark mode.
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .section {
    position: relative;
  }

  .section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
    transition: background 0.28s ease;
  }

  /* sections claires : légère couche blanche */
  .section:not(.section--tarifs):not(.section--cta):hover::after {
    background: rgba(255, 255, 255, 0.07);
  }

  /* sections sombres : légère couche blanche aussi */
  .section--tarifs:hover::after,
  .section--cta:hover::after {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: 0;
  background: var(--clr-bg);
}

.hero-image {
  width: 100%;
  min-height: 420px;
  max-height: 600px;
  background-image: url('img/header-plateau-tournage.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-md);
}

.hero-intro {
  background: var(--clr-accent);
  padding: var(--space-lg) 0;
}

.surtitre {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.hero-intro .surtitre {
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  font-family: var(--ff-sans);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0;
  color: #fff;
}

.hero h1 span {
  background: var(--clr-accent);
  padding: 0.1em 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  font-size: var(--fs-xl);
  color: #fff;
  max-width: 640px;
  margin-bottom: var(--space-md);
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h2 {
  font-family: var(--ff-sans);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.label {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-xs);
}

.intro {
  font-size: var(--fs-lg);
  color: var(--clr-text-soft);
  margin-bottom: var(--space-md);
  max-width: 680px;
}

.accroche {
  font-size: var(--fs-xl);
  line-height: 1.5;
}

/* ============================================================
   BOUTON
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85em 1.75em;
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn--light {
  background: #fff;
  color: var(--clr-bg-cta);
}

/* ============================================================
   CARDS (2 colonnes)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  padding: var(--space-md);
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius);
  background: var(--clr-accent);
  color: #fff;
}

.card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-base);
}

/* ============================================================
   LISTE
   ============================================================ */
.liste {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 660px;
}

.liste li {
  padding-left: 1.5em;
  position: relative;
  font-size: var(--fs-lg);
}

.liste li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 1.4em;
  line-height: 1.21;
  color: var(--clr-accent);
  font-weight: 500;
}

/* ============================================================
   CITATIONS
   ============================================================ */
.citation-methode {
  border-left: 3px solid var(--clr-accent);
  padding-left: var(--space-md);
  margin-block: var(--space-md);
}

.citation-methode p {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.5;
  color: var(--clr-text-soft);
}

.citation-grande {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.citation-grande p {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.citation-grande cite {
  font-style: normal;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-soft);
}

/* ============================================================
   BIO
   ============================================================ */
.bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-areas:
    "photo nom"
    "photo texte";
  grid-template-rows: auto 1fr;
  column-gap: var(--space-md);
  max-width: 760px;
}

.bio-photo {
  grid-area: photo;
  position: relative;
  align-self: start;
}

.bio-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.bio-nom {
  grid-area: nom;
  font-family: var(--ff-sans);
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.bio p {
  grid-area: texte;
  font-size: var(--fs-lg);
  color: var(--clr-text-soft);
}

@media (max-width: 640px) {
  .bio {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nom"
      "photo"
      "texte";
    grid-template-rows: auto;
  }

  .bio-photo {
    max-width: 220px;
    margin-bottom: var(--space-sm);
  }

  .bio p { font-size: var(--fs-base); }
}

/* ============================================================
   CTA
   ============================================================ */
.section--cta {
  background: var(--clr-bg-cta);
  color: #fff;
  border-top: none;
}

.section--cta h2 {
  color: #fff;
}

.section--cta .intro {
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   TARIFS
   ============================================================ */
.section--tarifs {
  background: #111110;
  border-top: none;
  color: #e8e6e1;
}

.label--light {
  color: #9a9690;
}

.tarifs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 640px) {
  .tarifs-grid { grid-template-columns: 1fr; }
}

.tarif-card {
  background: #1c1c1a;
  border: 1px solid #2e2e2b;
  border-radius: 8px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tarif-badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  background: transparent;
  border: 1px solid var(--clr-accent);
  border-radius: 2em;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #8899ff;
  width: fit-content;
}

.tarif-titre {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0;
}

.tarif-sous {
  font-size: var(--fs-sm);
  color: #9a9690;
  line-height: 1.5;
}

.tarif-duree {
  font-size: var(--fs-sm);
  color: #9a9690;
  padding-top: var(--space-xs);
  border-top: 1px solid #2e2e2b;
}

.tarif-liste {
  list-style: none;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.tarif-liste li {
  font-size: var(--fs-sm);
  color: #c8c6c0;
  padding-left: 1.25em;
  position: relative;
}

.tarif-liste li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 1.4em;
  line-height: 1.21;
  color: var(--clr-accent);
}

.tarif-prix-bloc {
  padding-top: var(--space-sm);
  border-top: 1px solid #2e2e2b;
}

.tarif-label {
  font-size: var(--fs-sm);
  color: #9a9690;
  display: block;
  margin-bottom: 0.2em;
}

.tarif-prix {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.tarif-ht {
  font-size: 1rem;
  font-weight: 400;
  color: #9a9690;
}

.tarif-paiement {
  font-size: var(--fs-sm);
  color: #9a9690;
  margin-top: 0.25em;
}

.btn-tarif {
  display: inline-block;
  margin-top: var(--space-xs);
  padding: 0.65em 1.4em;
  background: #2e2e2b;
  color: #e8e6e1;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s;
  width: fit-content;
}

.btn-tarif:hover { background: #3e3e3b; }

.tarif-devis {
  background: #151514;
  border-radius: 6px;
  padding: var(--space-sm) 1.25rem;
}

.tarif-devis strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.2em;
}

.tarif-devis p {
  font-size: var(--fs-sm);
  color: #c8c6c0;
  line-height: 1.5;
}

.tarif-note {
  margin-top: var(--space-md);
  background: #1c1c1a;
  border-radius: 8px;
  padding: var(--space-md);
}

.tarif-note p {
  font-size: var(--fs-sm);
  color: #c8c6c0;
}

.tarif-note strong {
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: var(--space-md);
  border-top: 1px solid var(--clr-border);
  font-size: var(--fs-sm);
  color: var(--clr-text-soft);
}

.footer-link {
  color: inherit;
  text-underline-offset: 2px;
}

.footer-link:hover { color: var(--clr-accent); }

/* ============================================================
   PAGE MENTIONS LÉGALES
   ============================================================ */
.legal h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.legal h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal p {
  color: var(--clr-text-soft);
  margin-bottom: var(--space-sm);
}

.legal a { color: var(--clr-accent); }

.navbar-retour {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--clr-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navbar-retour:hover { color: var(--clr-accent); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-icons {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  color: var(--clr-text-soft);
  transition: color 0.2s, border-color 0.2s;
}

.footer-icons a:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.footer-icons svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   RESPONSIVE GLOBAL
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2.5rem;
    --fs-3xl:   1.75rem;
    --fs-2xl:   1.4rem;
    --fs-hero:  2rem;
  }

  .hero-sub  { font-size: var(--fs-base); }
  .intro     { font-size: var(--fs-base); }
  .liste li  { font-size: var(--fs-base); }

  .citation-grande p { font-size: var(--fs-lg); }

  .accroche  { font-size: var(--fs-lg); }
}
