/* ===================================================
   sOTerio — style.css
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* --- Variables ------------------------------------ */
:root {

  /* ===== FONDS ===== */
  --bg-dark:      #08131d;
  --bg-mid:       #102131;
  --bg-light:     #f6f9fb;
  --bg-white:     #ffffff;

  /* ===== TEXTES ===== */
  --text-primary: #edf5fa;
  --text-muted:   #9fb1c0;
  --text-dark:    #132230;
  --text-body:    #45596b;

  /* ===== COULEURS DE MARQUE ===== */
  /* Orange martin-pêcheur */
  --accent:       #ff8a1f;
  --accent-light: #ffab4c;

  /* Bleu profond */
  --secondary-dark: #005f87;
  /* Turquoise */
  --secondary:      #00a9c7;
  /* Bleu clair */
  --secondary-light:#59d4e8;

  /* ===== BORDURES ===== */
  --border:       rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.08);

  /* ===== RAYON / TRANSITIONS ===== */
  --radius: 6px;
  --ease: all 0.25s cubic-bezier(.4,0,.2,1);

  /* ===== TYPO ===== */
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;

  --max-w: 1080px;
  --gap: clamp(2rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Utility -------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: var(--gap);
}

/* --- Section dividers (vagues) --------------------- */
/* Crée une transition fluide entre sections à fort contraste,
   plutôt qu'une simple ligne de bordure. */
section { position: relative; }

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(28px, 4vw, 52px);
  display: block;
  pointer-events: none;
}

/* --- NAV ------------------------------------------ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.5rem 0;
  background-color: var(--bg-mid);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  height: 84px;
  width: auto;
  display: block;
}

.brand-wordmark {
  height: 96px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: var(--ease);
}

.nav-links a:hover { color: var(--secondary); }

/* --- HERO ----------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 11.5rem 0 5rem;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background:
    radial-gradient(
      circle,
      rgba(0,169,199,0.18) 0%,
      rgba(0,95,135,0.08) 35%,
      transparent 70%
    );
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.8rem;
  transition: var(--ease);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,169,199,0.25);
}

.hero-deadline {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}

.hero-deadline .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* --- OFFER 1 : RÈGLEMENT MACHINES ----------------- */
#offre-reglement {
  background: var(--bg-mid);
  padding: var(--gap) 0;
}

.offer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.offer-layout.reverse > :first-child { order: 2; }
.offer-layout.reverse > :last-child  { order: 1; }

.offer-body p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.article-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,0.02);
  transition: var(--ease);
}

.article-card:hover {
  border-color: rgba(0,169,199,0.4);
  transform: translateY(-2px);
}

.article-card .art-ref {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  counter-increment: step;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  background: rgba(0,169,199,0.08);
}

.step-num::before { content: "0" counter(step); }

.step-body h4 {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* --- OBJECTION BANNER ----------------------------- */
#objection {
  background: var(--bg-dark);
  padding: 3.5rem 0;
}

.objection-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.objection-quote {
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  line-height: 1.5;
}

.objection-quote strong { color: var(--text-primary); font-weight: 600; }

.objection-answer h3 {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
}

.risk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.risk-list li {
  font-size: 0.93rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.risk-list li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--mono);
  flex-shrink: 0;
}

/* --- OFFER 2 : OT/ICS ----------------------------- */
#offre-ot {
  background: var(--bg-light);
  padding: var(--gap) 0;
  color: var(--text-dark);
}

#offre-ot .label { color: var(--accent); }
#offre-ot .section-title { color: var(--text-dark); }
#offre-ot .section-intro { color: var(--text-body); }

.ot-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ot-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border-top: 3px solid var(--secondary);
  padding: 1.8rem;
  transition: var(--ease);
}

.ot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,95,135,0.12);
}

.ot-card .card-icon {
  font-family: var(--mono);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.ot-card h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.ot-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- FAQ ------------------------------------------ */
#faq {
  background: var(--bg-mid);
  padding: var(--gap) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: var(--ease);
}

.faq-item:hover {
  border-color: rgba(0,169,199,0.4);
  transform: translateY(-3px);
}

.faq-q {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.faq-a {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- CONTACT -------------------------------------- */
#contact {
  background: var(--bg-dark);
  padding: var(--gap) 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  transition: var(--ease);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.contact-link .icon { color: var(--accent); font-size: 1rem; }

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-note h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.note-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.note-item::before {
  content: '//';
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
}

/* --- FOOTER --------------------------------------- */
footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

footer span, footer a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

footer a { transition: var(--ease); }
footer a:hover { color: var(--accent); }

/* --- RESPONSIVE ----------------------------------- */
@media (max-width: 800px) {
  .offer-layout,
  .objection-inner,
  .contact-inner,
  .faq-grid,
  .ot-cards { grid-template-columns: 1fr; gap: 2.5rem; }

  .offer-layout.reverse > :first-child { order: 0; }
  .offer-layout.reverse > :last-child  { order: 0; }

  .nav-links { display: none; }

  .brand-icon { height: 56px; }
  .brand-wordmark { height: 64px; }
}
