/* ============ USIPANEL Corporate Landing — Design System ============ */
:root {
  /* MyCover-Up palette (pour la section grand public) */
  --navy: #0A355A;
  --sky: #5CB1E2;
  --gold: #F5B700;
  --cream: #FFF8E5;
  --soft-blue: #DCEAF2;

  /* USIPANEL palette (pour la section B2B) */
  --red: #d02031;

  /* Neutrals */
  --black: #0e1116;
  --gray-900: #1a1a1a;
  --gray-700: #45505F;
  --gray-500: #8a8a8c;
  --gray-300: #d6d6d8;
  --gray-200: #e6e6e8;
  --gray-100: #F9FBFD;
  --white: #ffffff;

  --radius-pill: 50px;
  --radius-card: 12px;
  --radius-sm: 6px;

  --shadow-card: 0 2px 12px rgba(10, 53, 90, 0.06);
  --shadow-hover: 0 12px 32px rgba(10, 53, 90, 0.12);
  --shadow-strong: 0 20px 48px rgba(10, 53, 90, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --container: 1240px;
  --gutter: 32px;

  --font-display: 'Rammetto One', Georgia, serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.005em; }
h1 { font-size: clamp(36px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
h3 { font-family: var(--font-sans); font-weight: 700; font-size: clamp(20px, 1.5vw, 24px); line-height: 1.2; }
h4 { font-family: var(--font-sans); font-weight: 700; font-size: 17px; line-height: 1.3; }
p { font-size: 17px; color: var(--gray-700); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sky);
  margin-bottom: 20px;
}
.eyebrow.red { color: var(--red); }
.eyebrow-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease);
}
.eyebrow-link:hover { border-bottom-color: currentColor; }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 100px 0; }
section.tight { padding: 64px 0; }
section[id] { scroll-margin-top: 96px; }

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; border-radius: 6px;
  font-size: 14px; z-index: 1000;
  transition: top 140ms var(--ease);
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========= Header ========= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.logo-word {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--black);
}
.logo-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-700);
  margin-top: 4px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 140ms;
}
.header-cta:hover { color: var(--navy); }
.header-cta svg { width: 14px; height: 14px; }

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-lg { padding: 20px 40px; font-size: 16px; }
.btn-sm { padding: 12px 22px; font-size: 13px; letter-spacing: 1.6px; }
.btn-primary {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover { background: var(--white); color: var(--red); }
.btn svg { width: 16px; height: 16px; }

/* ========= Hero ========= */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 53, 90, 0.82) 0%, rgba(10, 53, 90, 0.66) 60%, rgba(10, 53, 90, 0.78) 100%),
    url('assets/hero-cache-clim.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--gold) 50%, var(--red) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-bridge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-bridge .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero h1 {
  max-width: 920px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 19px;
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ========= Activities (introduction des 2 sections) ========= */
.intro {
  padding: 80px 0;
  background: var(--gray-100);
  text-align: center;
}
.intro p {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 19px;
  color: var(--gray-700);
}
.intro .badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  background: var(--white);
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  transition: all 200ms var(--ease);
}
.activity-badge:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.activity-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.activity-badge .dot.b2c { background: var(--sky); }
.activity-badge .dot.b2b { background: var(--red); }

/* ========= Section MyCover-Up (B2C, gros bloc) ========= */
.activity-mcu {
  background: var(--white);
  position: relative;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 { color: var(--navy); margin-bottom: 16px; }
.section-head p { font-size: 19px; }

.mcu-logo {
  display: block;
  height: 60px;
  margin: 0 auto 20px;
}

/* Galerie produits 6 photos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.product-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--soft-blue);
  cursor: pointer;
  transition: all 280ms var(--ease);
}
.product-card.tall { grid-row: span 2; aspect-ratio: 4/6; }
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.product-card:hover img { transform: scale(1.05); }
.product-card:hover { box-shadow: var(--shadow-strong); }
.product-card .label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.94);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Différenciateurs MyCover-Up */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
.feature {
  background: var(--gray-100);
  padding: 32px;
  border-radius: var(--radius-card);
  border: 1px solid var(--gray-200);
  transition: all 200ms var(--ease);
}
.feature:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--soft-blue);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--navy); }
.feature h3 { color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--gray-700); }

