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

:root {
  /* ── Couleurs (identiques à l'app CSSA) ── */
  --white:    #ffffff;
  --ink:      #111317;   /* noir / secondaire */
  --ink-2:    #1b1f27;
  --ink-soft: #2b313d;
  --teal:     #00ADAD;   /* accent */
  --teal-dk:  #019a9a;
  --teal-lt:  #e2f8f8;
  --bg:       #f5f6f8;
  --text:     #13161c;
  --muted:    #8b93a2;
  --muted-2:  #aab1bf;
  --border:   #eceef3;
  --card:     #ffffff;

  /* ── Alias conservés pour le markup du site ── */
  --surface:   var(--white);
  --dark:      var(--ink);
  --dark-card: var(--ink-2);
  --teal-dim:  var(--teal-dk);
  --teal-glow: rgba(0, 173, 173, 0.12);

  /* ── Typo ── */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* ── Rayons ── */
  --r-xl: 28px;
  --r-lg: 22px;
  --r:    16px;
  --r-sm: 12px;
  --r-xs: 9px;

  /* ── Ombres ── */
  --sh:      0 6px 24px rgba(17,19,23,.05);
  --sh-md:   0 10px 34px rgba(17,19,23,.08);
  --sh-lg:   0 18px 50px rgba(17,19,23,.12);
  --sh-teal: 0 10px 26px rgba(0,173,173,.32);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font-family: var(--font); }
::selection { background: rgba(0,173,173,.22); color: var(--ink); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  nav {
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
  }
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 24px; height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  text-decoration: none;
}

.nav-logo svg { width: 32px; height: 32px; }

.nav-right {
  display: flex; align-items: center; gap: 4px;
  justify-content: center;
}

.nav-end {
  display: flex; align-items: center; gap: 8px;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--dark); color: #fff;
}

.nav-cta {
  background: var(--ink) !important; color: #fff !important;
  font-weight: 600 !important; border-radius: 8px;
  padding: 9px 18px; font-size: 0.875rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--ink-soft) !important; transform: translateY(-1px); }

/* ── NAV DOWNLOAD BUTTON ── */
.nav-download { position: relative; }

.nav-download-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--teal); background: var(--teal-lt);
  border: 1.5px solid rgba(0,173,173,0.35);
  cursor: pointer; font-family: var(--font);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-download-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.nav-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--sh-lg); min-width: 232px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-dropdown.open { opacity: 1; pointer-events: auto; transform: none; }

.nav-dropdown-title {
  font-size: 0.7rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

.nav-dropdown .store-badge {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); width: 100%;
  box-shadow: none;
}
.nav-dropdown .store-badge:hover:not(.store-badge--soon) {
  background: var(--ink); color: #fff; transform: none; box-shadow: none;
}
.nav-dropdown .store-badge strong { color: inherit; }

/* ── MOBILE NAV APPS ── */
.mobile-nav-apps {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 260px;
}
.mobile-nav-apps-title {
  font-size: 0.7rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.mobile-nav-apps .store-badge { width: 100%; justify-content: flex-start; }

/* ── HERO ── */
#accueil {
  padding-top: 104px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 60% 30%, rgba(0,173,173,0.10), transparent),
              var(--bg);
}

.hero-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  width: 100%;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-lt); border: 1px solid var(--teal);
  border-radius: 50px; padding: 5px 14px;
  font-size: 0.72rem; font-weight: 800; color: var(--teal-dk);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.8px;
  color: var(--ink);
}

.hero-title span { color: var(--teal); }

.hero-desc {
  margin-top: 20px; font-size: 1.05rem; color: var(--muted);
  line-height: 1.75; max-width: 480px;
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.hero-tags span {
  font-size: 0.8rem; font-weight: 700;
  color: var(--teal);
  background: var(--teal-lt); border: 1px solid rgba(0,173,173,0.25);
  padding: 5px 13px; border-radius: 20px; letter-spacing: 0.02em;
}


/* ── CARROUSEL HERO ── */
.carousel { width: 100%; position: relative; }

.carousel-slide {
  display: none;
  animation: slideIn .5s cubic-bezier(.22,1,.36,1);
}
.carousel-slide.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 24px 0 8px; width: 100%;
}

.carousel-dots {
  display: flex; align-items: center; gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--teal); transform: scale(1.3);
}

