/* ==========================================================================
   UniDrine — feuille de style
   Palette tirée du logo : dégradé bleu clair → bleu profond.
   ========================================================================== */

:root {
  --blue-light: #3D8CF5;
  --blue: #1D63EA;
  --blue-deep: #0B2AD6;
  --navy: #0E1A3D;
  --ink: #1B2749;
  --muted: #5A6787;
  --line: #D9E3F7;
  --tint: #EEF3FF;
  --bg: #FFFFFF;

  --grad: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-deep) 100%);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;

  --shadow: 0 12px 40px -18px rgba(11, 42, 214, .35);

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

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

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s); z-index: 100;
}
.skip-link:focus { top: 0; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1rem; }
.section__lead { font-size: 1.125rem; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 44px -16px rgba(11, 42, 214, .5); }
.btn--ghost { color: var(--navy); border-color: var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; }
.nav__list a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; }
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--blue); }
.nav__cta {
  font-size: .9rem; padding: .65rem 1.1rem;
  position: relative; overflow: hidden;
  transition: padding .3s cubic-bezier(.4, 0, .2, 1), letter-spacing .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
}
.nav__cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
  opacity: 0; transition: opacity .3s;
}
.nav__cta > * { position: relative; }
.nav__cta svg { transition: transform .3s; }
.nav__cta:hover, .nav__cta:focus-visible {
  transform: none;
  padding-inline: 1.6rem;
  letter-spacing: .04em;
  box-shadow: 0 0 0 5px rgba(61, 140, 245, .22), var(--shadow);
}
.nav__cta:hover::before, .nav__cta:focus-visible::before { opacity: 1; }
.nav__cta:hover svg { transform: rotate(-12deg) scale(1.15); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-s);
}
.nav-toggle__bar { display: block; width: 24px; height: 2px; margin-inline: auto; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(61, 140, 245, .16), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(11, 42, 214, .08), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__intro { color: var(--blue); font-weight: 600; margin-bottom: 1.25rem; }
.hero__title { font-size: clamp(2.1rem, 5.6vw, 4.25rem); line-height: 1.05; margin-bottom: 1.5rem; }
.hero__line { display: block; white-space: nowrap; }
@media (max-width: 360px) { .hero__line { white-space: normal; } }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.25rem; }
.hero__points { list-style: none; display: grid; gap: .55rem; color: var(--ink); font-weight: 500; }
.hero__points li { display: flex; align-items: center; gap: .6rem; }
.hero__points svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--tint); color: var(--blue); stroke-width: 3; }

/* Mot tournant */
.rotator { display: block; position: relative; min-height: 1.1em; }
.rotator__word {
  position: absolute; inset: 0 auto auto 0; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.35em);
  transition: opacity .45s ease, transform .45s ease;
}
.rotator__word.is-active { opacity: 1; transform: none; position: relative; }

/* Visuel orbital */
.hero__visual { display: flex; justify-content: center; }
.orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--line); }
.orbit__ring--2 { inset: 12%; border-color: rgba(61, 140, 245, .35); }
.orbit__ring--3 { inset: 24%; border-style: dashed; }
.orbit__logo {
  width: 52%; height: auto; border-radius: 50%;
  filter: drop-shadow(0 24px 40px rgba(11, 42, 214, .28));
}
.orbit__chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 10px 30px -14px rgba(14, 26, 61, .35);
  font-size: .85rem; font-weight: 600; color: var(--navy);
}
.orbit__chip svg { width: 18px; height: 18px; color: var(--blue); }
.orbit__chip--1 { top: 9%; left: 4%; }
.orbit__chip--2 { top: 44%; right: -6%; }
.orbit__chip--3 { bottom: 9%; left: 12%; }

