/* =========================================================
   ROBUSTESSE — Landing page (Humans Matter)
   Généré depuis Figma "ROBUSTESSE LANDING PAGE / Robustesse_main"
   Responsive desktop + mobile
   ========================================================= */

/* ---------- Design tokens (variables Figma) ---------- */
:root {
  --mint:        #00e1a1;
  --magenta:     #fe1367;
  --bleu-roi:    #2041ce;
  --cobalt:      #2d59e3;
  --dark-blue:   #0e1139;
  --green:       #02c8dd;
  --cyan:        #09cfe4;
  --orange:      #faa733;
  --ocre:        #fffbf8;
  --grey-light:  #f8f8fa;
  --slate-50:    #f8fafc;
  --white:       #ffffff;
  --ink:         #1c1c1c;
  --ink-soft:    #3f3f3f;
  --ink-strong:  #0e0b21;
  --text-muted:  #5d5f77;
  --on-dark:     #d6d6e0;

  --maxw: 1024px;
  --radius-lg: 20px;
  --radius-card: 24px;

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-alt:  'Quicksand', var(--font-main);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Force le rendu clair : neutralise le mode nuit / dark reader du navigateur/OS */
html { color-scheme: light only; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

/* ---------- Layout helpers ---------- */
.section { position: relative; width: 100%; padding: 100px 0; overflow: hidden; }
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.row { display: flex; gap: 65px; align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.badge--mint    { background: var(--mint); }
.badge--magenta { background: var(--magenta); }
.badge--cyan    { background: var(--cyan); }
.badge--orange  { background: var(--orange); }

/* ---------- Titles ---------- */
.h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.33;
  margin: 0;
  color: var(--ink);
}
.subtitle {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.37;
  margin: 0;
}
.lead { font-size: 18px; line-height: 1.68; }
.on-dark .h2 { color: #fff; }
.on-dark .body, .on-dark p { color: var(--on-dark); }

.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; }
.stack--40 { gap: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 80px;
  padding: 0 35px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--bleu-roi);
  color: #fff;
  box-shadow: 0 4px 2px rgba(0,0,0,.25);
}
.btn--white {
  background: #fff;
  color: var(--cobalt);
  font-family: var(--font-alt);
  box-shadow: 0 4px 4px rgba(0,0,0,.25);
}
.btn .bud { height: 40px; width: auto; transform: translateY(3px); }  /* glyph ≈ 24-25px, comme le bouton flottant */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 760px;               /* hauteur proche du frame Figma */
  overflow: hidden;
  padding: 116px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 120px;
  /* Dégradé Figma (212,78° ; magenta → transparent → menthe), opacité douce.
     Large plateau transparent au centre (40%→62%) : zone centrale quasi
     blanche. background-size agrandi pour repousser les extrémités saturées. */
  background-color: #ffffff;
  background-image: linear-gradient(212.78deg,
      rgba(254, 19, 103, .22) 18%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 62%,
      rgba(0, 225, 161, .22) 122%);
  background-size: 160% 160%;
  background-position: center;
  background-repeat: no-repeat;
}
/* Aucune dimension forcée : l'image s'affiche à son ratio natif,
   simplement plafonnée. Si le fichier source est lui-même déformé,
   remplacer assets/logo.png par l'original (SVG de préférence). */
.site-logo { position: absolute; top: 24px; left: 24px; z-index: 5; }
.site-logo img { width: auto; height: auto; max-height: 48px; max-width: 200px; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 750px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.hero__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin: 0;
  color: #000;
}
.hero__title .accent { color: var(--mint); }
.hero__subtitle {
  text-align: center;
  font-size: 18px;
  line-height: 1.52;
  color: var(--ink);
  margin: 0;
}
.hero__search {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-card);
  box-shadow: 0 17px 26.9px rgba(26,26,46,.1);
}
.hero__search-field {
  flex: 1 1 0;
  min-width: 0;
  min-height: 109px;
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-radius: 10px;
  background: rgba(236,240,252,.8);
  color: var(--text-muted);
  font-family: 'Inter', var(--font-main);
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.hero__search-field:hover { background: rgba(236,240,252,1); }
.hero__search-field:focus-visible { outline: 2px solid var(--bleu-roi); outline-offset: 2px; }

/* Accessibilité : libellé masqué visuellement mais lu par les lecteurs d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Lien d'évitement clavier */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--bleu-roi);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Circular arrow button */
.btn-round {
  width: 78px;
  height: 78px;
  flex: none;
  border: none;
  border-radius: 50px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.btn-round::before {
  content: "";
  position: absolute;
  inset: 11.67%;
  background: var(--bleu-roi);
  border-radius: 50px;
  transition: transform .15s ease;
}
.btn-round:hover::before { transform: scale(1.06); }
.btn-round svg,
.btn-round img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: auto;
  z-index: 1;
}
/* icône avion (paper-plane) : plus petite que le bud */
.btn-round .send-icon { width: 24px; }