.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh);
  transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t);
  flex-shrink: 0;
}
.carousel-arrow:hover {
  background: var(--ink); color: #fff;
  box-shadow: var(--sh-md); transform: scale(1.06);
}
.carousel-arrow:active { transform: scale(.94); }

/* ── HERO IMAGE / VIDEO ── */
.hero-image-wrap {
  display: flex; align-items: center; justify-content: center;
}

.hero-image {
  width: 100%; max-width: 460px; height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  object-fit: cover;
}

.hero-image-wrap video.hero-image {
  max-width: 320px;
  max-height: 520px;
  width: auto;
  object-fit: cover;
}

/* ── ACTU ANNOUNCE CARD ── */
.actu-card--announce {
  background: linear-gradient(135deg, var(--teal-lt) 0%, #fff 100%);
  border: 1.5px solid rgba(0,173,173,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.actu-announce-inner {
  text-align: center;
  padding: 28px 28px 16px;
}
.actu-announce-img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}
.actu-announce-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(0,173,173,0.12);
  border: 1px solid rgba(0,173,173,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.actu-announce-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 14px;
}
.actu-announce-title em {
  font-style: normal;
  color: var(--teal);
}
.actu-announce-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── PHONES MOCKUP ── */
.phones-wrap {
  position: relative;
  width: 440px;
  height: 540px;
}

.phones-wrap::before {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 180px;
  background: radial-gradient(ellipse, rgba(0,173,173,0.30) 0%, transparent 70%);
  pointer-events: none;
  animation: phones-glow 4s ease-in-out infinite;
  border-radius: 50%;
}

/* Slots : gèrent position + swap */
.phone-slot {
  position: absolute;
  transform-origin: bottom center;
  transition: opacity 0.4s ease;
  cursor: pointer;
  user-select: none;
}

.phone-slot--iphone { right: 0; bottom: 0; z-index: 1; opacity: 0.6; }

.phone-slot--samsung { left: 16%; bottom: 24px; z-index: 2; }

/* Hover : légère luminosité sur le téléphone en arrière-plan */
.phone-slot--iphone:not(.is-front):hover { opacity: 0.75; }
.phone-slot--samsung.is-back:hover       { opacity: 0.75; }

/* États après swap */
.phone-slot--samsung.is-back  { z-index: 1; opacity: 0.6; }
.phone-slot--iphone.is-front  { z-index: 3; opacity: 1; cursor: default; }

/* Zoom sobre au passage au premier plan */
.phone-slot.phone-zooming {
  animation: phone-zoom 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes phone-zoom {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Images : float uniquement */
.phone-img { display: block; width: auto; height: auto; }

.phone-iphone {
  max-height: 480px;
  filter: drop-shadow(0 28px 56px rgba(0,173,173,0.45)) drop-shadow(0 6px 18px rgba(0,0,0,0.14));
  animation: phone-float-a 5s ease-in-out infinite;
}

.phone-samsung {
  max-height: 530px;
  filter: drop-shadow(0 18px 40px rgba(0,173,173,0.25)) drop-shadow(0 4px 12px rgba(0,0,0,0.1));
  animation: phone-float-b 5s ease-in-out infinite 1.6s;
}

/* Entrée déclenchée par JS */
.phones-wrap.phones-entering .phone-slot--iphone {
  animation: slot-enter-r 0.7s cubic-bezier(0.34,1.2,0.64,1) both;
}
.phones-wrap.phones-entering .phone-slot--samsung {
  animation: slot-enter-l 0.7s cubic-bezier(0.34,1.2,0.64,1) 0.18s both;
}

@keyframes slot-enter-r {
  from { transform: translateX(70px); opacity: 0; }
  to   { transform: none; opacity: 0.6; }
}
@keyframes slot-enter-l {
  from { transform: translateX(-70px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes phone-float-a {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes phone-float-b {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}
@keyframes phones-glow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.22); }
}

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
  transition: background 0.24s cubic-bezier(.34,1.2,.64,1), transform 0.2s, box-shadow 0.2s;
}
.store-badge:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--sh-teal); }
.store-badge:active { transform: scale(.96); }

.store-badge--soon {
  opacity: 0.45; cursor: default; pointer-events: none;
  border: 1.5px dashed rgba(255,255,255,0.2);
}
.store-badge--soon:hover { background: var(--ink); transform: none; box-shadow: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 0.6rem; opacity: 0.7; }
.store-badge strong { font-size: 0.92rem; font-weight: 700; }

/* ── SECTIONS COMMUNES ── */
section { padding: 100px 0; }

.section-label {
  font-size: 0.72rem; font-weight: 800; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--ink); letter-spacing: -0.5px; margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.75;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── À PROPOS ── */
#a-propos { background: var(--surface); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.about-chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}

.chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 14px;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
}

.chip-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }

