/* ============================================
   ALOCEAN.TECH — Feuille de style principale
   Design 2026 — propre, moderne, professionnel
   ============================================ */

:root {
  --bleu-nuit: #0b2545;
  --bleu-profond: #13315c;
  --bleu-ocean: #1d6fb8;
  --bleu-clair: #3d9be9;
  --cyan: #52c3e6;
  --encre: #17202b;
  --gris-texte: #4b5866;
  --gris-doux: #8494a5;
  --fond: #f7fafc;
  --blanc: #ffffff;
  --ligne: #e3eaf1;
  --ambre: #f0a441;
  --radius: 14px;
  --ombre: 0 6px 24px rgba(11, 37, 69, .08);
  --ombre-forte: 0 14px 40px rgba(11, 37, 69, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--encre);
  background: var(--fond);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bleu-ocean); text-decoration: none; }
a:hover { text-decoration: underline; }

.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: .5px;
  color: var(--bleu-nuit); text-decoration: none;
  display: flex; align-items: center;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--bleu-ocean); }
.logo-img { height: 48px; width: auto; display: block; }
.footer .logo-img { height: 44px; }
.hero-logo { width: min(380px, 72vw); height: auto; margin-bottom: 26px; margin-left: -12px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--gris-texte); font-weight: 500; font-size: .95rem;
}
.nav a:hover { color: var(--bleu-ocean); text-decoration: none; }
.nav .btn-nav {
  background: var(--bleu-ocean); color: #fff; padding: 9px 18px;
  border-radius: 999px; font-weight: 600;
  transition: background .2s;
}
.nav .btn-nav:hover { background: var(--bleu-profond); }
.langues { display: flex; gap: 8px; font-size: .8rem; }
.langues a { color: var(--gris-doux); font-weight: 600; }
.langues a.actif { color: var(--bleu-ocean); }

/* burger mobile */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--bleu-nuit); line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--bleu-nuit) 0%, var(--bleu-profond) 45%, var(--bleu-ocean) 100%);
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(82, 195, 230, .25), transparent),
    radial-gradient(ellipse 50% 35% at 15% 90%, rgba(61, 155, 233, .18), transparent);
  pointer-events: none;
}
.hero .conteneur { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #dbeefc;
  font-size: .82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px; letter-spacing: .3px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15; font-weight: 800;
  max-width: 720px;
  letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.accroche {
  margin: 22px 0 34px;
  font-size: 1.15rem; color: #cfe3f5;
  max-width: 640px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primaire { background: #fff; color: var(--bleu-nuit); box-shadow: var(--ombre-forte); }
.btn-primaire:hover { background: #eaf4fd; }
.btn-secondaire {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, .5);
}
.btn-secondaire:hover { border-color: #fff; }
.hero-preuves {
  margin-top: 44px; display: flex; gap: 28px; flex-wrap: wrap;
  font-size: .9rem; color: #b9d7ef;
}
.hero-preuves div { display: flex; align-items: center; gap: 8px; }
.hero-preuves .puce { color: var(--cyan); font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--blanc); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.sur-titre {
  color: var(--bleu-ocean); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800; letter-spacing: -.4px; line-height: 1.2;
  margin-bottom: 14px;
}
.section .intro {
  color: var(--gris-texte); font-size: 1.08rem; max-width: 680px;
  margin-bottom: 46px;
}

/* ---------- Cartes services ---------- */
.grille-services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.carte {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--ombre);
  transition: transform .18s, box-shadow .18s;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.carte .icone {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, #e3f2fd, #d3ecfa);
}
.carte h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.carte p { color: var(--gris-texte); font-size: .97rem; }
.carte ul {
  margin-top: 14px; padding-left: 0; list-style: none;
  color: var(--gris-texte); font-size: .93rem;
}
.carte ul li { padding: 4px 0 4px 24px; position: relative; }
.carte ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--bleu-ocean); font-weight: 700;
}

/* ---------- Méthode ---------- */
.etapes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px; counter-reset: etape;
}
.etape {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius); padding: 26px 22px;
}
.etape .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bleu-ocean); color: #fff; font-weight: 800; font-size: .95rem;
  margin-bottom: 14px;
}
.etape h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.etape p { color: var(--gris-texte); font-size: .92rem; }

