/* ============================================================
   VARIABLES — Charte philippeducheyron.com
============================================================ */
:root {
  --noir:        #0D1320;
  --anthracite:  #1C1C1C;
  --blanc:       #F4F1EA;
  --gris:        #A6A29A;
  --gris-clair:  #C8C4BC;
  --ocre:        #B8883B;
  --ocre-hover:  #9E7330;

  --font-titre:  'EB Garamond', Georgia, serif;
  --font-texte:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  --header-h:    160px;
  --max-w:       1200px;
  --max-w-narrow: 780px;
  --gap:         clamp(2rem, 5vw, 5rem);
}


/* ============================================================
   POLICES AUTO-HÉBERGÉES
============================================================ */
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EB_Garamond,Inter,Inter_Tight/EB_Garamond/static/EBGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EB_Garamond,Inter,Inter_Tight/EB_Garamond/static/EBGaramond-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EB_Garamond,Inter,Inter_Tight/EB_Garamond/static/EBGaramond-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/EB_Garamond,Inter,Inter_Tight/Inter/static/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/EB_Garamond,Inter,Inter_Tight/Inter/static/Inter_18pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/EB_Garamond,Inter,Inter_Tight/Inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-texte);
  font-weight: 400;
  color: var(--blanc);
  background-color: var(--noir);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   LANGUE — affichage FR / EN
============================================================ */
.lang-fr .lang-en { display: none; }
.lang-en .lang-fr { display: none; }

.lang-fr .lang-fr-label { display: inline; }
.lang-fr .lang-en-label { display: none; }
.lang-en .lang-fr-label { display: none; }
.lang-en .lang-en-label { display: inline; }


/* ============================================================
   SECTIONS — fond sombre / fond clair
============================================================ */
.section-dark {
  background-color: var(--noir);
  color: var(--blanc);
}

.section-light {
  background-color: var(--blanc);
  color: var(--noir);
}

.section-light .section-title,
.section-light h2,
.section-light h3 {
  color: var(--noir);
}

.section-light p,
.section-light blockquote {
  color: var(--anthracite);
}

.section-light a {
  color: var(--ocre);
}

.section-light .btn-primary,
.section-light .btn-contact {
  color: var(--noir);
}


/* ============================================================
   CONTENEURS
============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container-narrow {
  max-width: var(--max-w-narrow);
}


/* ============================================================
   TYPOGRAPHIE
============================================================ */
h1, h2, h3 {
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 2.5rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gris-clair);
}

.section-dark p { color: var(--gris-clair); }
.section-light p { color: var(--anthracite); }

em { font-style: italic; color: var(--gris); }


/* ============================================================
   BOUTONS
============================================================ */
.btn-primary,
.btn-contact {
  display: inline-block;
  background-color: var(--ocre);
  color: var(--noir);
  font-family: var(--font-texte);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-contact:hover {
  background-color: var(--blanc);
  color: var(--noir);
}


/* ============================================================
   HEADER
============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(13, 19, 32, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  transition: box-shadow 0.3s ease;
}

#header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  gap: 1.5rem;
}

.header-logo img {
  width: 155px;
  height: 155px;
  object-fit: contain;
  border-radius: 50%;
}

.header-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.header-nav .nav-link {
  font-family: var(--font-texte);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-clair);
  transition: color 0.2s ease;
}

.header-nav .nav-link:hover {
  color: var(--blanc);
}

.header-nav .nav-link.active {
  color: var(--blanc);
  border-bottom: 1px solid var(--ocre);
  padding-bottom: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-link {
  color: var(--blanc);
  transition: color 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.social-link:hover { color: var(--blanc); opacity: 1; }

.lang-toggle {
  background: none;
  border: 1px solid var(--gris);
  color: var(--gris-clair);
  font-family: var(--font-texte);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle:hover {
  border-color: var(--blanc);
  color: var(--blanc);
}

/* Menu burger — mobile */
.menu-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--blanc);
  border-radius: 2px;
  transition: opacity 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: rgba(13, 19, 32, 0.98);
  padding: 1.5rem 2rem;
  gap: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  color: var(--gris-clair);
  padding: 0.25rem 0;
}


/* ============================================================
   SECTION HÉROS
============================================================ */
.section-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--noir);
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: var(--header-h);
  padding-right: 12vw;
}

.hero-img {
  width: 76vw;
  height: auto;
  max-height: calc(100vh - var(--header-h) + 6rem);
  object-fit: contain;
  object-position: right center;
  opacity: 0.88;
}

/* Dégradé bas pour lisibilité du texte */
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,19,32,0) 25%,
    rgba(13,19,32,0.55) 60%,
    rgba(13,19,32,0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(5rem, 10vh, 8rem);
  max-width: 700px;
  text-align: left;
}

.hero-title {
  font-family: var(--font-titre);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blanc);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-accroche {
  font-family: var(--font-titre);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--blanc);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.hero-sub {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gris-clair);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.section-hero .btn-primary {
  font-size: 0.78rem;
  padding: 0.55rem 1.6rem;
  letter-spacing: 0.06em;
}

