/* ==========================================================================
   SITEPARC — feuille de styles principale
   ========================================================================== */

/* --- Variables ---------------------------------------------------------- */
:root {
  --ink:         oklch(23% 0.03 255);
  --ink-soft:    oklch(40% 0.02 255);
  --ink-mute:    oklch(48% 0.02 255);
  --accent:      oklch(58% 0.14 222);
  --accent-dark: oklch(45% 0.13 225);
  --accent-lite: oklch(70% 0.12 195);
  --accent-pale: oklch(93% 0.03 222);
  --page:        oklch(98% 0.004 250);
  --surface:     oklch(95.5% 0.008 240);
  --line:        oklch(89% 0.012 250);
  --dark:        oklch(24% 0.05 255);
  --gradient:    linear-gradient(135deg, oklch(58% 0.14 222), oklch(70% 0.12 195));
  --wrap:        1180px;
}

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  text-wrap: pretty;
}

img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Accessibilité : lien d'évitement */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 12px 20px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Typographie de section -------------------------------------------- */
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow--light { color: oklch(72% 0.11 200); margin-bottom: 12px; }

h1, h2, h3, h4 { text-wrap: balance; }

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  margin: 0 0 14px;
}
.section-title--lower { text-transform: lowercase; }
.section-title--sm { font-size: clamp(24px, 3vw, 32px); }

