/* =========================
1. VARIABLES
========================= */

:root {

  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #e5e2dc;

  --color-accent: #6b6b6b;
  --color-accent-soft: #e8dcc2;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-display: "Cormorant Garamond", serif;

  --space-xs: 0.2rem;
  --space-s: 0.5rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;

  --radius: 8px;

  /* containers (comme ton système actuel implicite) */
  --container: 1060px;
  --container-wide: 80%;
}

/* =========================
2. BASE
========================= */

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-icon li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  align-items: flex-start;
}

.ul-icon svg {
  width: 1em;
  /*height: 1em;*/
  flex-shrink: 0;
}

/* =========================
3. TYPOGRAPHIE
========================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-s);
  position: relative;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

/*Variante 1 — Minimal (simple soulignement)*/
h2.h2--minimal {
  display: inline-block;
}
h2.h2--minimal::after {
  content: "";
  display: block;
  margin-top: 6px;
}
/*Variante 2 et 3 — Luxe et moderne*/
h2.h2--luxe::before,
h2.h2--luxe::after, h2.h2--moderne::before,
h2.h2--moderne::after {
  content: "";
  position: absolute;
}

p {
  margin: 0 0 var(--space-s);
}

.text-spaced {
  padding: var(--space-l) 0 0;
}   

.spacing-sm {
  margin-bottom: 0.5rem;
}

.text-muted {
  color: var(--color-muted);
}

.text-accent {
  color: var(--color-accent);
}

.text-small {
  font-size: 0.9rem;
}

.no-padding {
  padding: 0;
}
/* =========================
4. LAYOUT
========================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-m);
}

.container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-xs);
}

.section {
  padding: var(--space-l) 0;
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-l) 0;
}

/* SPLIT : layout éditorial à deux zones */
.split {
  display: flex;
  gap: var(--space-m);
  margin: 20px auto;
  align-items: center;
}

.split__item {
  flex: 1 1 0;
  min-width: 400px;
}

.split__item img {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 800px) {
  .split {
    flex-direction: column;
    align-items: center;
  }

  .split__item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .split__item img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* GRID (ton approche implicite conservée) */

.grid {
  display: grid;
  gap: var(--space-m);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2-3 {
  grid-template-columns: 2fr 1fr;
}
/* responsive layout */
@media (max-width: 768px) {
  .grid--2,
  .grid--3, .grid--2-3 {
    grid-template-columns: 1fr;
  }

}

/* =========================
5. HEADER
========================= */

.site-header {
  position: relative;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

/* option sticky (comme tu voulais) */
.site-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* Logo */

.brand-logo {
  height: 128px;
  display: block;
}
/* NAV (simple, comme ton code) */

.nav-primary {
    display: block;
  }

.nav-list {
  display: flex;
  gap: var(--space-m);
}

.nav-link {
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
}

.nav-link.is-active {
  color: var(--color-accent);
}   

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

/*burger*/
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
}

/* toggle — correction minimale (ton point important) */

.nav-toggle {
  display: none; /* desktop */
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
}

/* mobile nav */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.is-open {
  display: block;
}
/* responsive nav */
@media (max-width: 768px) {
  .nav-primary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile {
    display: none;
    border-top: 1px solid var(--color-border);
  }

  .nav-mobile.is-open {
    display: block;
    text-align: right;
  }

  .nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: var(--space-s);
  }

  .nav-mobile-list li {
    margin-bottom: var(--space-s);
  }

  .nav-mobile a {
    color: var(--color-text);
    font-size: 1rem;
  }
}
/* =========================
6. FOOTER 
========================= */

.site-footer {
  margin-top: var(--space-l);
  padding: var(--space-l) 0;
  border-top: 1px solid;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

/* bloc marque */

.footer-brand {
  max-width: 420px;
}

.footer-name {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.footer-baseline {
  line-height: 1.5;
}

/* navigation */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-nav span {
  opacity: 0.5;
}

/* socials */

.footer-socials {
  display: flex;
  gap: var(--space-s);
}

/* responsive footer */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-socials {
    justify-content: flex-end;
  }
}

/* =========================================================
7. HERO - structure commune à tous les hero (home + pages)
========================================================= */

.hero {
  position: relative;
  overflow: hidden;
}

/* container interne du hero */
.hero__grid {
  display: grid;
  gap: var(--space-m);
  align-items: center;
}

/* bloc texte principal */
.hero__content {
  display: grid;
  gap: var(--space-m);
}

/* titre principal */
.hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0;
}

/* sous-titre / description */
.hero__subtitle {
  color: var(--color-muted);
  max-width: 60ch;
  margin: 0;
}

/* zone d’actions (boutons, liens) */
.hero__actions {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
}

/*variantes de hero */
/* 1. layout 2 colonnes (texte + média) */
.hero--split .hero__grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hero--split .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 2.  centrage du contenu (home impact ou landing) */
.hero--center .hero__content {
  text-align: center;
  justify-items: center;
}

/* 3. limitation largeur texte (home éditoriale) */
.hero--narrow .hero__content {
  max-width: 720px;
  margin: 0 auto;
}

/* 4. hero avec background-image */
.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay (lisibilité texte sur image) */
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* assure que le contenu passe au-dessus de l’overlay */
.hero--image .hero__grid {
  position: relative;
  z-index: 1;
}

/* 5. hero plein écran (landing / home forte) */
.hero--full {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* =========================
8. COMPONENTS
========================= */

/* BUTTON (ton style conservé) */

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent);
}

