/* ==========================================================================
   SACHA FOOD — Design system
   Champagne & or rosé — traiteur événementiel, Paris et région parisienne
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  /* Couleurs */
  --champagne: #fbf8f4;         /* fond principal */
  --champagne-profond: #f4ede4; /* fond alterné */
  --ivoire: #ffffff;            /* cartes, surfaces surélevées */
  --sable: #efe6dc;             /* remplissages discrets */
  --lin: #e4d9cc;               /* filets, séparateurs */
  --taupe: #cfc3b6;             /* bordures affirmées */
  --pierre: #8c8078;            /* texte tertiaire */
  --encre-douce: #6b625a;       /* texte secondaire */
  --encre: #2e2a26;             /* texte principal */
  --rose: #b76e79;              /* accent — boutons, chiffres */
  --rose-profond: #9d5661;      /* accent survolé */
  --rose-voile: #f6ecec;        /* fond d'accent très clair */
  --or: #c9a86c;                /* second accent, filets précieux */

  /* Typographie */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Échelle typographique */
  --t-xs: 0.78rem;
  --t-sm: 0.88rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: clamp(1.35rem, 2vw, 1.6rem);
  --t-xl: clamp(1.8rem, 3.4vw, 2.6rem);
  --t-2xl: clamp(2.2rem, 5vw, 3.6rem);
  --t-3xl: clamp(2.5rem, 6vw, 4.6rem);

  /* Rythme */
  --marge: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 9vw, 8rem);
  --gouttiere: clamp(0.6rem, 1.2vw, 1rem);
  --mesure: 64ch;
  --largeur: 1180px;

  /* Divers */
  --rayon: 3px;
  --ombre: 0 1px 3px rgba(46, 42, 38, .05), 0 8px 30px rgba(46, 42, 38, .06);
  --ombre-forte: 0 2px 6px rgba(46, 42, 38, .07), 0 18px 50px rgba(46, 42, 38, .1);
  --transition: 180ms cubic-bezier(.4, 0, .2, 1);

  color-scheme: light;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--champagne);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* --------------------------------------------------- utilitaires / a11y -- */

.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.lecture { max-width: var(--mesure); }

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--rose);
  color: #fff;
  padding: .8rem 1.3rem;
  font-weight: 600;
  border-radius: var(--rayon);
}

.saut-contenu:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Champ en attente d'information */
.a-remplir {
  background: var(--rose-voile);
  border-bottom: 2px dashed var(--rose);
  padding: 0 .2em;
}

/* ------------------------------------------------------------ en-tête -- */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.entete[data-defile="true"] {
  border-bottom-color: var(--lin);
  box-shadow: 0 1px 20px rgba(46, 42, 38, .04);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.marque {
  display: flex;
  align-items: center;
  gap: .62rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.marque span { display: inline-flex; gap: .4rem; }

.marque em {
  font-style: italic;
  color: var(--rose);
}

/* navigation */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.1rem);
}

.nav__lien {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--encre-douce);
  padding: .3rem 0;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__lien::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__lien:hover { color: var(--encre); }
.nav__lien:hover::after { transform: scaleX(1); }

.nav__lien[aria-current="page"] { color: var(--encre); }
.nav__lien[aria-current="page"]::after { transform: scaleX(1); }

.nav__bascule {
  display: none;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 1px solid var(--taupe);
  color: var(--encre);
  padding: .55rem .85rem;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 500;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: border-color var(--transition);
}

.nav__bascule:hover { border-color: var(--rose); }

.nav__bascule span {
  display: block;
  width: 16px;
  height: 9px;
  position: relative;
}

.nav__bascule span::before,
.nav__bascule span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--transition);
}

.nav__bascule span::before { top: 0; }
.nav__bascule span::after { bottom: 0; }

.nav__bascule[aria-expanded="true"] span::before { transform: translateY(3.75px) rotate(45deg); }
.nav__bascule[aria-expanded="true"] span::after { transform: translateY(-3.75px) rotate(-45deg); }