.lede { font-size: 16px; color: var(--ink-soft); margin: 0; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 28px; border: 0; border-radius: 100px; cursor: pointer;
}
.btn--primary { background: var(--gradient); color: #fff; }
.btn--primary:hover { color: #fff; opacity: 0.92; }
.btn--ghost { color: var(--accent); border: 1px solid var(--accent); }
.btn--ghost:hover { color: var(--accent-dark); border-color: var(--accent-dark); background: var(--accent-pale); }

/* --- En-tête ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(98% 0.004 250 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 36px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a {
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.site-nav__cta {
  font-weight: 700; padding: 9px 18px; border-radius: 100px;
  background: var(--gradient); color: #fff;
}
.site-nav a.site-nav__lang {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink-mute); padding-left: 18px; border-left: 1px solid var(--line);
}
.site-nav a.site-nav__lang:hover { color: var(--accent); }

/* --- Bandeau défilant -------------------------------------------------- */
.ticker {
  background: var(--dark); overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.ticker__track {
  display: inline-block;
  animation: marquee 26s linear infinite;
  font-size: 16px; font-weight: 700;
  color: oklch(96% 0.006 250); letter-spacing: 0.02em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* --- Héros ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 24px clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px; align-items: center;
  background-image:
    repeating-linear-gradient(0deg,  oklch(90% 0.012 250 / 0.6) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, oklch(90% 0.012 250 / 0.6) 0 1px, transparent 1px 44px);
}
.hero__blob {
  position: absolute; width: 260px; height: 260px; border-radius: 24px;
  background: var(--gradient); opacity: 0.07;
  transform: rotate(8deg); top: 8%; right: 6%; z-index: 0;
}
.hero__copy { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800;
  margin: 0 0 22px; text-transform: lowercase; letter-spacing: -0.01em;
}
.hero__text {
  font-size: 18px; color: var(--ink-soft); max-width: 520px; margin: 0 0 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Carte serveur */
.rack-card {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 36px;
  box-shadow: 0 24px 60px -32px oklch(23% 0.03 255 / 0.35);
  display: flex; flex-direction: column; align-items: center;
}
.rack-card__mark {
  position: absolute; font-family: ui-monospace, monospace;
  font-size: 13px; color: oklch(75% 0.02 250);
}
.rack-card__mark--tl { top: 14px; left: 14px; }
.rack-card__mark--tr { top: 14px; right: 14px; }
.rack-card__mark--bl { bottom: 14px; left: 14px; }
.rack-card__mark--br { bottom: 14px; right: 14px; }

.rack {
  display: flex; flex-direction: column; gap: 5px; width: 100%;
  padding: 10px; border-radius: 8px;
  background: linear-gradient(180deg, oklch(19% 0.03 255), oklch(15% 0.03 255));
  border: 1px solid oklch(10% 0.02 255);
  box-shadow: inset 0 1px 0 oklch(35% 0.02 255 / 0.5);
}
.rack__unit {
  height: 30px; border-radius: 3px;
  background: linear-gradient(180deg, oklch(32% 0.015 255), oklch(22% 0.015 255));
  border: 1px solid oklch(12% 0.02 255);
  display: flex; align-items: center; gap: 10px; padding: 0 10px;
  box-shadow: inset 0 1px 0 oklch(45% 0.02 255 / 0.35);
}
.rack__bays { display: flex; gap: 2px; flex-shrink: 0; }
.rack__bays i {
  width: 4px; height: 18px; background: oklch(12% 0.02 255); border-radius: 1px;
}
.rack__vents {
  flex: 1; display: flex; gap: 3px; justify-content: center; opacity: 0.5;
}
.rack__vents i { width: 1px; height: 16px; background: oklch(55% 0.01 255); }
.rack__led {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(75% 0.18 145); flex-shrink: 0;
  animation: led-pulse 2s ease-in-out infinite;
}
.rack__unit:nth-child(1) .rack__led { animation-delay: 0s; }
.rack__unit:nth-child(2) .rack__led { animation-delay: 0.3s; }
.rack__unit:nth-child(3) .rack__led { animation-delay: 0.6s; }
.rack__unit:nth-child(4) .rack__led { animation-delay: 0.9s; }
.rack__unit:nth-child(5) .rack__led { animation-delay: 1.2s; }
.rack__unit:nth-child(6) .rack__led { animation-delay: 1.5s; }
@keyframes led-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 2px oklch(75% 0.18 145); }
  50%      { opacity: 0.4; box-shadow: 0 0 8px oklch(75% 0.18 145); }
}
@media (prefers-reduced-motion: reduce) {
  .rack__led { animation: none; }
}

.rack-card__graph { display: block; margin-top: 22px; }
.rack-card__caption {
  margin-top: 18px; font-size: 13px; color: var(--ink-soft);
  text-align: center; width: 100%;
}

/* --- Chiffres ---------------------------------------------------------- */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats__inner { padding-top: 72px; padding-bottom: 72px; }
.stats__head { text-align: center; margin-bottom: 44px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px;
}
.stat { text-align: center; border-top: 2px solid var(--accent); padding-top: 14px; }
.stat__value {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em;
}
.stat__label { font-size: 14px; color: var(--ink-mute); margin-top: 6px; }

/* --- Activités --------------------------------------------------------- */
.activities { padding-top: 96px; padding-bottom: 80px; }
.activities__head { max-width: 640px; margin-bottom: 48px; }
.activities__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px;
}

.activity {
  display: flex; gap: 20px; padding: 24px; margin-bottom: 20px;
  border-radius: 0.5rem;
  transition: background 0.25s ease;
}
.activity__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-pale);
  display: flex; align-items: center; justify-content: center;
}
.activity__icon .material-symbols-outlined {
  font-size: 24px; line-height: 1; color: oklch(48% 0.13 225);
}
.activity__title { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.activity__text { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Bloc dépliable */
.activity--toggle {
  cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: inherit; background: none; border: 0;
}
.activity--toggle .activity__text { margin-bottom: 10px; }
.activity__more {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: rgb(27 97 139);
}
.activity__more .material-symbols-outlined {
  font-size: 16px; line-height: 1; color: rgb(60 122 165);
}
.activity--toggle[aria-expanded="true"] {
  background: rgb(226 232 240); border-radius: 0.5rem;
}
.activity--toggle[aria-expanded="true"] .activity__title,
.activity--toggle[aria-expanded="true"] .activity__text { color: rgb(60 122 165); }

.activity--wide { grid-column: 1 / -1; justify-content: center; }
.activity--wide > span:last-child { max-width: 620px; }

.activity-panel {
  grid-column: 1 / -1;
  display: none;
  background: rgb(226 232 240);
  border-radius: 0.5rem;
  margin-top: -20px; margin-bottom: 20px;
}
.activity-panel.is-open { display: block; }
.activity-panel__inner { padding: 24px; }
.activity-panel__head { text-align: center; max-width: 660px; margin: 0 auto 32px; }
.activity-panel__head h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.activity-panel__head p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.activity-panel__close {
  display: block; margin: 12px auto 0; padding: 0;
  background: none; border: 0; cursor: pointer; line-height: 1;
}
.activity-panel__close .material-symbols-outlined {
  font-size: 48px; line-height: 1; color: rgb(27 97 139);
}

/* Desktop 3 colonnes : la rangée de blocs reste intacte quand on déplie
   un panneau. Les panneaux se replacent sous leur rangée (via order) au
   lieu de s'insérer au milieu et de repousser les blocs voisins.
   En dessous (mobile / tablette 1 colonne) : ordre naturel du DOM,
   chaque panneau s'ouvre juste sous son bloc. */
@media (min-width: 988px) {
  .activity-panel:not(.activity-panel--wide) { order: 1; }
  .activities__grid > .activity:not(.activity--toggle) { order: 2; }
  .activity--wide { order: 3; }
  .activity-panel--wide { order: 4; }
}

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.card-grid--spaced {
  margin-bottom: 48px;
  /* 2 colonnes max (2 x 2), repli sur 1 colonne sous ~580px */
  grid-template-columns: repeat(auto-fit, minmax(max(280px, calc(50% - 10px)), 1fr));
}
.card {
  background: #fff; border: 1px solid oklch(90% 0.012 250);
  border-radius: 12px; padding: 24px;
}
.card h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.card h4 .material-symbols-outlined { font-size: 20px; line-height: 1; color: oklch(48% 0.13 225); flex-shrink: 0; }
.card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.card--stack h4 { margin-bottom: 14px; }
.card--stack p { margin: 0 0 12px; }

/* Liste « Bien plus encore... » */
.more-list { margin: 0; max-width: 720px; }
.more-list dt {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 18px;
}
.more-list dt:first-child { margin-top: 0; }
.more-list dt .material-symbols-outlined {
  font-size: 20px; line-height: 1; color: oklch(48% 0.13 225); flex-shrink: 0;
}
.more-list dd {
  margin: 4px 0 0 28px; font-size: 14px; line-height: 1.6; color: var(--ink-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-block; background: var(--surface);
  border: 1px solid oklch(91% 0.012 250); border-radius: 6px;
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: oklch(38% 0.02 255);
}

/* --- Datacenter -------------------------------------------------------- */
.datacenter { background: var(--dark); color: oklch(96% 0.006 250); }
.datacenter__inner {
  padding-top: 80px; padding-bottom: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px; align-items: center;
}
.datacenter__band-wrap { padding-bottom: 80px; }
.datacenter__band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; align-items: center;
  border: 1px solid oklch(45% 0.04 255 / 0.6); border-radius: 16px;
  background: oklch(100% 0 0 / 0.05);
  padding: 24px;
}
.dc-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; font-size: 14px; font-weight: 600;
}
.dc-badge .material-symbols-outlined {
  font-size: 30px; line-height: 1; color: oklch(72% 0.11 200);
}
.datacenter__text { font-size: 15px; color: oklch(80% 0.01 250); margin: 0; }
.datacenter__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px;
}
.feature {
  border: 1px solid oklch(45% 0.04 255); border-radius: 12px; padding: 20px;
}
.feature__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature__desc { font-size: 13px; color: oklch(75% 0.01 250); }

