@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@300;400;500;600&display=swap');
:root{
  --color-bg:#0e0e11;
  --color-text:#ece8e1;
  --color-primary:#08080a;
  --color-secondary:#1a1a1f;
  --color-accent:#c2654a;
  --color-border:#2a2a31;
  --font-main:'Manrope', system-ui, -apple-system, sans-serif;
}


/* ============================================================
   FOUNDATION — base deterministe (design tokens + composants)
   Tout est pilotable via les variables :root ci-dessous.
   ============================================================ */

:root {
  /* Polices (heritent de la police choisie par Claude) */
  --font-heading: var(--font-main, system-ui, -apple-system, sans-serif);
  --font-body:    var(--font-main, system-ui, -apple-system, sans-serif);

  /* Couleurs derivees (defauts ; le look ou l'editeur peuvent les fixer) */
  --color-text-muted: var(--color-secondary, #6b7280);
  --color-bg-alt:     color-mix(in srgb, var(--color-text, #222222) 4%, var(--color-bg, #ffffff));
  --link-color:       var(--color-accent, #b45309);
  --link-hover:       var(--link-color);
  --link-decoration:  underline;

  /* Titre hero */
  --hero-title-size:   3rem;
  --hero-title-weight: 800;
  --hero-title-color:  var(--color-text, #222222);
  /* Sous-titre hero */
  --hero-sub-size:     1.25rem;
  --hero-sub-weight:   400;
  --hero-sub-color:    var(--color-text, #222222);
  /* Hero : fond, rythme, media, overlay (immersif) */
  --hero-bg:               transparent;
  --hero-pad-y:            4rem;
  --hero-align:            center;
  --hero-media-bg:         var(--color-border, #e8e4dd);
  --hero-media-radius:     var(--radius);
  --hero-media-min-height: 340px;
  --hero-overlay-color:    #000000;
  --hero-overlay-opacity:  0.45;

  /* Titres de section */
  --h1-size: 2.5rem;  --h1-weight: 700; --h1-color: var(--color-text, #222222);
  --h2-size: 1.9rem;  --h2-weight: 700; --h2-color: var(--color-text, #222222);
  --h3-size: 1.35rem; --h3-weight: 600; --h3-color: var(--color-text, #222222);
  --heading-line:           1.15;
  --heading-letter-spacing: normal;

  /* Corps & chapo */
  --text-size: 1.05rem;
  --text-line: 1.65;
  --lead-size: 1.2rem;

  /* Mise en page & espacement */
  --container-width: 1160px;
  --section-pad:     5rem;
  --block-gap:       1.5rem;
  --radius:          10px;
  --radius-sm:       6px;
  --radius-lg:       18px;
  --shadow:          0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-sm:       0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg:       0 20px 50px rgba(0, 0, 0, 0.10);
  --transition:      0.15s ease;

  /* Page & sections */
  --body-bg:            var(--color-bg, #ffffff);
  --section-bg:         transparent;
  --section-alt-bg:     var(--color-bg-alt);
  --section-head-align: left;
  --media-text-gap:     3rem;
  --media-text-ratio:   1fr 1fr;

  /* En-tete (header / nav / logo) — defauts = valeurs actuelles */
  --header-bg:              var(--color-primary, #1f2937);
  --header-text:            #ffffff;
  --header-shadow:          0 2px 12px rgba(0, 0, 0, 0.18);
  --header-pad-y:           0.85rem;
  --header-link:            #ffffff;
  --header-link-hover-bg:   var(--color-accent, #b45309);
  --header-link-hover-text: var(--color-primary, #1f2937);
  --logo-size:              1.25rem;
  --logo-weight:            700;
  --logo-sub-color:         var(--color-accent, #b45309);

  /* Pied de page (footer) — defauts = valeurs actuelles */
  --footer-bg:            var(--color-primary, #1f2937);
  --footer-text:          #ffffff;
  --footer-heading-color: var(--color-accent, #b45309);
  --footer-link:          #ffffff;
  --footer-link-hover:    var(--color-accent, #b45309);
  --footer-pad:           3rem;
  --footer-gap:           2rem;
  --footer-border:        rgba(255, 255, 255, 0.12);

  /* Boutons */
  --btn-pad-x:  1.6rem;
  --btn-pad-y:  0.85rem;
  --btn-weight: 600;
  --btn-radius: var(--radius);
  --btn-bg:         var(--color-accent, #b45309);
  --btn-text:       #ffffff;
  --btn-bg-hover:   var(--btn-bg);
  --btn-text-hover: var(--btn-text);
  --btn-border:     2px solid transparent;
  --btn-shadow:     none;
  /* Bouton secondaire (contour) */
  --btn2-bg:           transparent;
  --btn2-text:         var(--color-primary, #1f2937);
  --btn2-border-color: var(--color-primary, #1f2937);

  /* Cartes */
  --card-pad:    1.75rem;
  --card-radius: var(--radius);
  --card-shadow: var(--shadow);
  --card-bg:     #ffffff;
  --card-border: 1px solid var(--color-border, #e5e7eb);
  --card-text:   var(--color-text-muted);
  --card-title-color: var(--color-text, #222222);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: var(--text-line);
  color: var(--color-text, #222222);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }

/* ---- Typographie ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: var(--heading-line); letter-spacing: var(--heading-letter-spacing); }
h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); color: var(--h1-color); }
h2 { font-size: var(--h2-size); font-weight: var(--h2-weight); color: var(--h2-color); }
h3 { font-size: var(--h3-size); font-weight: var(--h3-weight); color: var(--h3-color); }
p  { margin-bottom: var(--block-gap); }
p:last-child { margin-bottom: 0; }
a  { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: var(--link-decoration); }
.lead { font-size: var(--lead-size); color: var(--color-text-muted); line-height: 1.5; }
.muted { color: var(--color-text-muted); }
ul, ol { padding-left: 1.4em; margin-bottom: var(--block-gap); }
li { margin-bottom: 0.4em; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: var(--section-pad); background: var(--section-bg); }
.section--alt { background: var(--section-alt-bg); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; text-align: var(--section-head-align); }
.section__title { font-size: var(--h2-size); font-weight: var(--h2-weight); color: var(--h2-color); margin-bottom: 0.75rem; }
.section__subtitle { font-size: var(--lead-size); color: var(--color-text-muted); }

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-body);
  font-weight: var(--btn-weight);
  font-size: 0.98rem;
  line-height: 1;
  border: var(--btn-border);
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-text-hover); opacity: 0.88; text-decoration: none; }
.btn--outline { background: var(--btn2-bg); border-color: var(--btn2-border-color); color: var(--btn2-text); }
.btn--outline:hover { background: var(--color-primary, #1f2937); color: #ffffff; opacity: 1; }

/* ---- Cartes & grilles ---- */
.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--card-pad);
}
.card__title { font-size: var(--h3-size); font-weight: var(--h3-weight); color: var(--card-title-color); margin-bottom: 0.6rem; }
.card__text  { color: var(--card-text); }
.grid { display: grid; gap: var(--block-gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---- Section image + texte (media-text) ---- */
.media-text { display: grid; grid-template-columns: var(--media-text-ratio); gap: var(--media-text-gap); align-items: center; }
.media-text .img-placeholder { min-height: 320px; height: 100%; }
.media-text__body > * + * { margin-top: 1rem; }

/* ---- Media (image placeholder) ---- */
.img-placeholder {
  width: 100%; min-height: 260px;
  background: var(--color-border, #e8e4dd);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 0.9rem;
}

/* ---- Formulaires ---- */
label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
input, textarea, select {
  width: 100%; padding: 0.7rem 0.9rem;
  font: inherit; color: var(--color-text, #222222);
  background: #ffffff;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--color-accent, #b45309); outline-offset: 1px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root { --section-pad: 3.25rem; }
  h1 { font-size: calc(var(--h1-size) * 0.78); }
  .section__title { font-size: calc(var(--h2-size) * 0.85); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .media-text { grid-template-columns: 1fr; }
}

/* CHROME-INJECTED — header/nav/footer (templates Python) */
.site-header { background: var(--header-bg); position: sticky; top: 0; z-index: 100; box-shadow: var(--header-shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: var(--header-pad-y); padding-bottom: var(--header-pad-y); }
.site-logo { display: flex; flex-direction: column; color: var(--header-text); text-decoration: none; }
.site-logo strong { font-size: var(--logo-size); font-weight: var(--logo-weight); letter-spacing: 0.03em; line-height: 1.2; }
.site-logo span { font-size: 0.72rem; color: var(--logo-sub-color); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.nav-desktop { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.nav-desktop a { color: var(--header-link); font-size: 0.9rem; padding: 0.45rem 0.85rem; border-radius: var(--radius); text-decoration: none; letter-spacing: 0.03em; transition: background .2s, color .2s; }
.nav-desktop a:hover, .nav-desktop a.active { background: var(--header-link-hover-bg); color: var(--header-link-hover-text); }
.burger-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; background: transparent; border: none; cursor: pointer; }
.burger-btn span { display: block; width: 26px; height: 2px; background: var(--header-text); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; background: var(--color-secondary); overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.nav-mobile.open { max-height: 520px; }
.nav-mobile a { color: var(--header-text); padding: 0.9rem 1.5rem; text-decoration: none; border-top: 1px solid rgba(255,255,255,0.10); }
.nav-mobile a:hover, .nav-mobile a.active { background: var(--header-link-hover-bg); color: var(--header-link-hover-text); }
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 4rem; }
.site-footer .footer-grid { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--footer-gap); padding: var(--footer-pad) 1.5rem 2rem; }
.site-footer .footer-col { flex: 1 1 220px; }
.site-footer .footer-brand strong { display: block; font-size: 1.2rem; margin-bottom: 0.5rem; }
.site-footer h4 { color: var(--footer-heading-color); font-size: 0.9rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--footer-link); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--footer-link-hover); }
.site-footer p { opacity: 0.85; margin-bottom: 0.4rem; line-height: 1.5; }
.site-footer .footer-bottom { border-top: 1px solid var(--footer-border); padding: 1.2rem 1.5rem; text-align: center; font-size: 0.85rem; opacity: 0.7; }
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }
  .nav-mobile { display: flex; }
}
/* HEADER-PRESETS */
.site-header.hdr-compact .container { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.site-header.hdr-compact .site-logo strong { font-size: 1.05rem; }
@media (min-width: 769px) {
  .site-header.hdr-centre .container { flex-direction: column; gap: 0.6rem; }
  .site-header.hdr-centre .site-logo { align-items: center; text-align: center; }
  .site-header.hdr-centre .nav-desktop { justify-content: center; flex-wrap: wrap; }
  .site-header.hdr-gauche .container { justify-content: flex-start; gap: 2.5rem; }
}
.site-header.hdr-transparent { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: none; box-shadow: none; z-index: 5; }
.site-header.hdr-transparent .site-logo strong, .site-header.hdr-transparent .site-logo span, .site-header.hdr-transparent .nav-desktop a, .site-header.hdr-transparent .burger-btn { color: #fff; }

/* ============================================================
   LAYOUTS — agencements desktop (selection par body.lay-*)
   Une seule structure HTML ; la classe de <body> choisit l'agencement.
   ============================================================ */

/* ---- Classique : agencement de reference (defauts de la fondation) ---- */

/* ---- Split : sections image + texte en zigzag (hero 2 colonnes via le hero) ---- */
@media (min-width: 769px) {
  body.lay-split { --media-text-ratio: 1.05fr 0.95fr; --media-text-gap: 3.5rem; }
  body.lay-split .media-text .img-placeholder { order: 0; }
  body.lay-split .media-text .media-text__body { order: 1; }
  body.lay-split .media-text.media-rev .img-placeholder { order: 2; }
}

/* ---- Immersif : sections larges, images en grand, tetes centrees ---- */
body.lay-immersif { --section-pad: 6rem; }
@media (min-width: 769px) {
  body.lay-immersif .section__head { max-width: 760px; margin-inline: auto; text-align: center; }
  body.lay-immersif .media-text { gap: 4rem; }
  body.lay-immersif .media-text .img-placeholder { min-height: 460px; }
}

/* ============================================================
   MOBILE — variantes de navigation/rythme (selection par body.m-*)
   S'appliquent sous 768px. Defaut (m-standard / aucune) = menu deroulant.
   ============================================================ */
@media (max-width: 768px) {

  /* ---- Plein ecran : logo centre, menu en overlay plein ecran ---- */
  body.m-pleinecran .site-header .container { justify-content: center; position: relative; }
  body.m-pleinecran .burger-btn { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 300; }
  body.m-pleinecran .nav-mobile {
    position: fixed; inset: 0; height: 100vh; max-height: none;
    background: var(--color-primary);
    justify-content: center; align-items: center; gap: 0.4rem;
    transform: translateX(100%); transition: transform .3s ease; z-index: 250;
  }
  body.m-pleinecran .nav-mobile.open { transform: translateX(0); max-height: none; }
  body.m-pleinecran .nav-mobile a { font-size: 1.5rem; border-top: none; padding: 0.6rem 1.5rem; }

  /* ---- App : barre de navigation fixe en bas ---- */
  body.m-app .burger-btn { display: none; }
  body.m-app .nav-mobile {
    display: flex; flex-direction: row; justify-content: space-around; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    height: auto; max-height: none; overflow: visible;
    background: var(--color-primary); border-top: 1px solid rgba(255,255,255,0.18); z-index: 250;
  }
  body.m-app .nav-mobile a { flex: 1; text-align: center; border-top: none; padding: 0.8rem 0.3rem; font-size: 0.78rem; }
  body.m-app { padding-bottom: 4rem; }
}

/* TOKENS (look studio-archi) */
:root {
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --h1-weight: 500;
  --h2-weight: 500;
  --h3-weight: 600;
  --hero-title-weight: 500;
  --hero-title-size: 3.6rem;
  --heading-letter-spacing: -0.02em;
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --btn-radius: 0;
  --card-radius: 0;
  --hero-media-radius: 0;
  --section-pad: 6rem;
  --card-bg: #16161b;
  --card-border: 1px solid #2a2a31;
  --card-text: #b8b2a8;
  --card-title-color: #f3efe8;
  --color-text-muted: #a59f95;
  --btn2-text: #ece8e1;
  --btn2-border-color: #3a3a40;
  --btn-bg-hover: #a8543c;
  --hero-overlay-color: #0a0a0c;
  --hero-overlay-opacity: 0.35;
}

/* HERO (variant immersive) */
.gab-hero { width: 100%; background: var(--hero-bg); }
.gab-hero__title { font-size: var(--hero-title-size); font-weight: var(--hero-title-weight); line-height: 1.12; margin: 0 0 0.5rem; color: var(--hero-title-color); font-family: var(--font-heading); }
.gab-hero__sub { font-size: var(--hero-sub-size); font-weight: var(--hero-sub-weight); color: var(--hero-sub-color); opacity: 0.85; margin: 0 0 1.5rem; }
.gab-hero__cta { margin-top: 0.5rem; }
.gab-hero__media { background: var(--hero-media-bg); border-radius: var(--hero-media-radius); }
@media (max-width: 768px) { .gab-hero__title { font-size: calc(var(--hero-title-size) * 0.7); } }
.gab-hero--immersive { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gab-hero--immersive .gab-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: var(--color-secondary); }
.gab-hero--immersive .gab-hero__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--hero-overlay-color) calc(var(--hero-overlay-opacity) * 100%), transparent); }
.gab-hero--immersive .gab-hero__inner { position: relative; text-align: center; color: #fff; padding: 2rem; }
.gab-hero--immersive .gab-hero__title { color: #fff; }
.gab-hero--immersive .gab-hero__sub { color: #fff; opacity: 0.95; }

/* CAROUSEL */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius, 8px); --carousel-gap: 16px; }
.carousel-track { display: flex; gap: var(--carousel-gap); transition: transform .5s ease; }
.carousel-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; }
@media (min-width: 768px) { .carousel-slide { flex-basis: calc((100% - var(--carousel-gap)) / 2); } }
@media (min-width: 1024px) { .carousel-slide { flex-basis: calc((100% - 2 * var(--carousel-gap)) / 3); } }
.carousel-slide .img-placeholder, .carousel-slide .carousel-img { width: 100%; min-height: 280px; background-size: cover; background-position: center; border-radius: var(--radius, 8px); }
.carousel-caption { margin: 0.6rem 0 0; text-align: center; font-size: 0.9rem; color: var(--color-text, #333); }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; transition: background .2s; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.7); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 0.9rem; }
.carousel-dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: rgba(0,0,0,0.25); cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dot.active { background: var(--color-primary, #c9933a); transform: scale(1.25); }
@media (max-width: 768px) {
  .carousel-slide .img-placeholder, .carousel-slide .carousel-img { min-height: 220px; }
  .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* EFFECTS */
body.fx-scroll section{opacity:0;transition:opacity var(--fx-dur,.7s) ease, transform var(--fx-dur,.7s) ease;will-change:opacity,transform;}
body.fx-scroll.fx-up section{transform:translateY(var(--fx-dist,32px));}
body.fx-scroll.fx-side section:nth-of-type(odd){transform:translateX(var(--fx-dist,32px));}
body.fx-scroll.fx-side section:nth-of-type(even){transform:translateX(calc(-1 * var(--fx-dist,32px)));}
body.fx-scroll section.fx-in{opacity:1 !important;transform:none !important;}
body.fx-i-low{--fx-dist:14px;--fx-dur:.5s;}
body.fx-i-med{--fx-dist:32px;--fx-dur:.7s;}
body.fx-i-high{--fx-dist:64px;--fx-dur:1.05s;}
@keyframes fxPageIn{from{opacity:0;}to{opacity:1;}}
body.fx-page{animation:fxPageIn .5s ease both;}
@media (prefers-reduced-motion: reduce){
  body.fx-scroll section{opacity:1 !important;transform:none !important;transition:none;}
  body.fx-page{animation:none;}
}
/* /EFFECTS */

/* ===== THÈME SOMBRE / IMMERSIF ===== */
body { background: var(--color-bg); color: var(--color-text); }
/* Header transparent absolu : décaler le contenu des pages SANS hero plein écran */
body:not(.has-hero) { padding-top: 76px; }
/* Carrousel : puces & flèches visibles sur fond sombre */
.carousel-dot { background: rgba(255,255,255,0.28); }
.carousel-dot.active { background: var(--color-accent); }
.carousel-prev, .carousel-next { background: rgba(255,255,255,0.14); }
.carousel-prev:hover, .carousel-next:hover { background: var(--color-accent); }
.carousel-caption { color: var(--color-text-muted); }
.muted { color: var(--color-text-muted); }
/* Formulaire de contact en sombre */
.contact-form label { display:block; font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--color-text-muted); margin-bottom:0.35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width:100%; background:#16161b; border:1px solid #2a2a31; color:var(--color-text);
  padding:0.7rem 0.9rem; border-radius:0; font-family:var(--font-main); font-size:0.95rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline:none; border-color:var(--color-accent); }