.mcu-cta {
  background: var(--navy);
  color: var(--white);
  padding: 56px 48px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.mcu-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245,183,0,0.22) 0%, transparent 70%);
}
.mcu-cta-text { max-width: 580px; position: relative; z-index: 1; }
.mcu-cta h3 { color: var(--white); font-size: 28px; margin-bottom: 10px; }
.mcu-cta p { color: rgba(255,255,255,0.86); font-size: 16px; margin: 0; }
.mcu-cta .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ========= Section B2B (USIPANEL industrie) ========= */
.activity-b2b {
  background: var(--gray-100);
  position: relative;
}
.b2b-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.b2b-text h2 { color: var(--black); margin-bottom: 20px; }
.b2b-text > p {
  font-size: 18px;
  margin-bottom: 28px;
}
.b2b-markets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.b2b-market {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}
.b2b-market .num {
  width: 28px; height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.b2b-market .name { font-weight: 700; font-size: 15px; }
.b2b-market .desc { font-size: 13px; color: var(--gray-700); }
.b2b-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--gray-200);
}
.b2b-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ========= Bandeau réassurance ========= */
.trust {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.trust h2 { color: var(--white); margin-bottom: 12px; }
.trust .subtitle { color: rgba(255,255,255,0.78); font-size: 17px; margin-bottom: 48px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.trust-item .num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-item .label {
  font-size: 14px;
  color: rgba(255,255,255,0.86);
  font-weight: 600;
}

/* ========= Footer ========= */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .logo-word { color: var(--white); }
.site-footer .logo-tag { color: rgba(255,255,255,0.5); }
.footer-about {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  max-width: 360px;
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.85); transition: color 140ms; }
.footer-col a:hover { color: var(--white); }
.footer-col .addr { font-style: normal; font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

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

/* Tablette landscape & portrait : 1024px et en dessous */
@media (max-width: 1024px) {
  section { padding: 80px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  /* Reset .tall pour éviter le trou de grille en 2 colonnes */
  .product-card.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .b2b-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mcu-cta { flex-direction: column; text-align: center; padding: 40px 28px; }
  .mcu-cta-text { max-width: 100%; }
  .b2b-visual { aspect-ratio: 16/9; }
}

/* Tablette portrait étroite : <768px (3eme feature passe en pleine largeur) */
@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; gap: 16px; }
}

/* Mobile : 640px et en dessous */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  section { padding: 64px 0; }
  section[id] { scroll-margin-top: 80px; }

  /* Header : masquer la baseline du logo pour libérer de la place */
  .site-header .inner { gap: 12px; }
  .logo-tag { display: none; }
  .header-cta { padding: 8px; }
  .header-cta .tel-number { font-size: 13px; }

  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; white-space: normal; }

  /* Boutons : autoriser le wrap et réduire le padding */
  .btn-lg { padding: 16px 24px; font-size: 15px; }
  .btn { white-space: normal; }

  .intro p { font-size: 17px; }
  .section-head p { font-size: 17px; }
  .b2b-text > p { font-size: 17px; }

  .products-grid { grid-template-columns: 1fr; }
  .product-card.tall { grid-row: span 1; aspect-ratio: 4/3; }

  /* Cacher le placeholder décoratif B2B sur mobile (gain de scroll) */
  .b2b-visual { display: none; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-item .num { font-size: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .activity-badge { font-size: 13px; padding: 10px 16px 10px 14px; }

  /* Section MCU CTA : padding réduit */
  .mcu-cta { padding: 32px 22px; }
  .mcu-cta h3 { font-size: 22px; }
}

/* Très petit mobile : 360px et en dessous */
@media (max-width: 360px) {
  .header-cta .tel-number { display: none; }
  .header-cta { padding: 8px; }
  .header-cta svg { width: 18px; height: 18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .activity-badge { width: 100%; justify-content: center; }
}

/* Subtle reveal animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 700ms var(--ease) both; }
.reveal-d1 { animation-delay: 100ms; }
.reveal-d2 { animation-delay: 200ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .product-card img { transition: none; }
  html { scroll-behavior: auto; }
}