/* --- Réalisations ------------------------------------------------------ */
.refs { padding-top: 96px; padding-bottom: 80px; }
.refs__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.refs__nav { display: flex; gap: 10px; }
.refs__nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  font-size: 18px; cursor: pointer; color: var(--ink);
}
.refs__nav button:hover { background: var(--surface); }
.refs__nav button:disabled { opacity: 0.35; cursor: default; }

.refs__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px;
}
.ref-card {
  text-decoration: none; color: inherit; display: block;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; transition: transform 0.2s, box-shadow 0.2s;
}
.ref-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -28px oklch(23% 0.03 255 / 0.4);
}
.ref-card__img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top left;
  display: block; border-bottom: 1px solid var(--line);
}
.ref-card__body { padding: 22px; }
.ref-card__name {
  font-size: 16px; font-weight: 700; margin-bottom: 8px; text-transform: lowercase;
}
.ref-card__desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.ref-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 8px; border-radius: 100px;
  background: var(--surface); border: 1px solid oklch(90% 0.012 250);
  font-size: 12px; font-weight: 600; color: oklch(35% 0.02 255);
}
.tag svg { flex-shrink: 0; }
.ref-card__link { font-size: 13px; font-weight: 700; color: var(--accent); }

/* --- Témoignages ------------------------------------------------------- */
.quotes {
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.quotes__inner {
  max-width: 1000px; margin: 0 auto;
  padding: 96px 24px;
}
.quotes__head { text-align: center; margin-bottom: 48px; }
.quotes__stage {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 5vw, 56px); text-align: center;
  display: grid; align-items: center;
}
/* Les témoignages sont empilés dans la même cellule : le cadre garde
   toujours la hauteur du plus long, quel que soit celui affiché. */