.about-visual {
  display: flex; align-items: center; justify-content: center;
}

.about-photo {
  width: 100%; max-width: 500px; height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  object-fit: cover;
}

.stat-card {
  background: var(--bg); border-radius: var(--r-lg); padding: 28px 22px;
  border: 1px solid var(--border);
}

.stat-card.dark {
  background: var(--dark-card); border-color: transparent;
  position: relative; overflow: hidden;
}

.stat-card.dark::after {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,173,173,0.3) 0%, transparent 70%);
}

.stat-card.dark .stat-num { color: var(--teal); }
.stat-card.dark .stat-lbl { color: rgba(255,255,255,0.45); }

.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.stat-lbl { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.stat-card.wide { grid-column: span 2; }

/* ── NOS SERVICES ── */
#nos-services { background: var(--bg); }

.services-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 56px;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.service-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 32px 28px; border: 1px solid var(--border);
  box-shadow: var(--sh);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(0,173,173,.22);
}

.service-icon {
  width: 50px; height: 50px; border-radius: 15px;
  background: var(--teal-lt); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}

.service-title {
  font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 10px;
}

.service-desc {
  font-size: 0.875rem; color: var(--muted); line-height: 1.7;
}

/* ── NOS PARTENAIRES ── */
#nos-partenaires {
  background: var(--ink);
  padding: 80px 0;
  overflow: hidden;
}

#nos-partenaires .partners-header {
  text-align: center; margin-bottom: 52px;
}
#nos-partenaires .partners-header .section-label { justify-content: center; display: flex; }
#nos-partenaires .partners-header .section-title { text-align: center; color: #fff; }
#nos-partenaires .partners-header .section-desc  { margin: 0 auto; text-align: center; color: rgba(255,255,255,0.45); }

.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 55s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }

.partners-list {
  display: flex; align-items: center;
  gap: 80px; padding: 16px 40px; flex-shrink: 0;
}

.partner-item {
  display: flex; align-items: center;
  flex-shrink: 0;
}

.partner-item img {
  height: 52px; width: auto; max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s;
}
.partner-item--lg img { height: 70px; }
.partner-item:hover img {
  filter: grayscale(0%) opacity(1);
}
.partner-item-sep {
  width: 1px; height: 32px; background: rgba(255,255,255,0.12); flex-shrink: 0;
}

@keyframes partners-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ── FORMULAIRE ── */
#formulaire {
  background: var(--dark-card);
  position: relative; overflow: hidden;
}

#formulaire::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,173,173,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.form-grid .section-title { color: #fff; }
.form-grid .section-desc  { color: rgba(255,255,255,0.5); }
.form-grid .section-label { color: var(--teal); }

.form-app-hint {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(0,173,173,0.12); border: 1px solid rgba(0,173,173,0.25);
  border-radius: var(--r); padding: 16px; margin-top: 28px;
}
.form-app-hint-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.form-app-hint-title { font-size: .88rem; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.form-app-hint-desc  { font-size: .8rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.6); margin-bottom: 6px;
}

input, select, textarea {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 0.9rem; color: #fff;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.3); }

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,173,173,0.18);
}

select option { background: var(--ink-2); color: #fff; }

textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  background: linear-gradient(135deg, var(--teal) 0%, #00c4c4 55%, var(--teal-dk) 100%);
  background-size: 160% 160%;
  color: #fff;
  border: none; border-radius: var(--r-sm);
  padding: 14px 24px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: background-position 0.45s ease, transform 0.15s, box-shadow 0.2s;
  margin-top: 4px;
}
.btn-submit:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: var(--sh-teal); }
.btn-submit:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-ok  { color: var(--teal-dk); }
.form-status.is-err { color: #d4453e; }

/* ── CONTACT ── */
#contact { background: var(--bg); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 56px;
}

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  box-shadow: var(--sh);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(0,173,173,.22);
}

.contact-icon {
  width: 50px; height: 50px; border-radius: 15px;
  background: var(--teal-lt); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 16px;
}