/* ---------- Decorative blobs ----------
   Méthode : la forme est définie sur l'élément (background + border-radius
   + rotation Figma). La luminescence est un DUPLICATA de la forme, flouté
   via filter: blur(), placé par pseudo-élément — le halo épouse exactement
   le contour de la forme, quelle que soit sa rotation.
   Positions recalculées depuis les bounding boxes Figma. */
/* Méthode « voile radial » (cf. rendu de référence) :
   - la forme est NETTE (::before, aucun flou) ;
   - la luminescence est un large dégradé radial très doux (::after),
     ~2.2× la taille de la forme, qui se fond dans le fond de section.
   Pas de filter: blur → rendu identique sur tous les navigateurs. */
.blob { position: absolute; z-index: 0; pointer-events: none; }
.blob::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c);
  border-radius: inherit;
  z-index: 1;
}
/* Luminescence sur toutes les formes : voile radial doux derrière
   la forme nette (même traitement pour les quatre). */
.blob::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle closest-side,
              var(--c) 0%,
              transparent 70%);
  opacity: .38;
  z-index: 0;
}

/* Hero gauche — carré menthe 535×533, rotation -130.25° (node 92:3920)
   bbox Figma : 752×752 @ left:-571 top:58 → centre (-195, 434) */
.blob--green {
  --c: var(--mint);
  width: 535px; height: 533px; left: -462px; top: 168px;
  transform: scaleY(-1) rotate(-130.25deg);
}

/* Hero droite — pétale magenta 345×327, coin haut-gauche vif, rotation 90° (node 92:3921)
   bbox Figma : 327×345 @ right:-225 top:-17 */
.blob--magenta {
  --c: var(--magenta);
  width: 345px; height: 327px; right: -234px; top: -8px;
  border-radius: 0 550px 550px 550px;
  transform: rotate(90deg) scaleY(-1);   /* ordre Figma : rotation puis miroir */
}

/* Section point de vue — demi-gélule cyan 220×418, rotation 131.51° (node 92:4030)
   bbox Figma : 459×442, à ~656px sous le haut de section, bord droit */
.blob--cyan {
  --c: var(--green);
  width: 220px; height: 418px; right: -117px; top: 668px;
  border-radius: 321px 321px 0 0;
  transform: scaleY(-1) rotate(131.51deg);
}

/* Section accompagnement — cercle orange 392×390, rotation -45° (node 92:4068)
   bbox Figma : 553×553 @ left:-320, ~440px sous le haut de section */
.blob--orange {
  --c: var(--orange);
  width: 392px; height: 390px; left: -239px; top: 522px;
  border-radius: 50%;
  transform: rotate(-45deg);
}

