/* ==========================================================================
   Nero SaaS — Landing page
   --------------------------------------------------------------------------
   Organisation du fichier :
     1. Variables (couleurs, polices)   <- c'est ici qu'on change l'identité
     2. Reset et base
     3. Utilitaires (container, stack, eyebrow, boutons…)
     4. En-tête
     5. Hero
     6. Produits
     7. Approche
     8. À propos
     9. Contact
    10. Pied de page
    11. Animation d'apparition
   ========================================================================== */


/* 1. VARIABLES ============================================================ */

:root {
  /* Fonds */
  --bg:            #08080f;   /* fond général de la page */
  --bg-alt:        #0b0b13;   /* fond des sections alternées */
  --surface:       #101019;   /* fond des petites cartes et du formulaire */
  --card-top:      #12121c;   /* dégradé des grandes cartes : haut */
  --card-bottom:   #0d0d15;   /* dégradé des grandes cartes : bas */
  --input-bg:      #0a0a12;

  /* Bordures, du plus visible au plus discret */
  --border:        #232336;
  --border-soft:   #1f1f2e;
  --border-hair:   #14141f;
  --border-line:   #191926;

  /* Textes */
  --text:          #f2f2f7;
  --text-strong:   #ffffff;
  --text-soft:     #c9c9dd;
  --text-muted:    #a3a3b8;
  --text-muted-2:  #9d9db3;
  --text-dim:      #75758f;
  --text-dim-2:    #5b5b74;

  /* Accents */
  --violet:        #a78bfa;
  --violet-light:  #c4b5fd;
  --violet-lighter:#ddd6fe;
  --sky:           #7dd3fc;
  --blue-light:    #93c5fd;

  /* Dégradé de marque */
  --gradient:      linear-gradient(120deg, #a855f7, #3b82f6);
  --gradient-mark: linear-gradient(135deg, #a855f7, #3b82f6);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #22d3ee);

  /* Polices */
  --font-display: 'Bricolage Grotesque', 'General Sans', sans-serif;
  --font-body:    'General Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Rythme : marge intérieure horizontale commune à toutes les sections */
  --gutter: clamp(20px, 5vw, 56px);
  --max-width: 1120px;
}


/* 2. RESET ET BASE ======================================================== */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--violet-light);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--violet-lighter); }

h1, h2, h3, p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

input, textarea, button { font: inherit; }

::placeholder { color: var(--text-dim-2); }

/* Anneau de focus visible au clavier (accessibilité) */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement : invisible, apparaît à la première tabulation */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}
.skip-link:focus { left: 12px; top: 12px; }

/* Visible uniquement pour les lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* 3. UTILITAIRES ========================================================== */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.section--alt      { background: var(--bg-alt); border-block: 1px solid var(--border-hair); }
.section--hairline { border-top: 1px solid var(--border-hair); }
/* évite une double ligne quand la section est suivie du pied de page */
.section--no-bottom-line { border-bottom: 0; }

/* Empilements verticaux réutilisables */
.stack-sm { display: flex; flex-direction: column; gap: 9px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }

/* Deux colonnes qui passent l'une sous l'autre sur petit écran */
.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* Titre de section */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow--violet { color: var(--violet); }
.eyebrow--sky    { color: var(--sky); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--text-strong);
}

.section-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Boutons et liens-boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: none;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .18s ease, background .18s ease, border-color .18s ease;
}
.btn--primary {
  color: #ffffff;
  background: var(--gradient);
  box-shadow: 0 14px 34px -14px rgba(147, 97, 247, .95);
}
.btn--primary:hover { filter: brightness(1.12); color: #ffffff; }

.btn--ghost {
  color: #e6e6f0;
  background: #111119;
  border: 1px solid #262636;
}
.btn--ghost:hover { background: #15151f; border-color: #3a3a52; color: #e6e6f0; }

.btn--pill  { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; box-shadow: 0 8px 24px -10px rgba(147, 97, 247, .9); }
.btn--block { width: 100%; margin-top: 4px; padding: 13px 22px; }

/* Grande carte sombre (produits, à propos) */
.card {
  border-radius: 20px;
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--border);
}


/* 4. EN-TÊTE ============================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(8, 8, 15, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-line);
}

.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 38px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 30px);
}
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--text-strong); }
.site-nav a.btn { color: #ffffff; }

@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .site-nav { justify-content: center; gap: 16px; }
}


/* 5. HERO ================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 132px) var(--gutter) clamp(56px, 9vw, 104px);
  text-align: center;
}

/* Halo violet derrière le titre */
.hero__glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: min(1100px, 140vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(139, 92, 246, .28),
              rgba(59, 130, 246, .14) 45%,
              rgba(8, 8, 15, 0) 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hero__logo {
  width: min(430px, 84vw);
  height: auto;
  border-radius: 26px;
  border: 1px solid #1e1e2e;
  box-shadow: 0 40px 90px -50px rgba(139, 92, 246, .85);
  animation: nero-float 7s ease-in-out infinite;
}

@keyframes nero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--text-strong);
  text-wrap: balance;
}

.hero__lead {
  max-width: 620px;
  font-size: clamp(16px, 1.9vw, 19.5px);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.hero__meta-sep { color: #33334a; }


/* 6. PRODUITS ============================================================= */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  transition: border-color .2s ease;
}
.product:hover        { border-color: #3d3160; }
.product--blue:hover  { border-color: #26456b; }

.product__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Pastille avec les initiales du produit */
.product__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
}
.product__mark--picokine   { background: var(--gradient-mark); }
.product__mark--kineagenda { background: var(--gradient-blue); }

/* Étiquette d'état du produit */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge--live {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .28);
}
.badge--soon {
  color: var(--blue-light);
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .3);
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.product__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.015em;
  color: var(--text-strong);
}