/* ------------------------------------------------------------ boutons -- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .005em;
  padding: .82rem 1.6rem;
  border-radius: var(--rayon);
  text-decoration: none;
  border: 1px solid var(--rose);
  background: var(--rose);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}

.bouton:hover {
  background: var(--rose-profond);
  border-color: var(--rose-profond);
  transform: translateY(-1px);
}

.bouton:active { transform: translateY(0); }

.bouton--creux {
  background: transparent;
  color: var(--encre);
  border-color: var(--taupe);
}

.bouton--creux:hover {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--champagne);
}

.bouton--clair {
  background: var(--ivoire);
  color: var(--encre);
  border-color: var(--ivoire);
}

.bouton--clair:hover {
  background: var(--sable);
  border-color: var(--sable);
  color: var(--encre);
}

.bouton--large { width: 100%; }

/* lien fléché discret */
.lien-suite {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--rose);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), gap var(--transition);
}

.lien-suite:hover {
  border-bottom-color: var(--rose);
  gap: .7rem;
}

.lien-suite svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------------------------------------------------------- sections -- */

.section { padding-block: var(--section); scroll-margin-top: 5rem; }
.section--sable { background: var(--champagne-profond); }
.section--mince { padding-block: clamp(3rem, 6vw, 5rem); }

.section__entete {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: var(--mesure);
}

.section__entete--centre {
  margin-inline: auto;
  text-align: center;
}

.surtitre {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .9rem;
}

.section__titre {
  font-size: var(--t-xl);
  margin-bottom: 1rem;
}

.section__intro {
  color: var(--encre-douce);
  font-size: var(--t-md);
  margin: 0;
}

/* filet décoratif */
.filet {
  width: 54px;
  height: 1px;
  background: var(--or);
  border: 0;
  margin: 1.4rem 0;
}

.section__entete--centre .filet { margin-inline: auto; }

/* --------------------------------------------------------------- pied -- */

.pied {
  background: var(--encre);
  color: var(--sable);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: var(--t-sm);
}

.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3.5rem;
}

.pied .marque { color: var(--champagne); font-size: 1.4rem; }
.pied .marque em { color: var(--or); }

.pied__baseline {
  margin: 1.1rem 0 0;
  color: var(--pierre);
  max-width: 34ch;
  line-height: 1.7;
}

.pied h2 {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 1.1rem;
}

.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.pied a {
  text-decoration: none;
  color: var(--sable);
  transition: color var(--transition);
}

.pied a:hover { color: var(--ivoire); }

.reseaux { display: flex; gap: .6rem; }

.reseaux a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(239, 230, 220, .22);
  border-radius: var(--rayon);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.reseaux a:hover {
  border-color: var(--or);
  background: var(--or);
  color: var(--encre);
}

.reseaux svg { width: 17px; height: 17px; }

.pied__bas {
  border-top: 1px solid rgba(239, 230, 220, .14);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  justify-content: space-between;
  align-items: center;
  color: var(--pierre);
  font-size: var(--t-xs);
}

.pied__bas p { margin: 0; }

.pied__bas ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ----------------------------------------------------- bandeau appel -- */

.appel { background: var(--champagne-profond); text-align: center; }

.appel__titre { font-size: var(--t-xl); margin-bottom: 1rem; }

.appel p {
  color: var(--encre-douce);
  font-size: var(--t-md);
  max-width: 52ch;
  margin: 0 auto 2.2rem;
}

.appel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}

/* ------------------------------------------------------------ mobile -- */

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

@media (max-width: 860px) {
  .nav__bascule { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 4.75rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivoire);
    border-bottom: 1px solid var(--lin);
    box-shadow: var(--ombre-forte);
    padding: .5rem var(--marge) 1.75rem;
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .nav[data-ouvert="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__lien {
    padding: 1rem 0;
    font-size: var(--t-md);
    border-bottom: 1px solid var(--lin);
  }

  .nav__lien::after { display: none; }
  .nav__lien[aria-current="page"] { color: var(--rose); }

  .nav .bouton { margin-top: 1.25rem; }
}

@media (max-width: 620px) {
  .pied__grille { grid-template-columns: 1fr; gap: 2.5rem; }
  .pied__bas { justify-content: flex-start; }
}

/* ------------------------------------------------------ préférences -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .entete, .nav, .appel, .formulaire { display: none; }
  body { background: #fff; color: #000; }
  .pied { background: #fff; color: #000; }
}
