@import url("fonts.css");

/* ============================================================
   Formation Shape Up — feuille de style unique
   Palette reprise du site d'origine :
   rouge #ff4d4d · lavande #ecebf7 · violet #8d77ad · encre #222
   ============================================================ */

:root {
  --rouge: #ff4d4d;
  --rouge-fonce: #e63946;
  --lavande: #ecebf7;
  --lavande-fonce: #ddd9f0;
  --violet: #8d77ad;
  --violet-fonce: #6f5b8e;
  --encre: #222222;
  --encre-doux: #333333;
  --gris: #5a5a66;
  --gris-clair: #8a8a96;
  --blanc: #ffffff;
  --bordure: #e4e2ef;

  --titre: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --corps: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --largeur: 1120px;
  --rayon: 12px;
  --rayon-l: 20px;
  --ombre: 0 2px 6px rgba(34, 34, 34, .05), 0 12px 32px rgba(34, 34, 34, .08);
  --ombre-forte: 0 4px 12px rgba(34, 34, 34, .08), 0 24px 48px rgba(34, 34, 34, .14);
  --transition: 180ms ease;
}

/* --------------------------------------------- base --------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gris);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  color: var(--encre);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.25rem); }
h3 { font-family: var(--corps); font-size: 1.35rem; color: var(--encre-doux); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-fonce); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rouge-fonce); }

strong { font-weight: 700; color: var(--encre-doux); }

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

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.saut-contenu:focus { left: 8px; top: 8px; color: #fff; }

/* ----------------------------------------- structure -------- */

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--lavande { background: var(--lavande); }
.section--encre { background: var(--encre); color: #cfcfd8; }
.section--encre h2, .section--encre h3 { color: #fff; }

.section__intro { max-width: 720px; margin-bottom: 48px; }
.section__intro--centre { margin-inline: auto; text-align: center; }

.surtitre {
  font-family: var(--titre);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-fonce);
  margin: 0 0 .8rem;
}

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

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

.btn {
  --btn-bg: var(--rouge);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--titre);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  padding: 1rem 1.75rem;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34, 34, 34, .18);
}
.btn:active { transform: translateY(0); }

.btn--violet { --btn-bg: var(--violet-fonce); }
.btn--fantome {
  background: transparent;
  --btn-fg: var(--encre);
  border-color: var(--encre);
}
.btn--fantome:hover { background: var(--encre); --btn-fg: #fff; }
.btn--clair {
  background: transparent;
  --btn-fg: #fff;
  border-color: #fff;
}
.btn--clair:hover { background: #fff; --btn-fg: var(--encre); }
.btn--bloc { width: 100%; }

.groupe-btn { display: flex; flex-wrap: wrap; gap: 1rem; }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--bordure);
}

.entete__barre {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--encre);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.logo:hover { color: var(--encre); }
.logo__marque { color: var(--rouge); }
.logo svg { flex: none; }

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

.nav__liens {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__liens a {
  font-family: var(--titre);
  font-size: .9rem;
  font-weight: 700;
  color: var(--encre-doux);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__liens a:hover,
.nav__liens a[aria-current="page"] {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}
.nav .btn { padding: .8rem 1.35rem; font-size: .85rem; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after  { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------- héros -------- */

.heros { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px); }
.heros__illustration {
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 900px;
}
.heros__illustration img { width: 100%; }
.heros__contenu { max-width: 760px; }
.heros h1 { color: var(--rouge); margin-bottom: .35em; }
.heros__accroche {
  font-family: var(--titre);
  font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem);
  font-weight: 400;
  color: var(--encre);
  margin-bottom: 1.1em;
}
.heros__texte { font-size: 1.15rem; max-width: 640px; }
.heros .groupe-btn { margin-top: 2rem; }

.reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--bordure);
  list-style: none;
}
.reperes li { font-size: .95rem; }
.reperes b {
  display: block;
  font-family: var(--titre);
  font-size: 1.4rem;
  color: var(--encre);
}

/* -------------------------------------------- grilles ------- */