/* Bouton "Me contacter" dans le header — plus compact */
.header-right .btn-contact {
  font-size: 0.72rem;
  padding: 0.4rem 1rem;
  letter-spacing: 0.05em;
}


/* ============================================================
   SECTION PROBLÈME
============================================================ */
.section-probleme {
  padding: var(--gap) 0;
}

.probleme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.probleme-photo img {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  object-position: center;
}

.probleme-texte .section-title {
  font-style: italic;
}


/* ============================================================
   SECTION SOLUTION
============================================================ */
.section-solution {
  padding: var(--gap) 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.solution-item p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.solution-item h3 {
  font-family: var(--font-titre);
  font-style: italic;
  color: var(--ocre);
  min-height: 3.8rem;
  display: flex;
  align-items: flex-start;
}

.solution-cta {
  text-align: center;
  padding-top: 1rem;
}

.btn-large {
  font-size: 1.15rem;
  padding: 1.2rem 4.5rem;
  letter-spacing: 0.06em;
}

.solution-bascule-wrap {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.solution-bascule {
  font-family: var(--font-titre);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--blanc);
  line-height: 1.6;
  border-left: 2px solid var(--ocre);
  padding-left: 2rem;
  flex: 1;
}

.solution-photo {
  width: 160px;
  height: 210px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}


/* ============================================================
   SECTION À PROPOS
============================================================ */
.section-apropos {
  padding: var(--gap) 0;
}

.apropos-body {
  margin-bottom: 3rem;
}

.apropos-mise-en-avant {
  margin-top: 1.6rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--ocre);
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ocre);
}

.apropos-btn-manifeste {
  margin-top: 2rem;
}

.apropos-photo {
  width: 100%;
  max-width: 560px;
}

.apropos-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 4/3;
  background-color: var(--anthracite);
}


/* ============================================================
   SECTION PROCESSUS
============================================================ */
.section-processus {
  padding: var(--gap) 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.naissance-intro {
  margin-bottom: 3.5rem;
}

/* --- Grandes parties (1 à 4) --- */
.naissance-partie {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.naissance-partie:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.naissance-partie-titre {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ocre);
  margin-bottom: 1.75rem;
}

.naissance-chapeau {
  max-width: 60ch;
}

/* --- Grilles "Mon approche" / "Le processus" : image + titre + texte --- */
.approche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.approche-bloc img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  margin-bottom: 1rem;
  background-color: var(--anthracite);
}

.approche-bloc h4 {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--blanc);
}

.approche-bloc p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.approche-bloc-sans-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
}

/* --- Repères / Preuve sociale --- */
.preuve-sociale {
  margin-top: 2.5rem;
}

.preuve-sociale-titre {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin-bottom: 1.5rem;
  color: var(--blanc);
}

.preuve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.preuve-bloc img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 1rem;
  background-color: var(--anthracite);
}

.preuve-bloc h5 {
  font-family: var(--font-titre);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--ocre);
}

.preuve-bloc p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* --- Atelier --- */
.atelier-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.atelier-photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}


/* ============================================================
   SECTION CONTACT
============================================================ */
.section-contact {
  padding: var(--gap) 0;
}

.contact-intro {
  font-family: var(--font-titre);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--anthracite);
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--anthracite);
}

.form-group input,
.form-group textarea {
  background-color: transparent;
  border: 1px solid rgba(13,19,32,0.25);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  font-family: var(--font-texte);
  font-size: 1rem;
  color: var(--noir);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ocre);
}

.contact-email {
  font-size: 0.9rem;
  color: var(--gris) !important;
  margin-top: 1rem;
}

.contact-email a {
  color: var(--ocre);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gris-clair);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gris);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--blanc); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--gris);
  margin-bottom: 0;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .menu-burger { display: flex; }

  .solution-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .probleme-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .approche-grid,
  .preuve-grid,
  .atelier-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  html { font-size: 16px; }

  .header-right .social-link { display: none; }

  .hero-title { letter-spacing: 0.04em; }

  .approche-grid,
  .preuve-grid,
  .atelier-photos {
    grid-template-columns: 1fr;
  }

  .footer-links { gap: 1rem; }
}


/* ============================================================
   FORMULAIRE — Messages Formspree
============================================================ */
.form-success,
.form-error-global {
  padding: 1.2rem 1.5rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-success {
  background-color: rgba(184,136,59,0.12);
  border-left: 3px solid var(--ocre);
  color: var(--anthracite);
}

.form-error-global {
  background-color: rgba(180, 60, 60, 0.1);
  border-left: 3px solid #b43c3c;
  color: var(--anthracite);
}

.form-field-error {
  display: block;
  font-size: 0.8rem;
  color: #b43c3c;
  margin-top: 0.3rem;
}

[data-fs-field][aria-invalid="true"] {
  border-color: #b43c3c;
}
