/* ==========================================================================
   Clic Droit Performance — page temporaire de refonte (version claire)
   HTML / CSS / JS sans framework. Police Manrope hébergée localement (OFL).
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs */
  --white: #ffffff;
  --gray-50: #f6f8fb;      /* gris très clair */
  --blue-50: #f0f5ff;      /* bleu très pâle */
  --blue-100: #e1ebff;
  --line: #e2e8f1;
  --line-strong: #cfd9e8;
  --navy: #0b1f44;         /* bleu nuit : titres */
  --text: #24324f;         /* texte courant ≈ 12:1 sur blanc */
  --text-muted: #4b5a78;   /* texte secondaire ≈ 7:1 sur blanc */
  --blue: #1f5fe0;         /* bleu franc : boutons (blanc dessus ≈ 5,6:1) */
  --blue-hover: #1a50c2;
  --blue-text: #1d58d4;    /* mots mis en valeur ≈ 6:1 sur blanc */
  --turquoise: #19c2b2;    /* accent décoratif uniquement */
  --turquoise-text: #0b7d74;
  --star: #f2a516;

  /* Typo & rythme */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-sm: 0 1px 2px rgba(11, 31, 68, 0.05), 0 2px 8px -2px rgba(11, 31, 68, 0.06);
  --shadow: 0 1px 2px rgba(11, 31, 68, 0.04), 0 14px 34px -18px rgba(11, 31, 68, 0.22);
  --shadow-lg: 0 2px 4px rgba(11, 31, 68, 0.04), 0 26px 50px -24px rgba(11, 31, 68, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --callbar-space: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: var(--callbar-space);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; }
em { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Arrière-plan : halos très discrets ---------- */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(1500px, 170vh);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.halo {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.halo--1 {
  width: 900px; height: 900px;
  top: -360px; right: -260px;
  background: radial-gradient(circle, rgba(31, 95, 224, 0.10) 0%, rgba(31, 95, 224, 0) 66%);
  animation: drift-1 30s ease-in-out infinite alternate;
}
.halo--2 {
  width: 620px; height: 620px;
  top: 260px; right: 18%;
  background: radial-gradient(circle, rgba(25, 194, 178, 0.08) 0%, rgba(25, 194, 178, 0) 66%);
  animation: drift-2 36s ease-in-out infinite alternate;
}
.halo--3 {
  width: 700px; height: 700px;
  top: -200px; left: -320px;
  background: radial-gradient(circle, rgba(31, 95, 224, 0.06) 0%, rgba(31, 95, 224, 0) 66%);
  animation: drift-3 42s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate3d(-40px, 30px, 0) scale(1.04); } }
@keyframes drift-2 { to { transform: translate3d(40px, -30px, 0) scale(1.05); } }
@keyframes drift-3 { to { transform: translate3d(30px, 40px, 0); } }

header, main, footer { position: relative; z-index: 1; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn__label { display: flex; flex-direction: column; align-items: flex-start; }
.btn__sub {
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .9;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.btn--primary {
  color: var(--white);
  background-color: var(--blue);
  box-shadow: 0 10px 24px -12px rgba(31, 95, 224, 0.7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(31, 95, 224, 0.75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--secondary {
  color: var(--navy);
  background-color: var(--white);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--blue);
  color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .95rem; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header { padding-block: 14px; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  flex: none;
  text-decoration: none;
  border-radius: 12px;
}
.brand__logo { width: 300px; height: auto; }
.site-header__place {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
}
.site-header__place .icon { color: var(--blue); }

/* ---------- Premier écran ---------- */
.hero { padding-block: clamp(8px, 2vw, 28px) clamp(12px, 2vw, 24px); }
@supports (overflow: clip) { .hero { overflow-x: clip; } }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(25, 194, 178, 0.18);
}

.hero__title {
  margin: 22px 0 0;
  color: var(--navy);
  font-size: clamp(1.95rem, 1.25rem + 2.4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__line + .hero__line { margin-top: .12em; }
.hl { color: var(--blue-text); }

.hero__lead {
  margin-top: 22px;
  max-width: 36rem;
  font-size: clamp(1.03rem, 0.98rem + 0.3vw, 1.15rem);
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 28px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.trust__item { display: inline-flex; align-items: center; gap: 8px; }
.trust__icon { color: var(--turquoise-text); }
.trust__sep { color: var(--line-strong); font-weight: 800; }
.trust__link {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(31, 95, 224, .35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.trust__link:hover { color: var(--blue-hover); text-decoration-color: var(--blue); }
.trust__rating { gap: 8px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--star); }

/* ---------- Scène 3D ---------- */
.hero__visual {
  position: relative;
  pointer-events: none;        /* la scène n'intercepte jamais clics ni défilement */
  user-select: none;
}
.scene3d {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 900;
  max-height: 720px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  /* la scène déborde un peu de sa colonne pour plus de présence (sans défilement horizontal) */
  .hero__visual { margin: -24px -90px -64px -40px; }
  @supports not (overflow: clip) { .hero__visual { margin-right: 0; } }
}
.scene3d picture, .scene3d__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene3d__fallback {
  object-fit: contain;
  transition: opacity .9s var(--ease);
}
.scene3d__canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity .9s var(--ease);
  touch-action: auto;
  pointer-events: none;
}
.scene3d.is-3d-ready .scene3d__canvas { opacity: 1; }
.scene3d.is-3d-ready .scene3d__fallback { opacity: 0; }

/* ---------- Sections ---------- */
.section-head { max-width: 46rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--turquoise-text);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--turquoise);
}
.section-title {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

/* ---------- Services ---------- */
.services {
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, rgba(246, 248, 251, 0) 0%, var(--gray-50) 18%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--line);
}
.cards {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue);
}
.card__icon svg {
  width: 27px; height: 27px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card__icon .accent { stroke: var(--turquoise); stroke-width: 1.9; }
.card__title {
  margin: 22px 0 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card__text { margin-top: 10px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(56px, 8vw, 104px); outline: none; scroll-margin-top: 16px; }
.contact__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.contact__panel::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 194, 178, 0.12) 0%, rgba(25, 194, 178, 0) 65%);
  pointer-events: none;
}
.contact__intro, .contact__side { position: relative; }
.contact__text { margin-top: 18px; color: var(--text-muted); max-width: 34rem; }
.contact__place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-weight: 700;
  color: var(--navy);
}
.contact__place .icon { margin-top: 4px; color: var(--blue); }

.contact__who {
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--navy);
}
.contact__who span { font-weight: 600; color: var(--text-muted); }

.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
}
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--blue);
  color: var(--white);
}
.contact-item__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.contact-item__body { display: flex; flex-direction: column; min-width: 0; }
.contact-item__label { font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.contact-item__value {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.contact-item__value--email { overflow-wrap: anywhere; font-size: 1rem; }
.contact-item__ext {
  width: 18px; height: 18px;
  margin-left: auto;
  flex: none;
  fill: none; stroke: var(--text-muted);
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--text-muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer p:first-child { font-weight: 700; color: var(--navy); }

/* ---------- Barre d'appel mobile ---------- */
.callbar { display: none; }

/* ---------- Animations d'apparition (CSS seul : visibles même sans JS) ---------- */
.anim-in {
  animation: rise-in .8s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
.anim-in--quick { animation-duration: .5s; }
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

/* Révélation au défilement : activée seulement si le JS est chargé (classe .js) */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .site-header__place { font-size: .86rem; }
}

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero__text { order: 1; }
  .hero__visual { order: 2; }
  .scene3d {
    aspect-ratio: auto;
    height: clamp(230px, 58vw, 360px);
    max-width: 560px;
  }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .contact__panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 6px; }
  .site-header__place {
    order: 3;
    width: 100%;
    margin-left: 0;
    font-size: .84rem;
  }
  .site-header__cta { margin-left: auto; }
}

@media (max-width: 639px) {
  .brand__logo { width: 200px; }
  .hero__title { margin-top: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: flex-start; }
  .trust { font-size: .9rem; gap: 10px 18px; }
  .trust__sep { display: none; }
  .contact__panel { padding: 24px 18px; border-radius: 22px; }
  .contact-item__value--email { font-size: .95rem; overflow-wrap: normal; word-break: normal; }

  /* bouton d'appel fixe : un espace équivalent est réservé en bas de page */
  :root { --callbar-space: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .callbar.is-hidden { transform: translate3d(0, 110%, 0); opacity: 0; pointer-events: none; }
  .callbar .btn { min-height: 56px; }
}

@media (max-width: 360px) {
  .brand__logo { width: 150px; }
  .site-header__inner { column-gap: 12px; }
  .site-header__cta { padding-inline: 14px; font-size: .9rem; }
  .btn { padding-inline: 18px; }
  .contact-item { padding: 12px 14px; gap: 12px; }
  .contact-item__icon { width: 40px; height: 40px; }
}

/* ==========================================================================
   Animations réduites : tout est affiché immédiatement, rien ne bouge
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .halo { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .contact-item:hover, .js .card.reveal.is-visible:hover { transform: none; }
}

/* ---------- Page mentions légales ---------- */
.site-footer__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__link:hover { color: var(--blue-text); }
.legal { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px); }
.legal__inner { max-width: 820px; }
.legal__title { margin-bottom: 18px; }
.legal__intro { color: var(--text-muted); margin-bottom: 36px; }
.legal__block { padding: 26px 0; border-top: 1px solid var(--line); }
.legal__block h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.01em; }
.legal__block p { margin: 0 0 12px; line-height: 1.7; }
.legal__block p:last-child { margin-bottom: 0; }
.legal__block a { color: var(--blue-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__back { margin-top: 36px; }
.page-legal .site-header__cta { margin-left: auto; }
/* Logo animé (fond blanc fondu dans la page) */
.brand__logo--anime { mix-blend-mode: multiply; }