/* ---------- Section variants ---------- */
.sec-white   { background: #fff; }
.sec-cyan    { background: linear-gradient(142deg, rgba(255,255,255,.5) 55%, rgba(2,200,221,.5) 164%), #fff; }
.sec-orange  { background: linear-gradient(207deg, rgba(255,255,255,0) 55%, var(--orange) 132%), #fff; }
.sec-ocre    { background: var(--ocre); }
.sec-peach   { background: #fff6ef; }
.sec-dark    { background: linear-gradient(228deg, #0b1533 72%, rgba(254,19,103,.4) 163%), var(--dark-blue); }
.sec-dark-2  { background: linear-gradient(157deg, #0b1533 61%, rgba(0,225,161,.4) 275%), var(--dark-blue); }
.sec-navy    { background: var(--dark-blue); }

/* ---------- Media blocks ---------- */
.media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--335 { height: 335px; }
.media--tall { height: 675px; }
.media--330 { height: 330px; }
.media--card { background: #fff; border-radius: var(--radius-lg); padding: 24px; }
.media--card img { object-fit: contain; }  /* le gif s'affiche entier, jamais rogné */

/* ---------- Concept cards (Perf / Résilience / Robustesse) ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 25px; width: 100%; }
.card {
  flex: 1 1 250px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
}
.card--glass { background: rgba(156,156,156,.2); }
.card--glow  { background: rgba(156,156,156,.2); box-shadow: 0 2px 76.3px rgba(0,225,161,.4); }
.card--peach { background: #fff7f0; }
.card__head { display: flex; align-items: center; gap: 18px; }
.card__title { font-size: 24px; font-weight: 600; color: var(--on-dark); margin: 0; }
.card__body  { font-size: 14px; line-height: 1.68; color: var(--on-dark); margin: 0; }
.card--peach .card__title,
.card--peach .card__body { color: var(--ink-strong); }

/* shape icons */
.shape { width: 23px; height: 23px; flex: none; }
.shape--magenta { background: var(--magenta); border-radius: 550px 0 550px 550px; }
.shape--orange  { background: var(--orange);  border-radius: 550px; }
.shape--mint    { background: var(--mint); width: 19px; height: 19px; transform: rotate(50deg); }

/* numbered cards */
.card__num { font-size: 48px; font-weight: 300; color: var(--ink-strong); margin: 0; line-height: 1.2; }

/* ---------- Buttons row ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; width: 100%; }
.btn-row .note { flex: 1 1 200px; min-width: 200px; font-size: 16px; line-height: 1.53; color: var(--on-dark); }

/* ---------- Inline mini logo (buddi.a) ---------- */
.inline-logo {
  display: inline-block;
  height: 30px;
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -0.14em;          /* remonte le logo pour l'aligner sur la ligne de texte */
  margin: 0 6px;
}

/* ---------- References ---------- */
.refs p { margin: 0 0 .2em; font-size: 20px; line-height: 1.68; color: var(--on-dark); }
.refs .authors { font-weight: 600; }
.refs em { font-style: italic; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 10px 19px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 100px;
  box-shadow: 0 10px 6.75px rgba(26,26,46,.15);
  cursor: pointer;
  transition: transform .15s ease;
}
.float-cta:hover { transform: translateY(-2px); }
.float-cta span { font-family: var(--font-main); font-size: 18px; font-weight: 500; color: var(--bleu-roi); }
.float-cta .circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #fbf2e7;              /* couleur de fond du bud.gif */
  padding: 4px;                     /* ↑ augmente pour dézoomer le bud, ↓ pour l'agrandir */
  display: flex; align-items: center; justify-content: center;
}
.float-cta .circle img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Footer ---------- */
.footer { width: 100%; }
.footer__main {
  background: #000f5b;
  padding: 40px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer__logo img { width: auto; height: auto; max-height: 48px; max-width: 200px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 53px; flex: 1 1 400px; justify-content: center; }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 220px; align-items: center; text-align: center; }
.footer__col h3 { color: #21efb5; font-size: 16px; font-weight: 600; margin: 0; }
.footer__col a, .footer__col p { color: var(--grey-light); font-size: 12px; line-height: 1.55; margin: 0; text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__bar {
  background: #07103d;
  padding: 10px;
  text-align: center;
  color: var(--grey-light);
  font-size: 10px;
}
.footer__bar p { margin: 0; }

/* =========================================================
   Accessibilité — respect de « réduire les animations »
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .float-cta:hover { transform: none; }
}

/* =========================================================
   DÉZOOM GLOBAL — desktop uniquement (> 900px)
   `zoom` réduit tout l'affichage proportionnellement, tout en
   laissant le reflow intact. Le mobile/tablette (≤ 900px) n'est
   pas affecté : la navigation tactile garde sa taille normale. */
@media (min-width: 901px) {
  body { zoom: 0.80; }
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 900px) {
  .row { gap: 40px; }
  .h2 { font-size: 30px; }
  .hero__title { font-size: 40px; }
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .row { flex-direction: column; gap: 32px; }
  .col { width: 100%; }

  .hero { padding: 90px 0 40px; gap: 56px; }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }
  .hero__search { flex-direction: column; align-items: stretch; }
  .hero__search-field { min-height: 80px; }
  .btn-round { align-self: flex-end; }

  .h2 { font-size: 26px; line-height: 1.25; }
  .subtitle { font-size: 20px; }
  .lead, .card__body, .refs p { font-size: 16px; }
  .refs p { font-size: 17px; }

  .btn { height: 64px; padding: 0 26px; font-size: 16px; width: 100%; }
  .btn-row .note { flex-basis: 100%; }

  .card { flex-basis: 100%; min-width: 0; }
  .media--tall { height: 320px; }
  .media--335, .media--330 { height: 240px; }

  /* Décor : on masque les blobs qui débordent sur mobile */
  .blob { display: none; }

  .footer__main { flex-direction: column; gap: 28px; }
  /* en colonne, flex-basis 400px s'appliquait à la HAUTEUR → grand vide. Neutralisé. */
  .footer__cols { flex: 0 0 auto; width: 100%; justify-content: center; gap: 28px; }
  .footer__col { flex: 0 0 auto; align-items: center; text-align: center; min-width: 0; }

  .float-cta span { display: none; }
  .float-cta { padding: 8px; }
}
