/* ═════════════════════════════════════════════════════════════════════════
   culturestartup.io — feuille de style unique
   Aucune dépendance externe, aucun build : ce fichier part tel quel sur S3.

   Sommaire
     1.  Jetons de design
     2.  Réinitialisation & bases
     3.  Utilitaires
     4.  En-tête & navigation
     5.  Sections (fonds photo, voile, mise en page)
     6.  Typographie de contenu
     7.  Boutons & liens
     8.  Cartes « enjeux »
     9.  Offres (re)Connect
    10.  Bandeaux de logos
    11.  Formulaires
    12.  Page zero ?
    13.  Pied de page
    14.  Pages texte (mentions, confidentialité, 404)
    15.  Apparition au défilement
   ═════════════════════════════════════════════════════════════════════════ */


/* ── 1. Jetons de design ─────────────────────────────────────────────── */
:root {
  /* Couleurs reprises à l'identique du site Strikingly d'origine */
  --rouge:        #de3343;
  --rouge-fonce:  #b12835;
  --encre:        #2a3131;
  --encre-doux:   #4a5252;
  --gris-clair:   #e5e8e1;
  --gris-bord:    #cdd2c8;
  --blanc:        #ffffff;

  --texte:        #333333;
  --texte-doux:   #5c6363;

  /* Voile posé sur les photos de fond : l'original utilisait
     rgba(50,62,62,.35). Légèrement renforcé pour que le texte blanc
     atteigne un contraste AA sur les zones claires des photos. */
  --voile:        linear-gradient(180deg, rgba(38,46,46,.58) 0%, rgba(38,46,46,.44) 45%, rgba(38,46,46,.62) 100%);

  --fonte:        "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fonte-bouton: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --largeur-texte: 46rem;
  --largeur-large: 74rem;
  --gouttiere:     clamp(1.25rem, 5vw, 3rem);

  --hauteur-entete: 4.5rem;
  --transition:     220ms cubic-bezier(.4, 0, .2, 1);
}


/* ── 2. Réinitialisation & bases ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hauteur-entete);
}

body {
  margin: 0;
  font-family: var(--fonte);
  font-weight: 300;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.15; }
/* Le corps de texte est en 300 : la valeur par défaut `bolder` ne donnerait
   que 400 (règle CSS des poids relatifs), soit un gras invisible. */
strong, b { font-weight: 700; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

::selection { background: var(--rouge); color: var(--blanc); }


/* ── 3. Utilitaires ──────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%; left: .5rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--blanc);
  color: var(--encre);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: .5rem; }


/* ── 4. En-tête & navigation ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-stuck {
  background: rgba(38, 46, 46, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--largeur-large);
  min-height: var(--hauteur-entete);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  color: var(--blanc);
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  background: var(--rouge);
  color: var(--blanc);
  font-family: var(--fonte-bouton);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand__name strong { font-weight: 700; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }

.nav__list,
.nav__contact { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.75rem); }

.nav a {
  color: var(--blanc);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .85;
  transition: opacity var(--transition);
}
.nav a:hover,
.nav a[aria-current="page"] { opacity: 1; }

.nav__contact li:first-child a { opacity: .7; letter-spacing: .04em; }

.nav-toggle { display: none; }

@media (max-width: 60rem) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem; height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px; height: 2px;
    background: var(--blanc);
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; }
  .nav-toggle__bars::before { transform: translateY(-7px); }
  .nav-toggle__bars::after  { transform: translateY(7px); }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: rotate(-45deg); }

  .nav {
    position: fixed;
    inset: var(--hauteur-entete) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gouttiere) 2rem;
    background: rgba(38, 46, 46, .98);
    backdrop-filter: blur(10px);
    transform: translateY(-130%);
    transition: transform var(--transition);
  }
  .nav.is-open { transform: translateY(0); }

  .nav__list,
  .nav__contact { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: .95rem;
  }
  .nav__contact .btn { margin-top: 1.25rem; text-align: center; }
  .nav__contact .btn:hover { border-bottom-color: var(--rouge-fonce); }
}


/* ── 5. Sections ─────────────────────────────────────────────────────── */
.section {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 11vw, 8rem);
  padding-inline: var(--gouttiere);
  overflow: hidden;
}
.section--full { min-height: 100vh; min-height: 100svh; }
.section--tall { padding-block: clamp(5.5rem, 12vw, 9rem); }

/* Les sections à fond photo gardent le caractère « plein écran » du site
   d'origine, sans imposer 100 % de la hauteur comme le faisait Strikingly. */
.section--dark:not(.section--full) { min-height: min(80vh, 44rem); }

.section--dark { color: var(--blanc); background: var(--encre); }
.section--light { color: var(--texte); background: var(--gris-clair); }
.section--paper { color: var(--texte); background: var(--blanc); }

/* Fond photo : un <img> plutôt qu'un background-image, pour bénéficier de
   srcset / WebP / lazy-loading natifs. */
