/* ==========================================================================
   PROXYCOM – Offres informatiques
   Feuille de style unique du site promotionnel
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Identité PROXYCOM */
  --blue: #43B0F1;          /* bleu principal */
  --navy: #002A4E;          /* bleu foncé */
  --white: #FFFFFF;

  /* Déclinaisons (lisibilité et fonds) */
  --blue-ink: #1270AC;      /* bleu lisible pour petits textes sur fond clair */
  --blue-tint: #EAF6FE;     /* fond très clair dérivé du bleu principal */
  --ink: #002A4E;
  --ink-soft: #46607A;
  --muted: #5E7286;
  --line: #DCE8F2;
  --page: #F0F0F0;          /* fond de l'emailing d'origine (identique au fond du logo de pied de page) */

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(0, 42, 78, .06), 0 10px 30px rgba(0, 42, 78, .08);
  --shadow-hover: 0 2px 4px rgba(0, 42, 78, .08), 0 18px 40px rgba(0, 42, 78, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -120px, rgba(67, 176, 241, .20), transparent 65%),
    var(--page);
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: var(--blue-ink); }

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

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

/* ---------- Éléments communs ---------- */
.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--blue);
  vertical-align: middle;
  transform: translateY(-1px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.tag__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(67, 176, 241, .25);
}

/* Boutons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(67, 176, 241, .35);
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 42, 78, .28);
}
.btn__icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--inline { width: auto; display: inline-flex; }

/* ---------- En-tête (logo + mascotte) ---------- */
.hero { padding: 24px 0 0; }

.hero__card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 20px 30px;
}

.hero__logo img {
  width: min(100%, 360px);
  height: auto;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.services li {
  padding: 6px 12px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #F7FBFF;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.jump {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.jump__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 52px 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.jump__link:hover { background: #003B6D; transform: translateY(-2px); }
.jump__label {
  font-size: 13px;
  line-height: 1.35;
  color: #CFE6F7;
}
.jump__value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
}
.jump__icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(67, 176, 241, .18);
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  padding-top: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 70%, rgba(67, 176, 241, .55), transparent 60%),
    linear-gradient(140deg, var(--navy) 30%, #0B5A92 100%);
}
.hero__mascot {
  position: relative;
  z-index: 1;
  width: min(66%, 250px);
  height: auto;
}
.ring {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 2px solid rgba(67, 176, 241, .35);
}
.ring--lg { width: 360px; height: 360px; top: -120px; right: -110px; }
.ring--sm { width: 180px; height: 180px; bottom: -70px; left: -50px; border-color: rgba(255, 255, 255, .14); }

/* ---------- Sections ---------- */
.section { padding: 56px 0 0; scroll-margin-top: 16px; }
.section--last { padding-bottom: 56px; }

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-align: center;
}
.section__head h2 {
  font-size: clamp(24px, 2.6vw + 12px, 34px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
}

/* ---------- Grilles produits ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ---------- Cartes produits ---------- */
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: translate .3s var(--ease), box-shadow .3s var(--ease);
  scroll-margin-top: 16px;  /* liens directs vers un produit (ex. depuis l'e-mail) */
}
.card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-hover);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.card__media img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  object-position: center;
}

/* Bandeau promotionnel en haut de carte (repris de l'emailing) */
.card__ribbon {
  padding: 11px 16px;
  background: linear-gradient(135deg, #0B5A92 0%, var(--navy) 70%);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 0;
}
.card__body .eyebrow { margin-bottom: 8px; }

.card__title {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
}
.card__ref {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* Accroche et description commerciales (reprises de l'emailing) */
.card__tagline {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--blue-ink);
  text-wrap: balance;
}
.card__desc {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Avantages clients */
.features {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}
.features li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.features strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}
.features li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23E1F2FD'/%3E%3Cpath d='M6 10.4l2.7 2.7L14.2 7.6' fill='none' stroke='%231270AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Bloc prix */
.price {
  margin-top: auto;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
}
.price__old {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.price__old s { text-decoration-thickness: 1.5px; }
.price__pill {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  vertical-align: 1px;
}
.price__now {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
}
.price__now span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.price__perk {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--blue-ink);
}
.price__ttc {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.card__cta { padding: 16px 22px 22px; }

/* ---------- Showroom ---------- */
.showroom {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(67, 176, 241, .40), transparent 70%),
    linear-gradient(135deg, var(--navy) 40%, #0B5A92 100%);
  box-shadow: var(--shadow);
}
.showroom__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 16px 0;
  text-align: center;
}
.showroom h2 {
  font-size: clamp(22px, 2vw + 12px, 30px);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}
.showroom p {
  max-width: 46ch;
  font-size: 15px;
  color: #D8EAF8;
}
.showroom p a {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}
.showroom .btn { margin-top: 4px; }
.showroom .btn:hover { background: var(--white); color: var(--navy); }
.showroom .showroom__address {
  font-size: 13px;
  color: #BFD9EE;
}
.showroom__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
}
.showroom__visual img { width: min(52%, 190px); }

/* ---------- Pied de page ---------- */
.footer {
  padding: 40px 0 36px;
  border-top: 1px solid rgba(0, 42, 78, .08);
  text-align: center;
}
.footer__logo {
  width: 160px;
  height: auto;
  margin: 0 auto;
}
.footer__services {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.footer__baseline {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.footer__contact {
  margin-top: 16px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
}
.footer__contact strong { color: var(--navy); }
.footer__contact a { text-decoration: none; font-weight: 500; }
.footer__contact a:hover { text-decoration: underline; }
.footer__legal {
  max-width: 820px;
  margin: 20px auto 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Apparition au défilement (activée par JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease),
    translate .3s var(--ease),
    box-shadow .3s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Mascotte : léger flottement */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__mascot { animation: float 6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .btn, .btn__icon, .jump__link { transition: none; }
  .card:hover { translate: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Mobiles et tablettes : cadre plus haut pour les ordinateurs (photos carrées ou verticales) */
@media (max-width: 1023px) {
  .grid--2 .card__media { aspect-ratio: 4 / 3; }
}

/* Petits écrans : textes centrés dans l'en-tête */
@media (max-width: 559px) {
  .hero__brand { align-items: center; text-align: center; }
  .tag { align-self: center; }
  .hero__logo img { margin-inline: auto; }
  .services { justify-content: center; }
  .jump { width: 100%; text-align: left; }
  .showroom .btn { gap: 8px; padding-inline: 18px; font-size: 15px; }
}

/* Tablettes */
@media (min-width: 560px) {
  .jump { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .container { width: min(100% - 48px, 1160px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 3 écrans sur 2 colonnes : le dernier est centré */
  .grid--3 > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

@media (min-width: 880px) {
  .hero { padding-top: 32px; }
  .hero__card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hero__brand { justify-content: center; padding: 48px 44px; gap: 26px; }
  .jump { grid-template-columns: 1fr; max-width: 420px; }
  .hero__visual { min-height: 100%; padding-top: 40px; }
  .hero__mascot { width: min(88%, 420px); }

  .section { padding-top: 72px; }
  .section--last { padding-bottom: 72px; }

  .showroom { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
  .showroom__content { align-items: flex-start; padding: 48px 0 48px 48px; text-align: left; }
  .showroom__visual { padding-top: 32px; }
  .showroom__visual img { width: min(70%, 220px); }
}

/* Ordinateurs de bureau */
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 > .card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
  .card__body { padding: 26px 26px 0; }
  .card__cta { padding: 18px 26px 26px; }
}