.grille { display: grid; gap: 28px; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.carte {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  padding: 32px;
  box-shadow: var(--ombre);
}
.carte h3 { margin-bottom: .5rem; }

.carte-cle { display: flex; gap: 1rem; align-items: flex-start; }
.carte-cle__num {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rouge);
  color: #fff;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .95rem;
}
.carte-cle h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.carte-cle p { font-size: .98rem; }

.cycle {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: 40px;
  box-shadow: var(--ombre);
}
.cycle figcaption {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--gris-clair);
  text-align: center;
}

/* ------------------------------------------- sessions ------- */

.sessions { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.ville {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 32px;
  border-radius: var(--rayon-l);
  overflow: hidden;
  color: #fff;
  background: var(--encre) center/cover no-repeat;
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ville:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.ville::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(34, 30, 46, .58) 0%, rgba(34, 30, 46, .86) 100%);
}
.ville--toulouse { background-image: url("../img/toulouse.jpg"); }
.ville--lille    { background-image: url("../img/lille.jpg"); }
.ville--paris    { background-image: url("../img/paris.jpg"); }

.ville__nom {
  font-family: var(--titre);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .2rem;
}
.ville__format {
  font-family: var(--titre);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 1.5rem;
}
.ville__dates {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.ville__dates li {
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}
.ville__lieu {
  font-size: .95rem;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 1.75rem;
}
.ville__lieu b { color: #fff; display: block; }
.ville .btn { margin-top: auto; }

/* ------------------------------------------ programme ------- */

.programme { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.liste-check { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .7rem; }
.liste-check li { position: relative; padding-left: 2rem; }
.liste-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 1.2rem;
  height: .6rem;
  border-left: 2.5px solid var(--rouge);
  border-bottom: 2.5px solid var(--rouge);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.liste-check--violet li::before { border-color: var(--violet-fonce); }

/* --------------------------------------------- mentor ------- */

.mentor {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(220px, 320px) minmax(300px, 1fr);
  align-items: start;
}
.mentor__photo {
  border-radius: var(--rayon-l);
  overflow: hidden;
  box-shadow: var(--ombre-forte);
}
.mentor__photo img { width: 100%; }
.mentor__role {
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rouge);
  margin: -.3rem 0 1.2rem;
}

/* --------------------------------------------- tarifs ------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 36px;
  padding: 0;
  list-style: none;
}
.filtre {
  font-family: var(--titre);
  font-size: .85rem;
  font-weight: 700;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--bordure);
  background: #fff;
  color: var(--encre-doux);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.filtre:hover { border-color: var(--violet); color: var(--violet-fonce); }
.filtre[aria-pressed="true"] {
  background: var(--encre);
  border-color: var(--encre);
  color: #fff;
}

.offres { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.offre {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.offre:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.offre[hidden] { display: none; }
.offre__visuel { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lavande-fonce); }
.offre__visuel img { width: 100%; height: 100%; object-fit: cover; }
.offre__corps { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.offre h3 { font-family: var(--titre); font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.offre__note { font-size: .9rem; color: var(--gris-clair); margin-bottom: 1.2rem; }
.offre__prix {
  font-family: var(--titre);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--encre);
  margin: 0 0 1.5rem;
}
.offre__prix small {
  display: block;
  font-family: var(--corps);
  font-size: .8rem;
  font-weight: 400;
  color: var(--gris-clair);
  margin-top: .2rem;
}
.offre .btn { margin-top: auto; }

.mention-tva {
  margin-top: 28px;
  font-size: .9rem;
  color: var(--gris-clair);
}

/* --------------------------------------- appel / RDV -------- */

.appel {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  background: var(--encre);
  color: #cfcfd8;
  border-radius: var(--rayon-l);
  padding: clamp(28px, 4vw, 56px);
}
.appel h2 { color: #fff; }

.integration {
  position: relative;
  min-height: 320px;
  border-radius: var(--rayon);
  background: var(--lavande);
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}
.integration__reserve { display: grid; gap: 1rem; justify-items: center; max-width: 380px; }
.integration__reserve p { font-size: .92rem; color: var(--gris); margin: 0; }
.integration iframe { width: 100%; min-height: 660px; border: 0; border-radius: var(--rayon); }

/* ------------------------------------- formulaire ----------- */

.formulaire { display: grid; gap: 1.1rem; max-width: 520px; }
.champ { display: grid; gap: .4rem; }
.champ label {
  font-family: var(--titre);
  font-size: .82rem;
  font-weight: 700;
  color: var(--encre-doux);
}
.champ input,
.champ textarea,
.champ select {
  font: inherit;
  font-size: 1rem;
  color: var(--encre);
  padding: .85rem 1rem;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  border-color: var(--violet);
  outline: none;
  box-shadow: 0 0 0 3px rgba(141, 119, 173, .2);
}
.champ--case { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.champ--case input { width: 18px; height: 18px; margin-top: .3rem; }
.champ--case label { font-family: var(--corps); font-weight: 400; font-size: .9rem; color: var(--gris); }
.pot-de-miel { position: absolute; left: -9999px; opacity: 0; }

.message-form {
  padding: .9rem 1.1rem;
  border-radius: 10px;
  font-size: .95rem;
  display: none;
}
.message-form[data-etat="ok"]      { display: block; background: #e7f6ec; color: #1c6b39; }
.message-form[data-etat="erreur"]  { display: block; background: #fdecec; color: #a32020; }

/* ------------------------------------------ ressources ------ */

.ressources-cta {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

/* ------------------------------------------------- FAQ ------ */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--bordure);
  padding: 1.1rem 0;
}
.faq summary {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--encre);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rouge);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-top: .8rem; }

/* --------------------------- lexique et comparatif ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lexique { margin: 0; display: grid; gap: .1rem; }
.lexique dt {
  font-family: var(--titre);
  font-weight: 700;
  font-size: .95rem;
  color: var(--encre);
  margin-top: .9rem;
}
.lexique dt:first-child { margin-top: 0; }
.lexique dd { margin: 0; font-size: .98rem; }

.tableau-comparatif { overflow-x: auto; }
.tableau-comparatif table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.tableau-comparatif th,
.tableau-comparatif td {
  text-align: left;
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--bordure);
  vertical-align: top;
}
.tableau-comparatif th {
  font-family: var(--titre);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--violet-fonce);
}
.tableau-comparatif td + td { color: var(--encre-doux); font-weight: 500; }
.tableau-comparatif tr:last-child td { border-bottom: 0; }

/* ------------------------------- micro-sondage de sortie ---- */

.sortie { max-width: 760px; text-align: center; margin-inline: auto; }
.sortie .surtitre { color: var(--rouge); }
.sortie h2 { margin-bottom: 2rem; }

.sortie__choix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.sortie__choix a {
  display: block;
  font-family: var(--titre);
  font-size: .95rem;
  font-weight: 700;
  color: var(--encre-doux);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  transition: border-color var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.sortie__choix a:hover,
.sortie__choix a:focus-visible {
  color: var(--rouge);
  border-color: var(--rouge);
  transform: translateY(-2px);
  box-shadow: var(--ombre);
}

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

.pied {
  background: var(--encre);
  color: #9a9aa8;
  padding: 56px 0 32px;
  font-size: .95rem;
}
.pied a { color: #cfcfd8; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__haut {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.pied h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: .8rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .85rem;
}

/* ------------------------------------------- pages simples -- */

.page-texte { max-width: 760px; }
.page-texte h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.page-texte h2:first-of-type { margin-top: 1.5rem; }
.page-texte ul { padding-left: 1.2rem; }
.page-texte li { margin-bottom: .4rem; }

/* ---------------------------------------------- responsive -- */

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
    padding: 8px 24px 24px;
    display: none;
  }
  .nav[data-ouvert="true"] { display: flex; }
  .nav__liens { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__liens a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--bordure);
  }
  .nav__liens a:hover,
  .nav__liens a[aria-current="page"] { border-bottom-color: var(--bordure); }
  .nav .btn { margin-top: 1rem; width: 100%; }
  .burger { display: flex; }
  .entete__barre { position: relative; }
  .mentor { grid-template-columns: 1fr; }
  .mentor__photo { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ville:hover, .offre:hover, .btn:hover, .sortie__choix a:hover { transform: none; }
}

@media print {
  .entete, .pied, .btn, .integration { display: none !important; }
  body { color: #000; }
}