.section__bg { position: absolute; inset: 0; z-index: 0; }
/* <picture> est un conteneur en ligne par défaut : sans hauteur explicite,
   le `height: 100%` de l'image ne se résout pas et le fond ne couvre plus
   la section (très visible sur mobile). */
.section__bg picture { display: block; width: 100%; height: 100%; }
.section__bg img { width: 100%; height: 100%; object-fit: cover; }
.section__bg::after { content: ""; position: absolute; inset: 0; background: var(--voile); }

/* Certaines photos sont très lumineuses et très détaillées : sur les sections
   qui portent beaucoup de texte, on assombrit davantage. */
.section--voile-fort .section__bg::after {
  background: linear-gradient(180deg, rgba(30,37,37,.78) 0%, rgba(30,37,37,.7) 50%, rgba(30,37,37,.8) 100%);
}

/* Léger halo sombre derrière le texte blanc : rend lisibles les zones claires
   des photos sans avoir à noircir toute l'image. */
.section--dark .section__inner { text-shadow: 0 1px 20px rgba(0, 0, 0, .45); }
.section--dark .btn { text-shadow: none; }

.section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--largeur-texte);
  margin-inline: auto;
  text-align: center;
}
.section__inner--wide { max-width: var(--largeur-large); }
.section__inner--hero { max-width: 60rem; }
.section__inner--left { text-align: left; }

.section__head { max-width: var(--largeur-texte); margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 2rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--blanc);
  font-size: 1.5rem;
  text-decoration: none;
  opacity: .55;
  transform: translateX(-50%);
  animation: flotte 2.4s ease-in-out infinite;
  transition: opacity var(--transition);
}
.scroll-hint:hover { opacity: 1; }

@keyframes flotte {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}


/* ── 6. Typographie de contenu ───────────────────────────────────────── */
.title {
  font-size: clamp(1.85rem, 1.1rem + 2.6vw, 2.75rem);
  letter-spacing: -.005em;
}
.title--xl {
  font-size: clamp(2rem, .7rem + 5.2vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.title--xl strong { font-weight: 700; }
.title--dark { color: var(--encre); }
.title__soft { display: inline-block; margin-top: .35em; font-size: .58em; line-height: 1.35; opacity: .82; }

.title + .lede,
.title + p { margin-top: clamp(1.25rem, 3vw, 2rem); }

.lede {
  max-width: 40rem;
  margin-inline: auto;
  font-size: clamp(1rem, .93rem + .35vw, 1.2rem);
  line-height: 1.7;
  opacity: .92;
}
.lede--dark { color: var(--texte-doux); opacity: 1; }
.lede em { font-style: normal; opacity: .85; }

.eyebrow--rouge { color: var(--rouge); opacity: 1; }
.eyebrow--espace { margin-top: clamp(2.5rem, 6vw, 4rem); }

.eyebrow {
  margin-bottom: 1rem;
  font-family: var(--fonte-bouton);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .7;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 2rem;
  margin-top: .5rem;
}
.partners a {
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 2px;
  transition: border-color var(--transition), color var(--transition);
}
.partners a:hover { color: var(--blanc); border-bottom-color: var(--rouge); }


/* ── 7. Boutons & liens ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border: 1px solid var(--rouge-fonce);
  background: var(--rouge);
  color: var(--blanc);
  font-family: var(--fonte-bouton);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover  { background: var(--rouge-fonce); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }

.btn--sm { padding: .5rem 1rem; font-size: .75rem; letter-spacing: .1em; }
.btn--lg { padding: .85rem 1.9rem; font-size: 1.05rem; }

.link-arrow {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.link-arrow__meta { font-size: .85em; opacity: .6; }


/* ── 8. Cartes « enjeux » ────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 52rem) { .grid--2 { grid-template-columns: 1fr 1fr; } }

.card { text-align: left; max-width: 32rem; }
.card h3 {
  margin-bottom: .7rem;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}
.card h3::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--rouge);
}
.card p { margin: 0; opacity: .9; }


/* ── 9. Offres (re)Connect ───────────────────────────────────────────── */
.offers { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }

.offer {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  text-align: left;
}
@media (min-width: 56rem) {
  .offer { grid-template-columns: 1fr 1fr; }
  .offer--reverse .offer__media { order: 2; }
}

.offer__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--gris-bord);
}

.offer__kicker {
  margin-bottom: .35rem;
  font-family: var(--fonte-bouton);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rouge);
}
.offer__title {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: var(--encre);
}
.offer__duration {
  display: inline-block;
  margin-left: .5rem;
  padding: .2rem .6rem;
  border: 1px solid var(--gris-bord);
  font-family: var(--fonte-bouton);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--texte-doux);
}
.offer__body p { color: var(--texte-doux); }