@media (prefers-reduced-motion: no-preference) {
  .orbit__ring--2 { animation: spin 40s linear infinite; }
  .orbit__ring--3 { animation: spin 60s linear infinite reverse; }
  .orbit__chip { animation: float 6s ease-in-out infinite; }
  .orbit__chip--2 { animation-delay: -2s; }
  .orbit__chip--3 { animation-delay: -4s; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- À propos ---------- */
.about { background: var(--tint); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__text p { color: var(--muted); font-size: 1.1rem; }
.about__values { list-style: none; display: grid; gap: 1rem; }
.value {
  display: flex; gap: 1.1rem; padding: 1.4rem 1.5rem;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
}
.value__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--grad); color: #fff;
}
.value__icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.value p { color: var(--muted); font-size: .97rem; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(29, 99, 234, .45); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--tint); color: var(--blue);
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.4rem; }
.card__sub { color: var(--blue); font-weight: 600; font-size: .95rem; margin: .2rem 0 0; }

.card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #fff 0%, var(--tint) 100%);
  border-color: rgba(29, 99, 234, .3);
}
.card--featured .card__head { display: flex; align-items: center; gap: 1.1rem; }
.card--featured .card__icon { background: var(--grad); color: #fff; }
.card--featured .card__title { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.card__split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: .5rem; }
.split { padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.split__title { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; margin-bottom: .9rem; }
.split__title svg { width: 22px; height: 22px; color: var(--blue); }

.check-list { list-style: none; display: grid; gap: .5rem; color: var(--ink); }
.check-list li { position: relative; padding-left: 1.6rem; font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.card__link { margin-top: auto; align-self: flex-start; font-weight: 700; text-decoration: none; padding-top: .5rem; }
.card__link::after { content: "\2192"; display: inline-block; margin-left: .4rem; transition: transform .2s; }
.card__link:hover::after { transform: translateX(4px); }

/* ---------- Méthode ---------- */
.method { background: var(--navy); color: #fff; }
.method .section__title { color: #fff; }
.method .section__lead { color: rgba(255, 255, 255, .7); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { padding: 1.6rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.1rem;
  border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800;
}
.step h3 { color: #fff; font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: rgba(255, 255, 255, .72); font-size: .97rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact__details { font-style: normal; display: grid; gap: 1rem; margin-top: 1.75rem; }
.contact__details p { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.contact__details svg { flex: none; width: 24px; height: 24px; color: var(--blue); margin-top: .1rem; }
.contact__cards { display: grid; gap: 1.25rem; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 1.1rem;
  padding: 1.5rem 1.75rem; border-radius: var(--radius-l); text-decoration: none;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.contact-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.contact-card__icon { grid-row: 1 / -1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; }
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card__label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact-card__value { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; color: var(--navy); letter-spacing: -0.01em; word-break: break-word; }
.contact-card__hint { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding-block: 3.5rem 1.75rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__brand img { width: 150px; margin-bottom: 1rem; }
.footer__brand p { font-weight: 500; }
.footer__nav ul { list-style: none; display: grid; gap: .6rem; }
.footer__contact { display: grid; gap: .6rem; align-content: start; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; font-size: .9rem; }

/* ---------- Protection des images (accueil uniquement) ---------- */
body.no-copy { -webkit-user-select: none; user-select: none; }
body.no-copy img { pointer-events: none; -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
/* Coordonnées : toujours sélectionnables et copiables */
body.no-copy .contact__details,
body.no-copy .contact-card,
body.no-copy .footer__contact,
body.no-copy .footer__legal,
body.no-copy a[href^="tel:"],
body.no-copy a[href^="mailto:"] { -webkit-user-select: text; user-select: text; }

/* ---------- Page mentions légales ---------- */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.legal__updated { color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 .9rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal ul { list-style: none; display: grid; gap: .5rem; }
.legal li strong { color: var(--navy); }
.legal p { color: var(--ink); }
.legal .back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .orbit { width: min(100%, 320px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem var(--gutter) 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(14, 26, 61, .3);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__list a { display: block; padding: .75rem .25rem; font-size: 1.05rem; }
  .nav__cta { justify-content: center; }
  .services__grid, .card__split, .steps { grid-template-columns: 1fr; }
  .contact-card__value { font-size: 1.15rem; }
}

@media (max-width: 520px) {
  .orbit__chip--2 { right: 0; }
  .footer__inner { grid-template-columns: 1fr; }
}

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