.btn:hover {
  background: var(--color-accent-soft);
}

/* CARD (structure fidèle à ton système) */

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin: var(--space-m) 0;
  padding: var(--space-m);
}

.card p {
  flex-grow: 1;
}

.card .card-footer {
  margin-top: auto;
}

.card-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin-bottom: 0.75rem;
  stroke-width: 1.5;
}

.card-image {
  width: 100%;
  max-width: 320px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* TABLE (ton style conservé) */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-m);
  font-size: 0.95rem;
  overflow: hidden;
}

th, td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-bg);
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

/*responsive table*/
@media (max-width: 768px) {
  table {
    font-size: 0.85rem;
  }
  .container table {
    display: block;
    overflow-x: auto;
  } 
  .container table td, .container table th {
    white-space: normal;
    word-break: normal;
    min-width: 115px;
  }
}
/* CAROUSEL */

.carousel {
  display: flex;
  gap: var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 50%;
  scroll-snap-align: start;
}

/* =========================
7. SHOWCASE
========================= */

.showcase__header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.showcase__title {
  margin: 0 0 0.75rem;
}

.showcase__intro {
  margin: 0;
}

.showcase__items {
  display: grid;
  gap: 1.5rem;
}

.showcase__item {
  min-width: 0;
}

.showcase__media {
  overflow: hidden;
}

.showcase__media a {
  display: block;
}

.showcase__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.showcase__content {
  padding-top: 1rem;
}

.showcase__meta {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.showcase__item-title {
  margin: 0 0 0.5rem;
}

.showcase__text {
  margin: 0;
}

.showcase__link {
  display: inline-block;
  margin-top: 0.875rem;
}

/* GRID */

.showcase--grid .showcase__items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* CAROUSEL FANCYAPPS */

.showcase--carousel .showcase__items {
  display: block;
  gap: 0;
}

.showcase--carousel .showcase__item {
  width: min(360px, 85vw);
  margin-right: 1.5rem;
}

.showcase--carousel .f-carousel__slide {
  min-width: 0;
}

/* FEATURED */

.showcase--featured .showcase__items {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.showcase--featured .showcase__item:first-child {
  grid-row: span 2;
}

.showcase--featured .showcase__item:first-child .showcase__media img {
  aspect-ratio: 4 / 5;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .showcase--grid .showcase__items,
  .showcase--featured .showcase__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase--featured .showcase__item:first-child {
    grid-row: auto;
  }

  .showcase--featured .showcase__item:first-child .showcase__media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .showcase--grid .showcase__items,
  .showcase--featured .showcase__items {
    grid-template-columns: 1fr;
  }

  .showcase--carousel .showcase__item {
    width: 82vw;
    margin-right: 1rem;
  }
}
/* =========================
9. STATES (minimal, propre)
========================= */

.is-open { display: block; }
.is-disabled { opacity: 0.4; pointer-events: none; }