.contact-card h3 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.contact-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.contact-card a  { color: var(--teal); text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-link { margin-top: 10px; }

/* ── ACTUALITÉS ── */
#actualites { background: var(--bg); }

.actu-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 48px;
}

.actu-link-all {
  font-size: 0.85rem; font-weight: 600; color: var(--teal);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.actu-link-all:hover { gap: 9px; }

.actu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.actu-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--sh);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.actu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(0,173,173,.15);
}
.actu-card--fb { background: #fff; padding: 0; display: flex; flex-direction: column; }

/* Scale l'iframe (rendu interne 500px) à la largeur réelle de la colonne */
.fb-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.fb-wrap iframe {
  display: block;
  width: 500px;
  height: 640px;
  margin-bottom: -110px;
  transform-origin: top left;
  transform: scale(var(--fb-scale, 0.72));
}

.fb-view-link {
  display: block;
  padding: 12px 20px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--teal); text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.fb-view-link:hover { background: var(--teal-lt); }

.actu-thumb {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.actu-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.actu-thumb-placeholder {
  font-size: 2.5rem; opacity: 0.3;
}

.actu-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

.actu-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.actu-date {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.actu-tag {
  font-size: 0.68rem; font-weight: 700;
  background: var(--teal-lt); color: var(--teal-dk);
  border-radius: 20px; padding: 3px 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.actu-title {
  font-size: 1rem; font-weight: 800; color: var(--ink);
  line-height: 1.4; margin-bottom: 10px;
}

.actu-desc {
  font-size: 0.85rem; color: var(--muted); line-height: 1.7; flex: 1;
}

.actu-read {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 18px; font-size: 0.82rem; font-weight: 700;
  color: var(--teal); text-decoration: none;
  transition: gap 0.2s;
}
.actu-read:hover { gap: 9px; }

@media (max-width: 900px) { .actu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .actu-grid { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 48px 0 28px;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}

.footer-logo {
  font-size: 1rem; font-weight: 700; color: #fff;
}

.footer-links {
  display: flex; gap: 56px; list-style: none;
}

.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

.footer-social {
  display: flex; gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.footer-social a:hover {
  background: var(--teal); color: #fff; transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.72rem; color: rgba(255,255,255,0.25);
  margin-top: 28px; padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; background: none; border: none;
  padding: 8px; border-radius: var(--r-sm);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
  text-decoration: none; padding: 12px 32px; border-radius: var(--r);
  transition: background 0.2s, color 0.2s; width: 260px; text-align: center;
}
.mobile-nav a:hover { background: var(--bg); }
.mobile-nav a.active { background: var(--ink); color: #fff; }
.mobile-nav .mobile-cta {
  background: var(--teal); color: #fff; margin-top: 8px;
}
.mobile-nav .mobile-cta:hover { background: var(--teal-dk); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-right { gap: 0; }
  .nav-links { display: none; }
  .nav-download { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-card { display: none; }

  .hero-grid, .about-grid, .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid  { grid-template-columns: 1fr; }

  section { padding: 64px 0; }

  .hero-image { max-width: 100%; }
  .hero-image-wrap video.hero-image { max-width: 100%; max-height: 380px; }
  .hero-image-wrap { order: -1; }

  .phones-wrap { width: 280px; height: 390px; }
  .phone-samsung { bottom: 20px; }
  .phone-iphone { max-height: 340px; }
  .phone-samsung { max-height: 365px; }

  .services-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .about-photo { max-width: 100%; }

  .phones-wrap { width: 240px; height: 300px; overflow: visible; }
  .phone-iphone { max-height: 265px; }
  .phone-samsung { max-height: 285px; bottom: 14px; }

  section { padding: 48px 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 12px; }

  .store-badges { flex-direction: column; align-items: flex-start; }
  .carousel-controls { gap: 12px; }
}

/* ════════════════════════════════════════════
   COMPOSANTS AJOUTÉS
   ════════════════════════════════════════════ */

/* Liens légaux dans le footer */
.footer-copy a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-copy a:hover { color: var(--teal); }
.footer-dev-credit { color: rgba(255,255,255,0.2); }
.footer-dev-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #00adad;
  animation: dev-breathe 3s ease-in-out infinite alternate;
}
.footer-dev-name::after {
  content: '_';
  display: inline-block;
  animation: dev-cursor 1.1s step-start infinite;
  margin-left: 1px;
}
@keyframes dev-breathe {
  from {
    color: #00adad;
    text-shadow: 0 0 5px rgba(0,173,173,0.45), 0 0 12px rgba(0,173,173,0.15);
  }
  to {
    color: #3af2f2;
    text-shadow: 0 0 10px rgba(58,242,242,0.85), 0 0 24px rgba(0,200,200,0.45), 0 0 44px rgba(0,173,173,0.15);
  }
}
@keyframes dev-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Conteneur étroit (FAQ, pages légales) */
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ── TÉMOIGNAGES ── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 44px; align-items: start;
}
.testimonial-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px 28px;
  box-shadow: var(--sh); display: flex; flex-direction: column;
}
.testimonial-stars { color: #f5b50a; font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-quote {
  font-size: 0.95rem; color: var(--text); line-height: 1.7;
  margin: 0 0 24px; flex: 1; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-name { font-weight: 800; font-size: 0.9rem; color: var(--ink); }
.testimonial-role { font-size: 0.8rem; color: var(--muted); }

/* Carte vidéo (format horizontal 16:9, nom sous la vidéo) */
.testimonial-card--video, .testimonial-card--photo, .testimonial-card--yt { margin: 0; }
.testimonial-card--video, .testimonial-card--yt { cursor: pointer; }
.testimonial-card--photo .testimonial-video { object-position: center 30%; }
.testimonial-card--yt .testimonial-video-wrap { display: block; text-decoration: none; }
.testimonial-video-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-lg);
  background: #000; box-shadow: var(--sh);
}
.testimonial-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.testimonial-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.92); color: var(--teal-dk);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding-left: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s; z-index: 2;
}
.testimonial-card--video:hover .testimonial-play,
.testimonial-card--yt:hover .testimonial-play { transform: translate(-50%, -50%) scale(1.08); }
.testimonial-card--video.is-playing .testimonial-play { opacity: 0; pointer-events: none; }
.testimonial-video-meta { padding: 16px 4px 0; }
.testimonial-video-meta .testimonial-name { color: var(--ink); }
.testimonial-video-meta .testimonial-role { color: var(--muted); }
.testimonial-summary {
  font-size: 0.85rem; color: var(--text); line-height: 1.6; margin-top: 8px;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── À propos — Formation & Expertise ── */
.about-founder-header {
  display: flex; align-items: center; gap: 32px; margin-bottom: 8px;
}
.about-founder-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  object-position: center top;
  border: 3px solid var(--teal); flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0,173,173,0.2);
}
@media (max-width: 500px) {
  .about-founder-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about-founder-photo { width: 90px; height: 90px; }
}
.about-founder-tag {
  font-size: 0.88rem; color: var(--teal-dk); font-weight: 600;
  letter-spacing: 0.02em; margin: 6px 0 0; font-style: italic;
}
.about-formation { margin-top: 32px; }
.about-formation p { font-size: 0.97rem; color: var(--text); line-height: 1.85; margin-bottom: 18px; }
.about-formation p:last-child { margin-bottom: 0; }
.about-formation strong { color: var(--ink); font-weight: 700; }
.about-formation-closing {
  margin-top: 28px; padding: 20px 24px;
  border-left: 3px solid var(--teal);
  background: var(--teal-lt); border-radius: 0 var(--r) var(--r) 0;
  font-style: italic; color: var(--ink) !important;
}
.expertise-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px;
}
.expertise-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh);
}
.expertise-check {
  color: var(--teal); font-size: 1rem; font-weight: 800;
  flex-shrink: 0; margin-top: 1px; line-height: 1.6;
}
.expertise-check--pending { color: var(--muted); font-size: 0.6rem; margin-top: 5px; }
.expertise-item span:last-child { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
@media (max-width: 640px) { .expertise-grid { grid-template-columns: 1fr; } }

/* Carte citation (commentaire texte) */
.testimonial-card--quote {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--sh);
  display: flex; flex-direction: column;
}
.testimonial-quote-icon { color: var(--teal); opacity: 0.2; display: block; margin-bottom: 14px; flex-shrink: 0; }
.testimonial-quote-text {
  font-size: 0.88rem; color: var(--text); line-height: 1.75;
  font-style: italic; margin: 0 0 22px; flex: 1;
}
.testimonial-quote-footer { display: flex; align-items: center; gap: 12px; }
.testimonial-quote-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── FAQ ── */
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--sh); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 24px; font-size: 0.98rem; font-weight: 700; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--teal);
  border-radius: 2px; transition: transform 0.25s;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 320px; padding: 0 24px 22px; }
