/* ====== ATM45.FR — style.css ======
   Pur HTML/CSS — Mega menu horizontal, design élégant, responsive léger
==================================================== */

:root{
  --bg:#0f1115;            /* fond sombre élégant */
  --card:#171a21;          /* panneaux */
  --text:#e9eef7;          /* texte principal */
  --muted:#a7b1c2;         /* texte secondaire */
  --accent:#c1ff72;        /* vert tendre contemporain */
  --accent-2:#7bc9ff;      /* bleu doux pour hover subtil */
  --border:#232837;        /* bordures */
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.25);
  --max:1100px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
  background: radial-gradient(1200px 800px at 10% 0%, #141824 0%, var(--bg) 60%);
  color:var(--text);
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:auto;padding:0 20px}

/* ===== Header + Mega Menu ===== */
header{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(180deg, rgba(20,24,36,.9), rgba(20,24,36,.65));
  backdrop-filter: blur(6px);
  border-bottom:1px solid var(--border);
}
header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px} 

.logo{font-weight:700;letter-spacing:.2px}
.logo a{display:inline-flex;align-items:center;gap:10px;padding:18px 0}
.logo .dot{width:10px;height:10px;border-radius:50%;background:var(--accent)}
.logo span{font-size:18px}

nav{flex:1}
.mega-menu{list-style:none;display:flex;gap:6px;align-items:center;margin:0;padding:0}
.mega-menu>li{position:relative}
.mega-menu>li>a{
  display:inline-block;padding:14px 14px;border-radius:12px;
  transition:transform .15s ease, background-color .15s ease, color .15s ease;
  color:var(--muted)
}
.mega-menu>li>a:hover{background:rgba(255,255,255,.05);color:var(--text);transform:translateY(-1px)}
.mega-menu>li>a:focus{outline:2px solid var(--accent);outline-offset:2px}

/* Mega dropdown */
.dropdown{
  position:absolute;left:0;top:100%;min-width:280px;
  display:grid;grid-template-columns:1fr;gap:4px;
  background:var(--card);border:1px solid var(--border);
  border-radius:14px;box-shadow:var(--shadow);
  padding:10px;margin-top:10px;opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.mega-menu>li:hover .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{
  padding:10px 12px;border-radius:10px;color:var(--text);
  display:flex;justify-content:space-between;align-items:center;
}
.dropdown a:hover{background:rgba(255,255,255,.05);color:#fff}

/* Multi-colonnes pour gros menus */
.mega-menu>li:nth-child(3) .dropdown,
.mega-menu>li:nth-child(4) .dropdown{
  grid-template-columns:repeat(2, minmax(160px,1fr));
  min-width:420px;
}

<!-- Dans le header -->
<input type="checkbox" id="menu-toggle">
<label for="menu-toggle" class="menu-icon">&#9776;</label>
<nav>
  <ul class="mega-menu">
    ...
  </ul>
</nav>


/* ===== Hero ===== */
.hero{
  max-width:var(--max);margin:50px auto 0;padding:60px 20px;
  background:linear-gradient(135deg, rgba(123,201,255,.08), rgba(193,255,114,.06));
  border:1px solid var(--border);border-radius:var(--radius);
}
.hero h1{font-size:clamp(28px, 3.4vw, 44px);line-height:1.15;margin:0 0 16px}
.hero p{color:var(--muted);font-size:18px;margin:0}

/* ===== Sections ===== */
section{max-width:var(--max);margin:32px auto;padding:0 20px}
section.intro{display:grid;gap:14px}
section .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{
  background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease
}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#2a3145}
.card h3{margin:0 0 8px}
.card p{color:var(--muted);margin:0}

/* CTA */
.cta{display:flex;justify-content:center;margin:34px auto 60px}
.btn{
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  color:#0a0e16;font-weight:700;border-radius:14px;padding:14px 22px;
  border:none;display:inline-flex;align-items:center;gap:10px;box-shadow:var(--shadow);
  transition:transform .15s ease, filter .15s ease
}
.btn:hover{transform:translateY(-1px);filter:saturate(1.05)}

/* ===== Footer ===== */
footer{
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, rgba(15,17,21,.6), rgba(15,17,21,.9));
  margin-top:60px
}
footer .container{display:flex;flex-direction:column;gap:12px;padding:24px 20px}
.footer-links{display:flex;flex-wrap:wrap;gap:10px;color:var(--muted)}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}
footer p{color:var(--muted);margin:4px 0 0}

/* ===== Utility ===== */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.lead{color:var(--muted);font-size:18px}
.muted{color:var(--muted)}

/* ===== Responsive ===== */
img, video {max-width:100%; height:auto; display:block;}

