/* =====================================================================
   AI SHARE — Feuille de style principale
   Palette : bleu nuit #0A192F · turquoise #64FFDA · bleu foncé #112240
   ===================================================================== */

/* ------------------------------ Tokens ------------------------------ */
:root {
  --navy:        #0A192F;   /* fond principal          */
  --navy-light:  #112240;   /* fond alterné / cartes   */
  --navy-lighter:#1D2D50;   /* survol / bordures       */
  --accent:      #64FFDA;   /* turquoise dynamique     */
  --accent-soft: rgba(100, 255, 218, 0.1);
  --text:        #E6F1FF;   /* texte clair             */
  --text-muted:  #8892B0;   /* texte secondaire        */
  --white:       #CCD6F6;

  --font-title: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:  "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --shadow-hover: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
  --transition: 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);

  --header-h: 72px;
}

/* ------------------------------ Reset ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--navy);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--white);
  line-height: 1.2;
  font-weight: 600;
}

::selection { background: var(--accent); color: var(--navy); }

/* --------------------------- Utilitaires --------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 12vw, 120px);
}
.section--alt { background: var(--navy-light); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section__title::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 260px;
  background: var(--navy-lighter);
}
.section__lead {
  max-width: 620px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.accent { color: var(--accent); }
.mono-tag {
  font-family: "Courier New", monospace;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ------------------------------ Boutons ------------------------------ */
.btn {
  --btn-color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--btn-color);
  background: transparent;
  color: var(--btn-color);
  position: relative;
  overflow: hidden;
  transition: color var(--transition), transform var(--transition);
  z-index: 0;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-color);
  transform: translateX(-101%);
  transition: transform var(--transition);
  z-index: -1;
}
.btn:hover { color: var(--navy); transform: translateY(-3px); }
.btn:hover::after { transform: translateX(0); }
.btn--solid { background: var(--accent); color: var(--navy); }
.btn--solid:hover { color: var(--navy); box-shadow: var(--shadow-hover); }
.btn--solid::after { background: rgba(255,255,255,0.15); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------------- Barre de progression de lecture ---------------- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ------------------------------ Header ------------------------------ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.header--scrolled {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { color: var(--white); }
.brand img { height: 38px; width: auto; }
.brand span .accent { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: var(--text);
  font-family: var(--font-title);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--accent); background: var(--accent-soft); }
.nav .btn { margin-left: 8px; }

.lang-switch {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 10px;
  white-space: nowrap;
}
.lang-switch a { color: var(--text-muted); }
.lang-switch a.is-active { color: var(--accent); }

/* Menu burger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 950;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 64px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}
.hero .container { position: relative; z-index: 1; }
.hero__eyebrow {
  font-family: "Courier New", monospace;
  color: var(--accent);
  margin-bottom: 22px;
  font-size: 1rem;
}
.hero__title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}
.hero__subtitle {
  font-size: clamp(1.4rem, 5vw, 3.25rem);
  line-height: 1.2;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero__text {
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------- Services --------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--navy-light);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.section--alt .card { background: var(--navy); }
.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.card__icon {
  width: 46px; height: 46px;
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { font-size: 0.98rem; margin-bottom: 18px; }
.card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(100, 255, 218, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.card__hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}
/* Carte entièrement cliquable (lien étendu) */
.card--link { cursor: pointer; }
.card--link .card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.card__link {
  font-family: var(--font-title);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__link::after { content: "\2192"; transition: transform var(--transition); }
.card__link:hover::after { transform: translateX(4px); }

/* --------------------------- À propos --------------------------- */
.about__text { max-width: 760px; }
.about__text p { margin-bottom: 18px; }

/* --------------------------- Nos valeurs (carrousel) --------------------------- */
.values__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: clamp(40px, 7vw, 64px) 0 24px;
}
.vslider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.vslides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.vslide {
  position: relative;
  min-width: 100%;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 52vw, 470px);
}
.vslide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: 0;
}
.vslide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(10, 25, 47, 0.95) 0%,
    rgba(10, 25, 47, 0.82) 40%,
    rgba(10, 25, 47, 0.35) 74%,
    rgba(10, 25, 47, 0.12) 100%);
}
.vslide__body {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 5vw, 48px);
  max-width: 600px;
}
.vslide__body h4 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--white);
  margin: 10px 0 12px;
}
.vslide__body p { color: var(--text); font-size: 1rem; }

@media (max-width: 640px) {
  .vslide { align-items: flex-end; }
  .vslide::after {
    background: linear-gradient(180deg,
      rgba(10, 25, 47, 0.35) 0%,
      rgba(10, 25, 47, 0.75) 45%,
      rgba(10, 25, 47, 0.96) 100%);
  }
  .vslide__body { max-width: none; }
}

/* --------------------------- Témoignages --------------------------- */
.testimonials { position: relative; }
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.slide {
  min-width: 100%;
  padding: 44px clamp(24px, 6vw, 64px);
  background: var(--navy-light);
}
.section--alt .slide { background: var(--navy); }
.slide__quote {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--white);
  font-style: italic;
  margin-bottom: 28px;
}
.slide__quote::before { content: "\201C"; color: var(--accent); margin-right: 4px; }
.slide__person { display: flex; align-items: center; gap: 16px; }
.slide__avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4a9fff);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.slide__name { color: var(--white); font-family: var(--font-title); font-weight: 600; }
.slide__role { font-size: 0.88rem; }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.slider__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--navy-lighter);
  background: transparent;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.slider__btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: var(--navy-lighter);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider__dot.is-active { background: var(--accent); transform: scale(1.3); }

/* --------------------------- Contact --------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact__intro p { margin-bottom: 20px; }
.socials { display: flex; gap: 14px; margin-top: 24px; }
.socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy-lighter);
  border-radius: 10px;
  color: var(--text);
  transition: transform var(--transition), color var(--transition), border-color var(--transition);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--white);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--navy-light);
  border: 1px solid var(--navy-lighter);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.section--alt .field input,
.section--alt .field textarea { background: var(--navy); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--error input,
.field--error textarea { border-color: #ff6b6b; }
.field__msg { font-size: 0.8rem; color: #ff6b6b; min-height: 1em; }

.form__status {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.form__status--err { background: rgba(255,107,107,0.1); color: #ff6b6b; border: 1px solid #ff6b6b; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------- Footer --------------------------- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-light);
  padding-block: 56px 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__brand img { height: 40px; }
.footer p { font-size: 0.92rem; max-width: 320px; }
.footer h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--white); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-muted); font-size: 0.92rem; }
.footer ul a:hover { color: var(--accent); }
.footer__newsletter form { display: flex; gap: 8px; margin-top: 12px; }
.footer__newsletter input {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  background: var(--navy-light);
  border: 1px solid var(--navy-lighter);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
}
.footer__newsletter input:focus { outline: none; border-color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* --------------------------- Pages légales --------------------------- */
.legal {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; color: var(--accent); }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .back { display: inline-block; margin-bottom: 32px; font-family: var(--font-title); font-size: 0.9rem; }

/* ---------------------- Animations au scroll ---------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 900px) {
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 40px 32px;
    background: var(--navy-light);
    box-shadow: -20px 0 40px -20px rgba(2,12,27,0.9);
    transform: translateX(105%);
    transition: transform var(--transition);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.05rem; width: 100%; }
  .nav .btn { margin: 12px 0 0; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .section__title::after { display: none; }
}
