/* ============================================
   CASTOR SYSTEMS — style corporate
   ============================================ */

:root {
  --blue: #F05D23;
  --blue-deep: #C94A18;
  --navy: #261C15;
  --navy-2: #17100B;
  --sky: #F4E8C1;
  --white: #FFFFFF;
  --text: #2A211A;
  --gray: #6E6257;
  --line: #E5DAC2;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.15s;
}

.skip-link:focus { top: 16px; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 44px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }

.brand img { height: 40px; width: 40px; }

.brand .word {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.05;
}

.brand .word small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--blue);
  font-weight: 600;
}

.nav-links { display: flex; gap: 6px; list-style: none; flex: 1; }

.nav-links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 26px 16px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn.light { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn.light:hover { background: transparent; color: var(--white); }

.btn.outline { background: transparent; color: var(--blue); }

.btn.outline:hover { background: var(--blue); color: var(--white); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.arrow-link::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform 0.15s; }

.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; height: min(78vh, 720px); min-height: 480px; overflow: hidden; background: var(--navy); }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide .slide-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  color: var(--white);
}

.slide .eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F4E8C1;
  margin-bottom: 18px;
}

.slide h1, .slide .h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  max-width: 22ch;
  margin-bottom: 18px;
  font-weight: 800;
}

.slide p { font-size: 1.15rem; max-width: 54ch; margin-bottom: 30px; color: #F3EAD8; }

.slider-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dots button {
  width: 34px;
  height: 5px;
  border: none;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dots button.active { background: var(--white); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(23, 16, 11, 0.45);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-arrow:hover { background: rgba(23, 16, 11, 0.75); }

.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }

.section.alt { background: var(--sky); }

.section-center { text-align: center; max-width: 820px; margin: 0 auto 56px; }

.section-center h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy); margin-bottom: 18px; }

.section-center p { color: var(--gray); font-size: 1.08rem; margin-bottom: 22px; }

/* Tuiles domaines */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }

.tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(38, 28, 21, 0.25); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,16,11,0) 30%, rgba(23,16,11,0.82) 100%);
}

.tile .tile-body { position: relative; z-index: 2; padding: 28px; color: var(--white); }

.tile .tile-body h3 {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tile .tile-body p { font-size: 0.95rem; color: #EFE3CC; }

/* Bandeau plateforme */
.platform-band {
  background: linear-gradient(140deg, var(--navy-2) 0%, var(--navy) 60%, #38291D 100%);
  border-top: 3px solid var(--blue);
  color: var(--white);
  padding: 96px 0;
}

.platform-band .kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F4E8C1;
  margin-bottom: 16px;
}

.platform-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 26ch; margin-bottom: 18px; }

.platform-band p { font-size: 1.1rem; color: #F0E4CE; max-width: 62ch; margin-bottom: 34px; }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(38, 28, 21, 0.14); }

.card .card-img { height: 190px; background-size: cover; background-position: center; }

.card .card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }

.card .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }

.card p { color: var(--gray); font-size: 0.96rem; margin-bottom: 20px; }

.card .arrow-link { margin-top: auto; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }

.stat .big { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--blue); line-height: 1; }

.stat .lab { color: var(--gray); margin-top: 10px; font-size: 0.95rem; }

/* Explore */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }

.explore h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 6px; }

.explore .sub { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; }

.explore ul { list-style: none; }

.explore ul li { margin-bottom: 10px; }

/* Bannière interne */
.page-banner {
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 110px 0 90px;
}

.page-banner h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 16px; }