@media (max-width: 980px){
  .mega-menu{gap:2px}
  .mega-menu>li>a{padding:12px 10px}
  .mega-menu>li:nth-child(3) .dropdown,
  .mega-menu>li:nth-child(4) .dropdown{min-width:320px;grid-template-columns:1fr}
}
@media (max-width: 760px){
  header .wrap{flex-wrap:wrap}
  .mega-menu{flex-wrap:wrap;row-gap:6px}
  .dropdown{position:static;transform:none;opacity:1;visibility:visible;margin:6px 0 0}
  .mega-menu>li:hover .dropdown{opacity:1}
  section .cards{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
}

/* ===== Page-level patterns (optionnels) ===== */
.page-title{max-width:var(--max);margin:28px auto 8px;padding:0 20px}
.page-title h1{margin:0;font-size:clamp(24px,3vw,36px)}
.breadcrumbs{max-width:var(--max);margin:0 auto 16px;padding:0 20px;color:var(--muted);font-size:14px}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--text)}

/* ===== Tables & legal ===== */
table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
th,td{padding:12px 14px;border-bottom:1px solid var(--border)}
th{text-align:left;color:#fff;background:rgba(255,255,255,.03)}

/* ===== Small decorative accents ===== */
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:rgba(193,255,114,.15);border:1px solid rgba(193,255,114,.35);color:var(--accent);font-weight:600;font-size:12px}
.hr{height:1px;background:linear-gradient(90deg, transparent, #2a3145, transparent);border:0;margin:24px 0}


/* ——— MENU HAMBURGER ——— */
/* 1) cacher la checkbox */
#menu-toggle { display: none; }

/* 2) icône hamburger cachée en desktop */
.menu-icon { display: none; font-size: 2rem; line-height: 1; cursor: pointer; }

/* 3) mobile ≤ 900px : afficher hamburger et replier le menu  */
@media (max-width: 900px){
  .menu-icon { display: block; }
  .mega-menu { display: none; flex-direction: column; gap: 0; }
  /* affiche le menu quand la case est cochée */
  #menu-toggle:checked + .menu-icon + nav .mega-menu { display: flex; }

  .mega-menu > li { width: 100%; }
  .mega-menu .dropdown { position: static; display: block; box-shadow: none; padding: 6px 0; }
}

/* ——— IMAGES FLUIDES (responsive) ——— */
img, video { max-width: 100%; height: auto; display: block; }

/* Images fluides par défaut */
img, video { max-width: 100%; height: auto; display: block; }

/* HERO avec image de fond + overlay sombre pour lisibilité du texte */
.hero.with-bg {
  --hero-height: clamp(52vh, 68vh, 88vh);
  position: relative;
  min-height: var(--hero-height);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.25)),
    var(--hero);
  background-size: cover;
  background-position: center;
}
.hero .hero-inner { padding: 4rem 1.25rem; }
.hero h1 { margin: 0 0 .5rem; }
.hero .lead { max-width: 850px; margin: 0 auto; }

/* Split (image + texte côte à côte) */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split .split-media img { border-radius: 8px; }
@media (max-width: 900px){
  .split { grid-template-columns: 1fr; }
}

/* Cartes avec images : recadrage propre */
.cards.cards-img .thumb {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: .75rem;
}
.cards.cards-img .thumb img {
  width: 100%;
  height: 250px;          /* desktop */
  object-fit: cover;
  object-position: center;
}
@media (max-width: 900px){
  .cards.cards-img .thumb img { height: 300px; } /* effet plus "vertical" sur mobile */
}

/* Vignettes processus */
.process .thumb {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: .75rem;
}
.process .thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
}
/* ===== Hover Preview (voir l'image en entier au survol) ===== */
@media (hover: hover) {
  .cards.cards-img .thumb { position: relative; overflow: hidden; border-radius: 8px; }

  /* on assombrit juste un poil la vignette pour indiquer l'état hover */
  .cards.cards-img .thumb img { transition: filter .2s ease; }
  .cards.cards-img .thumb:hover img { filter: brightness(0.9); }

  /* panneau de preview en plein écran (mais sans bloquer la souris) */
  .hover-preview {
    display: none;
    position: fixed;
    z-index: 9999;
    /* ancré coin droit, tu peux centrer si tu préfères (voir variante plus bas) */
    top: 4vh; right: 4vw;
    max-width: 88vw; max-height: 88vh;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    border-radius: 10px;
    pointer-events: none;          /* ne casse pas le :hover de la vignette */
  }
  .hover-preview img {
    display: block;
    max-width: 88vw; max-height: 88vh;
    width: auto; height: auto;
    border-radius: 10px;
  }
  .cards.cards-img .thumb:hover .hover-preview { display: block; }

  /* optionnel : léger voile du fond quand une preview est affichée */
  .cards.cards-img .thumb:hover::after{
    content:"";
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 9998;
    pointer-events: none;
  }
}

/* Sur mobile il n’y a pas de hover : on désactive proprement */
@media (hover: none) {
  .hover-preview { display: none !important; }
}

/* Supprime tout overlay texte au hover (si présent) */
.cards.cards-img .thumb::after,
.cards.cards-img .thumb:hover::after { content: none !important; }

/* Hover preview : montre l'image en taille native, sans gêner le clic */
.hover-preview { display:none; position:fixed; z-index:9999; top:4vh; right:4vw; pointer-events:none; }
.hover-preview img { display:block; width:auto; height:auto; max-width:100vw; max-height:100vh; }
.cards.cards-img .thumb:hover .hover-preview { display:block; }