/* ---------- Réalisations ---------- */
.grille-realisations {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.realisation {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--ombre); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.realisation:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.realisation .entete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.realisation .app-icone {
  width: 54px; height: 54px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; font-weight: 800;
}
.realisation h3 { font-size: 1.15rem; font-weight: 700; }
.realisation .type { font-size: .8rem; color: var(--gris-doux); font-weight: 600; }
.realisation p { color: var(--gris-texte); font-size: .95rem; flex: 1; }
.realisation .badge-partenaire {
  display: inline-block; margin-top: 14px;
  background: #eef7ee; color: #2e7d32; border: 1px solid #d3e8d3;
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.realisation .liens { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.realisation .liens a { font-weight: 600; font-size: .9rem; }
.stores { margin-top: 12px; font-size: .82rem; color: var(--gris-doux); font-weight: 600; }

.autres-creations {
  margin-top: 34px; background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius); padding: 26px 28px;
}
.autres-creations h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gris-texte); }
.autres-creations p { color: var(--gris-doux); font-size: .92rem; }

/* ---------- À propos ---------- */
.a-propos { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.a-propos .texte p { color: var(--gris-texte); margin-bottom: 16px; font-size: 1.02rem; }
.a-propos .texte strong { color: var(--encre); }
.reperes {
  background: linear-gradient(160deg, var(--bleu-nuit), var(--bleu-profond));
  color: #fff; border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--ombre-forte);
}
.reperes h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cyan); margin-bottom: 18px; }
.reperes ul { list-style: none; }
.reperes li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .95rem; display: flex; gap: 12px; align-items: baseline;
}
.reperes li:last-child { border-bottom: none; }
.reperes .annee { color: var(--cyan); font-weight: 700; min-width: 86px; font-size: .85rem; }