/* ── 10. Bandeaux de logos ───────────────────────────────────────────── */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  justify-items: center;
}
.logos img {
  width: auto;
  max-width: min(100%, 9rem);
  max-height: 3.25rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter var(--transition), opacity var(--transition);
}
.logos li:hover img { filter: grayscale(0); opacity: 1; }


/* ── 11. Formulaires ─────────────────────────────────────────────────── */
.form { margin-top: clamp(1.75rem, 4vw, 2.5rem); }

.form__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.form__row > * { flex: 1 1 14rem; }
.form__row > button { flex: 0 0 auto; }

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: var(--blanc);
  font: inherit;
  transition: border-color var(--transition), background var(--transition);
}
.form input::placeholder,
.form textarea::placeholder { color: rgba(255, 255, 255, .7); }
.form input:focus,
.form textarea:focus { background: rgba(255, 255, 255, .18); border-color: var(--blanc); }
.form input[aria-invalid="true"] { border-color: var(--rouge); background: rgba(222, 51, 67, .15); }

/* Variante sur fond clair */
.section--light .form input[type="text"],
.section--light .form input[type="email"],
.section--light .form textarea {
  border-color: var(--gris-bord);
  background: var(--blanc);
  color: var(--texte);
}
.section--light .form input::placeholder { color: #8d938d; }

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-size: .95rem;
  font-weight: 600;
}
.form__status[data-state="ok"]    { color: #9ce6b4; }
.form__status[data-state="error"] { color: #ffb3ba; }
.section--light .form__status[data-state="ok"]    { color: #1d7a44; }
.section--light .form__status[data-state="error"] { color: var(--rouge-fonce); }

.form__legal {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  font-size: .8rem;
  line-height: 1.55;
  opacity: .78;
}
.form__legal a { text-decoration: underline; }


/* ── 12. Page « zero ? » ─────────────────────────────────────────────── */
.excuses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: .75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: left;
  counter-reset: excuse;
}
.excuses li {
  display: flex;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: var(--blanc);
  border-left: 3px solid var(--rouge);
  font-size: .98rem;
  line-height: 1.5;
}
.excuses li::before {
  counter-increment: excuse;
  content: counter(excuse, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--fonte-bouton);
  font-size: .78rem;
  font-weight: 700;
  color: var(--rouge);
  padding-top: .2rem;
}

.methode {
  display: grid;
  gap: .9rem;
  max-width: 52rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  text-align: left;
  counter-reset: etape;
}
.methode li {
  position: relative;
  padding-left: 3.25rem;
  line-height: 1.6;
}
.methode li::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  left: 0; top: .05em;
  display: grid;
  place-items: center;
  width: 2.15rem; height: 2.15rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--fonte-bouton);
  font-size: .8rem;
  font-weight: 700;
  opacity: .75;
}

.stat-zero {
  display: block;
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--rouge);
}


/* ── 13. Pied de page ────────────────────────────────────────────────── */
.site-footer {
  padding: clamp(3rem, 7vw, 4.5rem) var(--gouttiere) 2rem;
  background: var(--encre);
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: var(--largeur-large);
  margin-inline: auto;
}
.site-footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.site-footer__brand p { margin: 0; line-height: 1.6; }
.site-footer__brand strong { color: var(--blanc); font-weight: 700; }

.site-footer__nav ul,
.site-footer__contact { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color var(--transition); }
.site-footer a:hover { color: var(--blanc); text-decoration: underline; }

.site-footer__legal {
  max-width: var(--largeur-large);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  opacity: .6;
}


/* ── 14. Pages texte (mentions, confidentialité, 404) ────────────────── */
.page {
  max-width: var(--largeur-texte);
  margin-inline: auto;
  padding: calc(var(--hauteur-entete) + clamp(3rem, 8vw, 5.5rem)) var(--gouttiere) clamp(3rem, 8vw, 5rem);
}
.page h1 { margin-bottom: 1.5rem; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; }
.page h2 { margin: 2.5rem 0 .75rem; font-size: 1.35rem; font-weight: 700; }
.page a  { color: var(--rouge-fonce); }
.page ul { margin: 0 0 1.15em; padding-left: 1.25rem; list-style: disc; }
.page li { margin-bottom: .4rem; }
.page--center { text-align: center; }
.page__retour { margin-top: clamp(2rem, 5vw, 3rem); }
.page--center .btn { margin-top: 1.5rem; }

/* L'en-tête est transparent : sur les pages texte (fond blanc) il lui faut
   un fond dès le chargement, sans quoi les liens blancs deviennent illisibles. */
body.page-texte .site-header { background: var(--encre); }


/* ── 15. Apparition au défilement ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Sans JavaScript : le <noscript> de chaque page neutralise `.reveal`,
   de sorte que rien ne reste invisible. */

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

@media print {
  .site-header, .scroll-hint, .form, .section__bg { display: none !important; }
  .section { min-height: 0; padding-block: 1.5rem; color: #000; background: #fff; }
  .title--xl { font-size: 2rem; }
}