.product__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(23, 23, 35, .5);
  border: 1px solid #242437;
}

/* Bas de carte : le lien produit d'un côté, ses réseaux de l'autre */
.product__foot {
  margin-top: auto;            /* colle l'ensemble en bas de la carte */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.product__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.product__link--last { margin-top: auto; }   /* carte sans réseaux */
.product__link--violet { color: var(--violet-light); }
.product__link--blue   { color: var(--blue-light); }
.product__link .arrow  { font-size: 17px; line-height: 1; transition: transform .18s ease; }
.product__link:hover .arrow { transform: translateX(3px); }


/* 7. APPROCHE ============================================================= */

/* Grille en 3 + 2 : trois colonnes dès qu'il y a la place.
   En dessous, auto-fit passe naturellement à 2 puis 1 colonne. */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
@media (min-width: 900px) {
  .rules { grid-template-columns: repeat(3, 1fr); }
}

.rule {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: border-color .2s ease;
}
.rule:hover { border-color: #302a4a; }

.rule__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--violet);
}
.rule__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-strong);
}
.rule__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted-2);
  text-wrap: pretty;
}


/* 8. À PROPOS ============================================================= */

.about__role {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--violet);
}

.about__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
}

.about__p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}
.about__p--strong { color: var(--text-soft); }

.about__quote {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--text-strong);
}


/* 9. CONTACT ============================================================== */

.contact__mail {
  font-size: 16px;
  font-weight: 600;
  color: var(--violet-light);
}

.contact__address {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-muted-2); }

.field__input {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--input-bg);
  border: 1px solid #262636;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color .18s ease;
}
.field__input:focus { border-color: #7c5cf5; }
.field__input--area { line-height: 1.55; resize: vertical; }

/* Champ obligatoire laissé vide au moment de l'envoi */
.field__input.is-invalid { border-color: #f87171; }

.contact-form__note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted-2);
}


/* 10. PIED DE PAGE ======================================================== */

.site-footer {
  padding: clamp(44px, 6vw, 72px) var(--gutter) 34px;
  border-top: 1px solid var(--border-hair);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.footer-brand p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col__title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim-2);
}
.footer-col a { font-size: 14.5px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text-strong); }

/* Réseaux sociaux */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.social a:hover {
  color: var(--text-strong);
  border-color: #3a3a52;
  background: #15151f;
}
.social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* Version compacte, dans les cartes produit */
.social--sm { margin-top: 0; gap: 8px; }
.social--sm a { width: 32px; height: 32px; border-radius: 9px; background: rgba(23, 23, 35, .5); border-color: #242437; }
.social--sm svg { width: 16px; height: 16px; }

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 26px;
  border-top: 1px solid #161622;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted-2);
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #8b8ba2;
}


/* 11. PAGES LÉGALES ======================================================= */
/* Utilisé par mentions-legales.html et confidentialite.html.
   Colonne étroite : un texte long se lit mal sur toute la largeur. */

.legal-page {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.legal-page__back:hover { color: var(--text-strong); }

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text-strong);
  text-wrap: balance;
}

.legal-page__updated {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.legal-page h2 {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border-hair);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--text-strong);
}

.legal-page h3 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-soft);
}

.legal-page p,
.legal-page li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}
.legal-page p { margin-top: 14px; }

.legal-page strong { color: var(--text-soft); font-weight: 600; }

.legal-page ul {
  margin-top: 14px;
  padding-left: 20px;
  list-style: disc;
}
.legal-page li { margin-top: 7px; padding-left: 4px; }
.legal-page li::marker { color: var(--violet); }

/* Fiche d'identité (dénomination, RCS, SIRET…) */
.legal-id {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: 10px 22px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  font-size: 15px;
  line-height: 1.55;
}
.legal-id dt { font-weight: 600; color: var(--text-dim); }
.legal-id dd { margin: 0; color: var(--text-soft); }

@media (max-width: 520px) {
  .legal-id { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-id dd { margin-bottom: 12px; }
}

/* Tableau (données collectées, durées de conservation…) */
.legal-table-wrap { margin-top: 18px; overflow-x: auto; }
.legal-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.legal-table th,
.legal-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-hair);
  line-height: 1.55;
}
.legal-table th {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom-color: var(--border-soft);
}
.legal-table td { color: var(--text-muted); }
.legal-table tr:last-child td { border-bottom: 0; }

/* Encadré d'avertissement / de note */
.legal-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, .3);
  background: rgba(59, 130, 246, .08);
}
.legal-note p { margin-top: 0; color: var(--text-soft); font-size: 14.5px; }
.legal-note p + p { margin-top: 10px; }
.legal-note--warn {
  border-color: rgba(251, 191, 36, .32);
  background: rgba(251, 191, 36, .08);
}

.legal-page__footnote {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border-hair);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
}


/* 12. ANIMATION D'APPARITION ============================================== */
/* Les éléments marqués data-reveal montent en fondu quand ils entrent
   dans l'écran. La classe .is-revealed est posée par js/main.js.
   Sans JavaScript, tout reste visible : rien ne disparaît. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .3, 1);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