/* ---------- Contact ---------- */
.contact-boite {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius); box-shadow: var(--ombre);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.contact-info {
  background: linear-gradient(160deg, var(--bleu-profond), var(--bleu-ocean));
  color: #fff; padding: 42px 38px;
}
.contact-info h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.contact-info p { color: #d5e8f7; font-size: .98rem; margin-bottom: 22px; }
.contact-info .email-direct { color: #fff; font-weight: 700; font-size: 1.05rem; }
.contact-form { padding: 42px 38px; }
.contact-form label {
  display: block; font-weight: 600; font-size: .88rem; margin: 16px 0 6px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ligne);
  border-radius: 10px; font-family: var(--font); font-size: .95rem;
  background: var(--fond); color: var(--encre);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--bleu-clair); border-color: transparent;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form button {
  margin-top: 22px; width: 100%; border: none; cursor: pointer;
  background: var(--bleu-ocean); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 15px; border-radius: 999px; font-family: var(--font);
  transition: background .2s;
}
.contact-form button:hover { background: var(--bleu-profond); }
.contact-note { font-size: .8rem; color: var(--gris-doux); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bleu-nuit); color: #9db8d2;
  padding: 40px 0; font-size: .9rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer a { color: #cfe3f5; }
.footer .logo { color: #fff; font-size: 1.1rem; }
.footer .logo span { color: var(--cyan); }
.footer-liens { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Page Rétro ---------- */
.retro-hero {
  background: linear-gradient(160deg, #10041f 0%, #241145 60%, #3b1d6e 100%);
  color: #fff; padding: 70px 0 60px; text-align: center;
}
.retro-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.retro-hero h1 .pixel { color: #ffd166; }
.retro-hero p { color: #cbb8ef; max-width: 620px; margin: 16px auto 0; }
.retro-grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px; margin-top: -30px; position: relative; z-index: 2;
}
.jeu-carte {
  background: #1a1030; border: 1px solid #3d2a63; border-radius: var(--radius);
  padding: 24px; color: #e8defc; box-shadow: 0 12px 34px rgba(20, 5, 45, .45);
}
.jeu-carte h3 {
  font-family: 'Courier New', monospace; letter-spacing: 2px;
  color: #ffd166; font-size: 1.05rem; margin-bottom: 12px; text-transform: uppercase;
}
.jeu-carte canvas {
  width: 100%; background: #0d0620; border-radius: 8px; display: block;
  border: 1px solid #322052; touch-action: none;
}
.jeu-carte .jeu-info { font-size: .82rem; color: #a893d6; margin-top: 10px; }
.jeu-carte .score { font-family: 'Courier New', monospace; color: #7ef9a2; font-size: .9rem; margin-top: 8px; min-height: 1.2em; }
.jeu-btn {
  margin-top: 10px; background: #ffd166; color: #241145; border: none;
  font-weight: 800; padding: 10px 22px; border-radius: 8px; cursor: pointer;
  font-family: var(--font); font-size: .9rem;
}
.jeu-btn:hover { background: #ffdd88; }
.pendu-zone { font-family: 'Courier New', monospace; }
.pendu-mot { font-size: 1.6rem; letter-spacing: 8px; text-align: center; margin: 14px 0; color: #fff; }
.pendu-lettres { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pendu-lettres button {
  width: 34px; height: 34px; border-radius: 6px; border: 1px solid #4b3277;
  background: #241145; color: #e8defc; font-weight: 700; cursor: pointer;
}
.pendu-lettres button:disabled { opacity: .25; cursor: default; }
.pendu-dessin { text-align: center; font-size: .95rem; white-space: pre; line-height: 1.25; color: #ff8fa3; min-height: 8em; }
.naissance-zone input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #4b3277;
  background: #0d0620; color: #fff; font-family: var(--font);
}
.naissance-resultat { margin-top: 14px; font-size: .9rem; color: #cbb8ef; line-height: 1.9; }
.naissance-resultat strong { color: #7ef9a2; font-family: 'Courier New', monospace; }
.section-retro-fond { background: #150b28; padding: 60px 0 80px; }

/* ---------- Page Histoire ---------- */
.histoire-hero {
  background: linear-gradient(160deg, var(--bleu-nuit), var(--bleu-profond) 60%, var(--bleu-ocean));
  color: #fff; padding: 80px 0 70px; text-align: center;
}
.histoire-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.histoire-hero p { color: #cfe3f5; max-width: 640px; margin: 16px auto 0; font-size: 1.08rem; }
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 3px; background: linear-gradient(var(--bleu-clair), var(--bleu-nuit));
  border-radius: 2px;
}
.chapitre { position: relative; margin-bottom: 46px; }
.chapitre::before {
  content: ""; position: absolute; left: -31px; top: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bleu-ocean); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--bleu-clair);
}
.chapitre .epoque {
  font-size: .82rem; font-weight: 800; color: var(--bleu-ocean);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.chapitre h3 { font-size: 1.3rem; font-weight: 800; margin: 6px 0 10px; }
.chapitre p { color: var(--gris-texte); margin-bottom: 10px; }
.chapitre blockquote {
  border-left: 3px solid var(--cyan); padding: 6px 0 6px 16px;
  color: var(--bleu-profond); font-style: italic; margin: 14px 0;
  background: #f0f7fc; border-radius: 0 8px 8px 0;
}
.histoire-cta { text-align: center; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .a-propos { grid-template-columns: 1fr; }
  .contact-boite { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 24px 24px; gap: 16px; border-bottom: 1px solid var(--ligne);
    box-shadow: var(--ombre-forte);
  }
  .nav.ouvert { display: flex; }
  .burger { display: block; }
  .hero { padding: 70px 0 64px; }
  .section { padding: 60px 0; }
}