.faq-answer p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── BOUTON WHATSAPP FLOTTANT ── */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,173,173,0.30);
  opacity: 0.75;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.06); opacity: 1; box-shadow: 0 6px 18px rgba(0,173,173,0.40); }

/* ── MODAL TÉLÉCHARGER L'APP ── */
.app-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17,19,23,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: modal-fade-in 0.2s ease;
}
.app-modal-overlay[hidden] { display: none; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.app-modal {
  background: var(--card); border-radius: var(--r-lg);
  padding: 40px 36px 36px; max-width: 400px; width: 100%;
  box-shadow: 0 24px 64px rgba(17,19,23,0.2);
  position: relative; text-align: center;
  animation: modal-slide-up 0.25s cubic-bezier(.22,1,.36,1);
}
@keyframes modal-slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.app-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.app-modal-close:hover { background: var(--border); color: var(--ink); }
.app-modal-logo { margin-bottom: 20px; }
.app-modal-title {
  font-size: 1.35rem; font-weight: 800; color: var(--ink);
  line-height: 1.3; margin: 0 0 10px;
}
.app-modal-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
.app-modal-badges { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.app-modal-badges .store-badge { width: 100%; justify-content: center; }
@media (max-width: 480px) { .app-modal { padding: 32px 20px 28px; } }

/* ── BANDEAU COOKIES (carte flottante discrète) ── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; z-index: 95;
  max-width: 340px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(17,19,23,0.12);
  animation: cookie-rise 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cookie-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-text { font-size: 0.82rem; line-height: 1.55; margin: 0 0 14px; }
.cookie-text a { color: var(--teal); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-btn {
  border: none; border-radius: var(--r-sm); padding: 8px 16px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--accept { background: var(--teal); color: #fff; flex: 1; }
.cookie-btn--accept:hover { background: var(--teal-dk); }
.cookie-btn--refuse { background: var(--bg); color: var(--muted); }
.cookie-btn--refuse:hover { background: var(--border); color: var(--text); }

@media (max-width: 600px) {
  .whatsapp-fab { width: 42px; height: 42px; bottom: 18px; right: 18px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ── PAGES LÉGALES ── */
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 {
  font-size: 1.15rem; font-weight: 800; color: var(--ink);
  margin: 34px 0 12px;
}
.legal-page p, .legal-page li { font-size: 0.95rem; color: var(--text); line-height: 1.75; }
.legal-page ul { margin: 0 0 12px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--teal); }
.legal-updated { margin-top: 40px; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ── SÉLECTEUR DE LANGUE ── */
.lang-switcher {
  position: relative;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Bouton déclencheur (desktop) */
.lang-trigger {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  padding: 8px 12px; font-family: var(--font); line-height: 1;
  white-space: nowrap; letter-spacing: 0.02em;
  transition: border-color 0.15s, color 0.15s;
}
.lang-trigger:hover { border-color: var(--muted); color: var(--text); }
.lang-trigger svg { flex-shrink: 0; opacity: 0.7; }
.lang-trigger .lang-chevron { transition: transform 0.15s; }
.lang-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

/* Menu déroulant */
.lang-dropdown-menu {
  position: absolute; top: calc(100% + 5px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm); box-shadow: var(--sh-md);
  padding: 4px; min-width: 110px; z-index: 9999;
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.lang-dropdown-menu.open {
  opacity: 1; pointer-events: auto; transform: none;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.8rem; font-weight: 500; color: var(--text);
  padding: 8px 10px; border-radius: calc(var(--r-sm) - 2px);
  text-align: left; font-family: var(--font); line-height: 1;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.lang-btn:hover { background: var(--bg); }
.lang-btn.active { color: var(--teal); font-weight: 700; }

/* Sélecteur dans la nav mobile */
.lang-switcher--mobile {
  display: flex; align-items: center; gap: 4px;
  margin: 20px auto 0; justify-content: center;
  position: static;
}
.lang-switcher--mobile .lang-btn {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  padding: 6px 10px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--r-sm);
}
.lang-switcher--mobile .lang-btn:hover { color: var(--text); background: var(--bg); }
.lang-switcher--mobile .lang-btn.active {
  color: var(--teal); border-color: rgba(0,173,173,.25);
}

@media (max-width: 900px) {
  .nav-end .lang-switcher { display: none; }
}
