/* oddy.fr — feuille de style commune */

:root {
  /* Couleurs du logo */
  --green: #69C59C;
  --yellow: #F8C76A;
  --coral: #F68577;

  /* Déclinaisons pâles (fonds) et foncées (textes, boutons : contraste AA sur blanc) */
  --green-50: #EEF8F3;
  --green-100: #D9F0E5;
  --green-700: #1F7A52;
  --yellow-50: #FEF7E8;
  --yellow-100: #FDEBC7;
  --yellow-800: #8A5A00;
  --coral-50: #FEF0EE;
  --coral-100: #FCDCD7;
  --coral-700: #B4432F;

  /* Textes quasi noirs, fond blanc */
  --ink: #1B1F24;
  --ink-2: #4B535D;
  --ink-3: #6B727C;
  --line: #E7E9EC;
  --soft: #F7F8F9;
  --white: #FFFFFF;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(27, 31, 36, .05);
  --shadow: 0 1px 2px rgba(27, 31, 36, .04), 0 10px 30px -12px rgba(27, 31, 36, .14);
  --shadow-lg: 0 2px 4px rgba(27, 31, 36, .04), 0 24px 60px -20px rgba(27, 31, 36, .22);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* Icônes <use> sans dimensions propres : carrées */
.tile svg, .mini svg { height: auto; aspect-ratio: 1; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

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

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: var(--white); box-shadow: 0 6px 18px -8px rgba(31, 122, 82, .6); }
.btn-primary:hover { background: #196845; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #CDD1D6; }
.btn-sm { padding: .55rem 1rem; font-size: .9375rem; border-radius: 10px; }

/* ---------- En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
          backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 2rem; height: 72px; }
.header .logo img { height: 32px; width: auto; }
.nav { display: flex; gap: .25rem; margin-right: auto; }
.nav a {
  padding: .5rem .8rem;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
@media (max-width: 760px) {
  .nav { display: none; }
  .header .wrap { justify-content: space-between; }
}
.header-actions { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 480px) { .header-actions .btn-bientot { display: none; } }

/* Bouton pas encore actif (souscription à venir) */
.btn[disabled] { cursor: not-allowed; transform: none; box-shadow: none; }
/* iPhone (Safari, Firefox, Chrome : moteur WebKit) : un bouton désactivé reçoit l'aspect natif, un texte grisé
   et une opacité réduite ; nos couleurs priment */
.btn { -webkit-appearance: none; appearance: none; }
.btn[disabled] { opacity: 1; -webkit-text-fill-color: currentColor; }
.btn-primary[disabled] { background: #9CC9B3; color: var(--white); }
.btn-bientot .bientot {
  padding: .1rem .45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--green-700);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: -72px 0 auto;
  height: 640px;
  z-index: -1;
  background:
    radial-gradient(40% 55% at 22% 30%, rgba(105, 197, 156, .12), transparent 70%),
    radial-gradient(38% 50% at 80% 24%, rgba(248, 199, 106, .14), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(246, 133, 119, .07), transparent 70%);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem .4rem .45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.pill b {
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 17ch;
  margin: 1.5rem auto 0;
  font-size: clamp(2.35rem, 6.2vw, 4.25rem);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -.035em;
}
/* Trait jaune dessiné à la main, écho de la barre du logo */
.mark { position: relative; white-space: nowrap; }
.mark svg {
  position: absolute;
  left: -2%;
  bottom: -.14em;
  width: 104%;
  height: .32em;
  z-index: -1;
  overflow: visible;
}
.mark path { stroke-dasharray: 420; stroke-dashoffset: 0; }
.js .mark path { stroke-dashoffset: 420; animation: draw 1s .35s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot { color: var(--coral); }

.hero .lead {
  max-width: 38rem;
  margin: 1.4rem auto 0;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.1rem; }

/* ---------- Grille d'outils (icônes façon « applications ») ---------- */

/* Cartouche sous les icônes : verre dépoli, laisse deviner les formes du fond */
.apps-panel {
  position: relative;
  max-width: 900px;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(238, 248, 243, .75), rgba(255, 255, 255, .6) 45%, rgba(254, 247, 232, .75));
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: 1px solid rgba(231, 233, 236, .9);
  box-shadow: 0 1px 2px rgba(27, 31, 36, .04), 0 30px 70px -30px rgba(27, 31, 36, .18);
}
/* Rappel de la barre jaune et du point corail du logo */
.apps-panel::before, .apps-panel::after {
  content: "";
  position: absolute;
  top: -5px;
  height: 10px;
  border-radius: 10px;
}
.apps-panel::before { left: calc(50% - 44px); width: 64px; background: var(--yellow); }
.apps-panel::after { left: calc(50% + 28px); width: 10px; background: var(--coral); }
.apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.25rem) clamp(.75rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 520px) { .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app { text-align: center; }
.app a, .app > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(68px, 13vw, 92px);
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}
.tile svg { width: 58%; height: auto; }
.app a:hover .tile { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app small { display: block; color: var(--ink-3); font-size: .8125rem; font-weight: 500; }
.app.soon .tile { box-shadow: none; background: var(--soft); border-style: dashed; border-color: #D6DADF; }
.app.soon .tile svg { opacity: .45; filter: grayscale(1); }
.app.soon > div { color: var(--ink-3); }
.badge {
  position: absolute;
  top: -8px;
  right: -10px;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------- Sections ---------- */

section { padding: clamp(4rem, 9vw, 7rem) 0; }
#outils { padding-top: clamp(1rem, 2.5vw, 2rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--green-700);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h2 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); line-height: 1.12; font-weight: 800; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; }

/* ---------- Présentation détaillée des outils ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.feature + .feature { margin-top: clamp(4.5rem, 10vw, 8rem); }
.feature.reverse .feature-text { order: 2; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 600;
}
.feature-tag .mini {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.feature-tag .mini svg { width: 24px; }
.feature h2 { margin-top: 1rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.feature-text > p { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; }
.checks { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink); }
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .12rem;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231F7A52' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Cadre commun des maquettes */
.stage {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 28px;
}
.stage.green { background: var(--green-50); }
.stage.yellow { background: var(--yellow-50); }
.stage.coral { background: var(--coral-50); }
.window {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 700;
}
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #E3E6EA; }
.window-bar .spacer { margin-left: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip.g { background: var(--green-50); color: var(--green-700); }
.chip.y { background: var(--yellow-50); color: var(--yellow-800); }
.chip.c { background: var(--coral-50); color: var(--coral-700); }

/* Maquette : calendrier */
.cal { padding: .75rem 1rem 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .dow { padding: .25rem 0 .4rem; color: var(--ink-3); font-size: .6875rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.cal-grid .d {
  min-height: 58px;
  padding: .3rem;
  border-radius: 8px;
  background: var(--soft);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
}
.cal-grid .d.out { background: transparent; color: #C3C8CE; }
.cal-grid .d.today { background: var(--white); box-shadow: inset 0 0 0 2px var(--green); color: var(--ink); }
.ev {
  display: block;
  margin-top: .25rem;
  padding: .15rem .3rem;
  border-radius: 5px;
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev.g { background: var(--green-100); color: #175C3E; }
.ev.y { background: var(--yellow-100); color: #6E4800; }
.ev.c { background: var(--coral-100); color: #8F3322; }
@media (max-width: 480px) {
  .cal-grid .d { min-height: 44px; }
  .ev { height: 6px; padding: 0; font-size: 0; }
}
.float-card {
  position: absolute;
  right: clamp(-.5rem, -1vw, 0rem);
  bottom: -1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: .8125rem;
  line-height: 1.35;
}
.float-card b { display: block; font-size: .875rem; }
.float-card span { color: var(--ink-3); }
.float-card .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--coral-50);
  flex: none;
}

/* Maquette : procès-verbal */
.pv { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: .75rem; align-items: stretch; padding: 1rem; }
.pv-col { border-radius: 12px; padding: .9rem 1rem; font-size: .8125rem; line-height: 1.55; }
.pv-col h4 { margin: 0 0 .5rem; color: var(--ink-3); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.maq-notes { background: var(--soft); color: var(--ink-2); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .75rem; }
.maq-notes p + p { margin-top: .35rem; }
.pv-out { border: 1px solid var(--line); color: var(--ink); }
.pv-out h5 { margin: .7rem 0 .2rem; font-size: .8125rem; }
.pv-out h5:first-of-type { margin-top: 0; }
.pv-out p { color: var(--ink-2); }
.pv-arrow { display: grid; place-items: center; }
.pv-arrow span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.vote { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .35rem; }
@media (max-width: 560px) {
  .pv { grid-template-columns: 1fr; }
  .pv-arrow span { rotate: 90deg; }
}

/* Maquette : communication */
.com { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem; }
.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3 / 4;
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
}
.poster::before, .poster::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.poster::before { width: 70%; aspect-ratio: 1; right: -18%; top: -12%; background: var(--yellow); opacity: .95; }
.poster::after { width: 26%; aspect-ratio: 1; left: 12%; bottom: 30%; background: var(--coral); }
.poster > * { position: relative; z-index: 1; }
.poster small { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0F3D29; }
.poster strong { display: block; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.1; letter-spacing: -.02em; color: #0F2E20; }
.poster em { display: block; margin-top: .35rem; font-style: normal; font-size: .75rem; font-weight: 600; color: #0F3D29; }
.templates { display: flex; flex-direction: column; gap: .6rem; }
.templates h4 { margin: 0 0 .1rem; color: var(--ink-3); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.tpl {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.tpl span { display: block; color: var(--ink-3); font-size: .6875rem; font-weight: 500; }
.tpl i {
  flex: none;
  width: 26px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(var(--line), var(--line)) 5px 8px / 14px 2px no-repeat,
              linear-gradient(var(--line), var(--line)) 5px 13px / 10px 2px no-repeat,
              linear-gradient(var(--line), var(--line)) 5px 18px / 14px 2px no-repeat,
              var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c, var(--yellow));
}
.tpl.active { border-color: var(--yellow); background: var(--yellow-50); }
@media (max-width: 480px) { .com { grid-template-columns: 1fr; } .poster { aspect-ratio: 4 / 3; } }

.apps-suite { margin-top: 1.5rem; color: var(--ink-3); font-size: .875rem; font-weight: 500; }

/* Deux outils côte à côte (coffre-fort, heures de délégation) */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(4.5rem, 10vw, 8rem); }
@media (max-width: 880px) { .duo { grid-template-columns: 1fr; } }
.duo-card { padding: clamp(1.5rem, 3vw, 2rem); border-radius: 28px; background: var(--green-50); }
.duo-card + .duo-card { background: var(--yellow-50); }
.duo-card h3 { margin-top: 1rem; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.2; }
.duo-card > p { margin-top: .6rem; color: var(--ink-2); }
.mini-win {
  display: grid;
  gap: .55rem;
  margin-top: 1.4rem;
  padding: .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.doc-ligne, .heure-ligne { display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; border-radius: 10px; background: var(--soft); font-size: .8125rem; line-height: 1.3; }
.doc-ligne > span:nth-child(2), .heure-ligne > span:first-child { flex: 1; min-width: 0; }
.doc-ligne small, .heure-ligne small { display: block; color: var(--ink-3); font-size: .6875rem; }
.doc-ic { flex: none; width: 24px; height: 30px; border-radius: 4px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--yellow)); }
.doc-ic.y { --c: var(--yellow); } .doc-ic.c { --c: var(--coral); } .doc-ic.g { --c: var(--green); }
.mini-jauge { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.mini-jauge i { display: block; width: var(--v); height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--green), var(--yellow)); }
.heure-ligne .reste { flex: none; min-width: 3.5rem; text-align: right; }
.heure-ligne.envoi { justify-content: center; background: transparent; }

/* Section communication : fond léger */
.comm { padding-top: clamp(2rem, 4vw, 3.5rem); background: linear-gradient(180deg, var(--white), var(--soft) 30%, var(--soft) 70%, var(--white)); }

/* Maquette : affiche créée par l'IA */
.aff { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; padding: 1rem; }
.aff-champs { display: flex; flex-direction: column; gap: .5rem; }
.aff-champ { display: block; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; font-size: .8125rem; font-weight: 600; }
.aff-champ small { display: block; color: var(--ink-3); font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
/* L'affiche d'exemple (image réelle créée avec oddy) */
.aff { align-items: center; }
.aff-image { display: block; align-self: center; }
.aff-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(27, 31, 36, .08), 0 18px 40px -16px rgba(27, 31, 36, .45);
  scale: calc(.9 + var(--p, 1) * .1);
  transform-origin: 50% 80%;
}
@media (max-width: 480px) { .aff { grid-template-columns: 1fr; } }

/* Maquette : courrier */
.lettre { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.25rem 1.25rem; font-size: .75rem; line-height: 1.4; }
.lettre-tete { display: flex; align-items: center; gap: .6rem; padding-bottom: .55rem; border-bottom: 3px solid var(--yellow); }
.lettre-tete b, .lettre-dest b { display: block; font-size: .8125rem; }
.lettre-tete small, .lettre-dest small { color: var(--ink-3); font-size: .6875rem; }
.lettre-logo { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--green-100); box-shadow: inset 0 0 0 6px var(--green-50); }
.lettre-dest { align-self: flex-end; text-align: right; }
.lettre-objet { color: var(--ink-2); }
.lettre-l { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.lettre-l.court { width: 60%; }
.lettre-ia { align-self: flex-start; margin-top: .3rem; padding: .3rem .6rem; border-radius: 8px; background: var(--yellow-50); border: 1px solid var(--yellow-100); color: var(--yellow-800); font-weight: 600; }

/* Maquette : téléphone (page du CSE) et notification */
.phones { position: relative; display: flex; justify-content: center; padding: .5rem 0 2rem; }
.phone {
  width: min(290px, 100%);
  padding: .9rem .8rem 1rem;
  border-radius: 34px;
  background: var(--soft);
  border: 8px solid var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: .75rem;
  line-height: 1.35;
  transform: perspective(1400px) rotateY(calc((1 - var(--p, 1)) * -12deg)) scale(calc(.92 + var(--p, 1) * .08));
}
.phone-tete { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; }
.phone-tete small { display: block; color: var(--green-700); font-size: .5625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phone-tete b { font-size: .8125rem; }
.phone-logo { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--coral-50); box-shadow: inset 0 0 0 7px var(--coral-100); }
.phone-pub { display: flex; flex-direction: column; gap: .35rem; padding: .7rem; margin-bottom: .55rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.phone-pub > small { display: flex; align-items: center; gap: .35rem; color: var(--ink-3); font-size: .625rem; }
.phone-pub > b { font-size: .875rem; }
.phone-date { padding: .35rem .5rem; border-radius: 8px; background: var(--green-50); color: var(--green-700); font-size: .6875rem; font-weight: 600; }
.phone-img { display: block; height: 70px; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #3A2466, #F68577); }
.phone-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-reac { display: flex; gap: .3rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.phone-reac i { padding: .15rem .45rem; border: 1px solid var(--line); border-radius: 999px; font-style: normal; font-size: .6875rem; }
.phone-pub.verrou { background: var(--soft); border-style: dashed; }
.phone-code { padding: .35rem .5rem; border: 1px solid #CDD1D6; border-radius: 8px; background: var(--white); color: var(--ink-3); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; }
.phone-notif {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: 260px;
  padding: .7rem .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: .75rem;
  line-height: 1.35;
  translate: calc((1 - var(--p, 1)) * 80px) 0;
  opacity: calc(.1 + var(--p, 1) * .9);
}
.phone-notif b { display: block; font-size: .8125rem; }
.phone-notif span span { color: var(--ink-3); }
.phone-notif .ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--coral-50); }
@media (max-width: 520px) { .phone-notif { position: static; margin-top: 1rem; } .phones { flex-direction: column; align-items: center; } }

/* ---------- Sécurité ---------- */

.secu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 880px) { .secu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .secu { grid-template-columns: 1fr; } }
.secu li { padding: 1.25rem 1.35rem 1.25rem 3.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.4-3.1 8.2-7.5 9.5-4.4-1.3-7.5-5.1-7.5-9.5V6z' fill='%23EEF8F3' stroke='%231F7A52' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8.8 12.2l2.2 2.2 4.2-4.4' fill='none' stroke='%231F7A52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 1.2rem 1.3rem / 24px no-repeat; }
.secu b { display: block; font-size: 1.0625rem; line-height: 1.3; }
.secu span { display: block; margin-top: .3rem; color: var(--ink-2); font-size: .9688rem; line-height: 1.5; }
.secu-lien { margin-top: 1.5rem; text-align: center; }
.secu-lien a { color: var(--green-700); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Abonnement ---------- */

.abo { padding-top: 0; }
.abo-box {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--green-50), var(--white) 50%, var(--yellow-50));
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .abo-box { grid-template-columns: minmax(0, 1fr); } }
.abo-box > * { min-width: 0; } /* WebKit : le contenu d'une colonne ne doit pas élargir la carte au-delà de l'écran */
.abo-actions .btn { white-space: normal; text-align: center; }
.abo-texte h2 { margin-top: .6rem; }
.abo-texte > p { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; }
.abo-actions { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; padding: 1.5rem; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.abo-actions .btn { width: 100%; }
.abo-note { margin-top: .5rem; color: var(--ink-3); font-size: .875rem; text-align: center; }

/* Bouton clair sur fond sombre (appel final) */
.cta-box .btn-sombre { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.cta-box .btn-sombre:hover { border-color: var(--white); }

/* ---------- Pourquoi oddy ---------- */

.why { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card .ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.card .ic svg { width: 26px; }
.card h3 { margin-top: 1.1rem; font-size: 1.1875rem; line-height: 1.3; }
.card p { margin-top: .5rem; color: var(--ink-2); font-size: 1rem; }

/* ---------- Co-construction ---------- */

.pilot {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .pilot { grid-template-columns: 1fr; } }
.pilot h2 { margin-top: .6rem; }
.pilot-text > p { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 1rem; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  font-weight: 800;
  font-size: .9375rem;
}
.steps li:nth-child(1) { --c: var(--green-100); }
.steps li:nth-child(2) { --c: var(--yellow-100); }
.steps li:nth-child(3) { --c: var(--coral-100); }
.steps b { display: block; font-size: 1.0625rem; }
.steps span { color: var(--ink-2); font-size: .9688rem; }

/* ---------- Appel final ---------- */

.cta { padding-top: 0; }
.cta-box {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 32px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-box::before, .cta-box::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.cta-box::before { width: 340px; aspect-ratio: 1; left: -110px; top: -140px; border: 44px solid var(--green); opacity: .9; }
.cta-box::after { width: 90px; aspect-ratio: 1; right: 8%; bottom: -30px; background: var(--coral); }
.cta-box h2 { color: var(--white); max-width: 20ch; margin: 0 auto; }
.cta-box p { max-width: 34rem; margin: 1rem auto 0; color: #C9CED4; font-size: 1.125rem; }
.cta-box .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.cta-box .btn-primary { background: var(--yellow); color: var(--ink); box-shadow: none; }
.cta-box .btn-primary:hover { background: #F6BC4E; }
.cta-box .bar {
  width: 64px;
  height: 8px;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
  background: var(--yellow);
}

/* ---------- Pied de page ---------- */

.footer { padding: 3rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer img { height: 26px; width: auto; }
.footer p { color: var(--ink-3); font-size: .875rem; }
.footer .privacy { display: inline-flex; align-items: center; gap: .45rem; color: var(--green-700); font-weight: 600; }
.footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer .legal-liens { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

/* ---------- Pages légales (mentions, confidentialité, CGU) ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.legal-wrap { max-width: 780px; }
.legal-kicker { color: var(--green-700); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legal h1 { margin: .4rem 0 .5rem; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; }
.legal-maj { color: var(--ink-3); font-size: .875rem; }
.legal-intro { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: var(--green-50, #EFF8F3); color: var(--ink); font-size: 1.0625rem; }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.3rem; line-height: 1.25; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal p + p { margin-top: .75rem; }
.legal ul { margin: .75rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal strong { color: var(--ink); }
.legal a { color: var(--green-700); font-weight: 600; text-underline-offset: 3px; }
.legal-bloc { margin: .75rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-style: normal; line-height: 1.7; color: var(--ink-2); }
.legal-table { margin-top: 1rem; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.legal th { color: var(--ink); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Apparition au défilement (uniquement si JS actif) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Enfants qui apparaissent l'un après l'autre (--i posé par le script) */
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1.15);
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js .apps[data-stagger] > * { transition-duration: .4s, .5s; transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
.js .cal-grid[data-stagger] > * { transition-delay: calc(var(--i, 0) * 18ms + 200ms); }
.js .ev { opacity: 0; scale: .4; transform-origin: left center; transition: opacity .4s ease, scale .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 18ms + 800ms); }
.js .in .ev { opacity: 1; scale: 1; }
.js .pv-out[data-stagger] > * { transition-delay: calc(var(--i, 0) * 140ms + 500ms); }

/* ---------- Décor de fond : formes du logo en parallaxe ---------- */

main { overflow-x: clip; }
main > section, .hero { isolation: isolate; }
section { position: relative; }
.bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sh { position: absolute; display: block; pointer-events: none; }
.sh-ring { width: var(--w); aspect-ratio: 1; border-radius: 50%; border: var(--b) solid var(--c); }
.sh-arc {
  width: var(--w); aspect-ratio: 1; border-radius: 50%; border: var(--b) solid var(--c);
  -webkit-mask: conic-gradient(transparent 0 15%, #000 40% 62%, transparent 88%);
          mask: conic-gradient(transparent 0 15%, #000 40% 62%, transparent 88%);
}
.sh-bar { width: var(--w); height: var(--h); border-radius: 999px; background: var(--c); rotate: var(--r, 0deg); }
.sh-disc { width: var(--w); aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.sh-dots { width: var(--w); height: var(--h); background: radial-gradient(circle, var(--c) 1.7px, transparent 2.2px) 0 0 / 18px 18px; }
@media (max-width: 760px) { .sh.lg { display: none; } }

/* Barre de progression de lecture, aux couleurs du logo */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--green), var(--yellow) 60%, var(--coral));
  transform-origin: left;
  scale: var(--s, 0) 1;
}

/* Titre d'accueil qui s'efface doucement en descendant */
.hero h1, .hero .lead, .hero .pill { translate: 0 calc(var(--h, 0) * 90px); opacity: calc(1 - var(--h, 0) * .9); }

/* Maquettes : se redressent en 3D à l'entrée dans l'écran (--p de 0 à 1) */
.stage .window {
  transform-origin: 50% 90%;
  transform: perspective(1400px)
             rotateX(calc((1 - var(--p, 1)) * 18deg))
             rotateY(calc((1 - var(--p, 1)) * var(--ry, -10deg)))
             scale(calc(.9 + var(--p, 1) * .1));
}
.feature.reverse .stage { --ry: 10deg; }
.float-card { translate: calc((1 - var(--p, 1)) * 90px) calc((1 - var(--p, 1)) * 40px); opacity: calc(.1 + var(--p, 1) * .9); z-index: 1; }
.poster::before { scale: calc(.35 + var(--p, 1) * .65); }
.poster::after { translate: 0 calc((1 - var(--p, 1)) * 70px); }

/* Étapes du projet : un fil qui se dessine */
.steps { position: relative; padding-left: 30px; }
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 3px;
  background: var(--line);
}
.steps::after {
  background: linear-gradient(var(--green), var(--yellow), var(--coral));
  transform-origin: top;
  scale: 1 var(--p, 1);
}

/* Appel final : s'ouvre en arrivant */
.cta-box { scale: calc(.93 + var(--p, 1) * .07); }
.cta-box::before { translate: calc((1 - var(--p, 1)) * -90px) calc((1 - var(--p, 1)) * -60px); }
.cta-box::after { translate: 0 calc((1 - var(--p, 1)) * 90px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js [data-stagger] > *, .js .ev { opacity: 1; transform: none; scale: 1; }
  .js .mark path { stroke-dashoffset: 0; }
}