.page-banner p { font-size: 1.12rem; max-width: 58ch; color: #F3EAD8; }

/* Détail plateforme */
.detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.detail:last-of-type { border-bottom: none; }

.detail .visual { border-radius: 10px; overflow: hidden; min-height: 260px; background-size: cover; background-position: center; }

.detail .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.detail h2 { font-size: 1.9rem; color: var(--navy); margin-bottom: 14px; }

.detail p { color: var(--gray); margin-bottom: 18px; }

.detail ul { list-style: none; margin-bottom: 24px; }

.detail li { padding: 8px 0 8px 30px; position: relative; color: var(--text); font-size: 0.97rem; border-bottom: 1px dashed var(--line); }

.detail li::before { content: "✓"; position: absolute; left: 4px; color: var(--blue); font-weight: 700; }

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pill.live { background: #E1F2E5; color: #1B7A3D; }
.pill.soon { background: var(--sky); color: var(--blue-deep); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 32px;
  background: var(--white);
}

.contact-card h3 { color: var(--navy); margin-bottom: 10px; }

.contact-card p { color: var(--gray); font-size: 0.96rem; margin-bottom: 18px; }

.email-big {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.email-big:hover { text-decoration: underline; }

/* ---------- Sous-navigation de page ---------- */
.page-nav { position: sticky; top: 72px; z-index: 150; background: var(--white); border-bottom: 1px solid var(--line); }

.page-nav .row { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; }

.page-nav a {
  flex: 0 0 auto; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--navy); text-decoration: none; font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.page-nav a:hover { border-color: var(--blue); color: var(--blue); }

.page-nav a.buy { border-color: var(--blue); color: var(--white); background: var(--blue); margin-left: auto; }
.page-nav a.buy:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }

@media (max-width: 900px) {
  .page-nav { position: static; }
  .page-nav a.buy { margin-left: 0; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--gray); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--blue); font-weight: 400; transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { color: var(--gray); margin-top: 14px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B3A695; }

.site-footer .top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 32px 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer .word {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
}

.site-footer .word span { color: #F05D23; }

.site-footer .tagline { margin-top: 12px; font-size: 0.93rem; max-width: 34ch; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 11px; }

.site-footer a { color: #D8CCBA; text-decoration: none; font-size: 0.95rem; }

.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer .bottom { border-top: 1px solid #3E3125; }

.site-footer .bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { height: auto; flex-wrap: wrap; padding: 14px 20px; gap: 14px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .nav-links a { padding: 10px 12px; white-space: nowrap; }
  .detail { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .hero-slider { height: 70vh; }
}

/* ---------- Mobile (lisibilité) ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }

  .nav { padding: 10px 14px; gap: 10px; }
  .brand img { height: 32px; width: 32px; }
  .brand .word { font-size: 0.92rem; }
  .nav > .btn { margin-left: auto; padding: 8px 16px; font-size: 0.85rem; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 0.88rem; border-bottom-width: 2px; }

  /* Hero : hauteur naturelle, un slide à la fois, sans flèches */
  .hero-slider { height: auto; min-height: 0; }
  .slide { position: relative; inset: auto; display: none; padding: 48px 0 58px; }
  .slide.active { display: flex; }
  .slide .slide-inner { padding: 0 20px; }
  .slide .eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; margin-bottom: 12px; }
  .slide h1, .slide .h1 { font-size: 1.7rem; line-height: 1.2; }
  .slide p { font-size: 0.98rem; margin-bottom: 22px; }
  .slider-arrow { display: none; }
  .slider-dots { bottom: 14px; }

  .section { padding: 52px 0; }
  .section-center { margin-bottom: 36px; }
  .section-center h2 { font-size: 1.45rem; }
  .section-center p { font-size: 0.98rem; }

  .tiles { gap: 16px; }
  .tile { min-height: 210px; }
  .tile .tile-body { padding: 20px; }

  .platform-band { padding: 56px 0; }
  .platform-band h2 { font-size: 1.5rem; }
  .platform-band p { font-size: 0.98rem; }

  .cards { gap: 16px; }
  .card .card-img { height: 150px; }
  .card .card-body { padding: 20px 20px 24px; }
  .card h3 { font-size: 1.15rem; }

  .stats { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .stat .big { font-size: 1.9rem; }
  .stat .lab { font-size: 0.85rem; }

  .page-banner { padding: 62px 0 50px; }
  .page-banner h1 { font-size: 1.8rem; }
  .page-banner p { font-size: 0.98rem; }

  .detail { padding: 36px 0; gap: 22px; }
  .detail .visual { min-height: 160px; }
  .detail h2 { font-size: 1.4rem; }

  .contact-card { padding: 26px 22px; }
  .email-big { font-size: 1.05rem; word-break: break-all; }

  .explore { gap: 26px; }

  .btn { padding: 12px 24px; }

  .site-footer .top { grid-template-columns: 1fr; padding: 44px 20px 28px; gap: 26px; }
  .site-footer .bottom-inner { flex-direction: column; gap: 4px; padding: 16px 20px; }
}


/* ---------- Correctifs ---------- */
@media (max-width: 900px) {
  .nav-links { flex-wrap: wrap; overflow-x: visible; }
  .nav-links a { white-space: normal; }
}