.quote {
  grid-area: 1 / 1;
  visibility: hidden;
}
.quote.is-active { visibility: visible; }
.quote__avatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 22px; display: block;
}
.quote__text {
  font-size: 19px; font-style: italic; line-height: 1.6;
  color: var(--ink); margin: 0 0 22px;
}
.quote__name { font-size: 15px; font-weight: 700; }
.quote__role { font-size: 13px; color: var(--ink-mute); }

.quotes__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.quotes__note { text-align: center; font-size: 12px; color: var(--ink-mute); margin: 14px 0 0; font-style: italic; }
.quotes__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0;
  cursor: pointer; background: oklch(85% 0.012 250);
}
.quotes__dots button.is-active { background: var(--accent); }

/* --- À propos ---------------------------------------------------------- */
.about {
  max-width: 820px; margin: 0 auto; padding: 96px 24px; text-align: center;
}
.about__lead {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; line-height: 1.5;
  color: var(--ink); margin: 0 0 24px;
}
.about__text { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* --- Contact ----------------------------------------------------------- */
.contact { padding: 0 24px 96px; max-width: var(--wrap); margin: 0 auto; }
.contact__box {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px;
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 5vw, 56px); background: #fff;
}
.contact__mark {
  position: absolute; font-family: ui-monospace, monospace;
  font-size: 13px; color: oklch(75% 0.02 250);
}
.contact__mark--tl { top: 14px; left: 14px; }
.contact__mark--br { bottom: 14px; right: 14px; }
.contact__intro { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 24px; max-width: 42ch; }
.contact__line { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.contact__line a { text-decoration: none; color: var(--ink); font-weight: 600; }
.contact__line a:hover { color: var(--accent); }
.contact__action {
  display: flex; flex-direction: column; justify-content: center;
}
.contact__action p { font-size: 16px; color: var(--ink-soft); margin: 0 0 22px; }
.contact__action .btn { align-self: flex-start; }

/* --- Pied de page ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.site-footer img { height: 26px; width: auto; opacity: 0.85; }
.site-footer__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-mute);
}
.link-plain {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px;
}
.link-plain:hover { color: var(--accent); }

/* --- Modale mentions légales ----------------------------------------- */
.legal-modal {
  /* centrage dans la fenêtre visible, quelle que soit la position de scroll */
  position: fixed; inset: 0; margin: auto;
  width: min(640px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px;
  background: #fff; color: var(--ink);
}
.legal-modal[open] { display: flex; }
.legal-modal::backdrop { background: oklch(24% 0.05 255 / 0.55); }
.legal-modal__inner {
  padding: clamp(24px, 4vw, 40px);
  overflow-y: auto;
}
.legal-modal h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; margin: 0 0 18px;
}
.legal-modal h3 {
  font-size: 14px; font-weight: 700; margin: 20px 0 6px; color: var(--ink);
}
.legal-modal p {
  font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 10px;
}
.legal-modal a { color: var(--accent); font-weight: 600; }
.legal-modal__x {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.legal-modal__x:hover { background: var(--line); }
.legal-modal__foot { margin-top: 24px; text-align: right; }
