/* ============================================================
   FB Créations Numériques — main.css
   Styles de mise en page et de composants
   Dépend de : variables.css (jetons) + reset.css
   ============================================================ */

/* ---------- UTILITAIRES ---------- */
.wrap{max-width:1180px;margin:0 auto;padding:0 32px}
.accent{color:var(--accent)}
.section-tag{font-family:'Orbitron';font-size:11px;letter-spacing:4px;color:var(--accent);display:flex;align-items:center;gap:10px;margin-bottom:18px;text-transform:uppercase}
.section-tag::before{content:'';width:28px;height:2px;background:var(--accent)}
section{padding:90px 0}
.section-title{font-size:30px;font-weight:700;max-width:600px}
.section-alt{background:var(--bg2);border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}

/* ---------- NAV ---------- */
header{position:sticky;top:0;z-index:100;background:rgba(10,13,18,0.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
nav{display:flex;align-items:center;justify-content:space-between;padding:14px 32px;max-width:1180px;margin:0 auto}
.nav-logo-link{display:flex;align-items:center}
.nav-logo{height:56px;width:auto;display:block}
.logo-txt{display:flex;flex-direction:column;line-height:1.05;font-family:'Orbitron'}
.logo-txt b{font-size:14px;font-weight:700;letter-spacing:2px;color:#fff}
.logo-txt i{font-size:10px;font-weight:400;letter-spacing:4px;color:var(--accent);font-style:normal}
.nav-links{display:flex;gap:30px;font-family:'Orbitron';font-size:12px;letter-spacing:1.5px;color:var(--muted)}
.nav-links a{transition:color .2s;position:relative}
.nav-links a:hover,.nav-links a.active{color:var(--accent)}
.nav-cta{font-family:'Orbitron';font-size:11px;letter-spacing:1.5px;border:1px solid var(--accent);color:var(--accent);padding:10px 18px;border-radius:6px;transition:all .2s;cursor:pointer}
.nav-cta:hover{background:var(--accent);color:var(--bg)}
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer}
.burger span{width:24px;height:2px;background:var(--text)}

/* ---------- HERO (mise en page EMPILÉE) ---------- */
.hero{display:flex;flex-direction:column;align-items:center;gap:36px;padding:70px 0 60px;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-100px;right:-200px;width:700px;height:700px;background:radial-gradient(circle,rgba(0,200,255,0.08) 0%,transparent 60%);pointer-events:none}

/* Bloc du haut : pleine largeur, centré */
.hero-top{width:100%;max-width:760px;text-align:center;display:flex;flex-direction:column;align-items:center}
.hero-top .hero-tag{justify-content:center}
.hero-top p{margin-left:auto;margin-right:auto}
.hero-top .hero-btns{justify-content:center}

/* Vidéo fb-cube en BANDE HORIZONTALE, largeur naturelle, bords fondus */
.hero-video-band{
  display:block;
  width:100%;
  max-width:720px;
  height:auto;
  margin:0 auto 34px;
  object-fit:cover;
  mask-image:radial-gradient(ellipse 70% 80% at center, black 45%, transparent 82%);
  -webkit-mask-image:radial-gradient(ellipse 70% 80% at center, black 45%, transparent 82%);
  pointer-events:none;
}

.hero-tag{font-family:'Orbitron';font-size:11px;letter-spacing:4px;color:var(--accent);margin-bottom:22px;display:flex;align-items:center;gap:10px}
.hero-tag::before{content:'';width:28px;height:2px;background:var(--accent)}
/* Suptitre centré ENTRE DEUX TRAITS (un trait court de chaque côté) */
.hero-tag-center::after{content:'';width:28px;height:2px;background:var(--accent)}
.hero h1{font-size:34px;font-weight:700;line-height:1.22;margin-bottom:24px}
.hero p{font-size:15px;color:var(--muted);margin-bottom:36px;max-width:480px}
.hero-btns{display:flex;gap:16px;flex-wrap:wrap}

/* Effet lumière balayant "outils numériques"
   (var(--accent) tenu comme couleur de base : `color:transparent` rend
   currentColor inutilisable dans le dégradé, on cible donc l'accent). */
.hero-title-accent{
  background:linear-gradient(100deg, var(--accent) 35%, #ffffff 48%, #d6f7ff 50%, #ffffff 52%, var(--accent) 65%);
  background-size:250% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:shine 3.5s linear infinite;
}
@keyframes shine{
  0%{background-position:200% 0}
  60%,100%{background-position:-80% 0}
}
@media (prefers-reduced-motion: reduce){
  .hero-title-accent{animation:none;color:var(--accent);-webkit-text-fill-color:var(--accent)}
}

/* ---------- BOUTONS ---------- */
.btn{font-family:'Orbitron';font-size:10.5px;letter-spacing:1.2px;padding:13px 18px;border-radius:8px;cursor:pointer;transition:all .25s;border:none;display:inline-flex;align-items:center;gap:8px}
.btn-primary{background:var(--accent);color:var(--bg);font-weight:700}
.btn-primary:hover{background:#33d6ff;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,200,255,0.3)}
.btn-outline{background:transparent;color:var(--text);border:1px solid rgba(255,255,255,0.22)}
.btn-outline:hover{border-color:var(--accent);color:var(--accent)}
.btn-full{width:100%;justify-content:center}

/* ---------- HERO VISUEL — cube fixe + hexagones texte (bloc bas, centré) ---------- */
.hero-visual{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:740px}
.hex-grid{position:relative;width:600px;height:680px;transform:scale(1.05);transform-origin:center}
.connector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}

/* --- Circuits IA : traces, nœuds et courant --- */
.trace{fill:none;stroke:rgba(0,200,255,0.30);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.trace.dim{stroke:rgba(0,200,255,0.13)}
.trace.mid{stroke:rgba(0,200,255,0.20)}
.flow{fill:none;stroke:#00c8ff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
      stroke-dasharray:5 26;filter:drop-shadow(0 0 3px rgba(0,200,255,.9));animation:flow 2.8s linear infinite}
@keyframes flow{to{stroke-dashoffset:-62}}
.node{fill:#0a0d12;stroke:#00c8ff;stroke-width:1.2}
.node-lit{fill:#00c8ff;animation:nodeGlow 3.4s ease-in-out infinite}
@keyframes nodeGlow{0%,100%{opacity:.3}50%{opacity:1}}
.chip{fill:none;stroke:rgba(0,200,255,0.28);stroke-width:1}
.pad{fill:rgba(0,200,255,0.35)}

/* --- CUBE : immobile, seuls les nids d'abeille pulsent --- */
.cube-stack{position:absolute;top:340px;left:300px;transform:translate(-50%,-50%);width:194px;z-index:4}
.cube-halo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:330px;height:330px;border-radius:50%;
  background:radial-gradient(circle,rgba(0,200,255,0.30) 0%,rgba(0,200,255,0.08) 45%,transparent 70%);
  animation:haloPulse 3.4s ease-in-out infinite;z-index:-1;pointer-events:none}
@keyframes haloPulse{0%,100%{opacity:0.35;transform:translate(-50%,-50%) scale(0.92)}
                     50%   {opacity:0.9; transform:translate(-50%,-50%) scale(1.06)}}
.cube-base{width:100%;display:block;position:relative}
.cube-lum{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--bloc) center/contain no-repeat;animation:honeycomb 3.4s ease-in-out infinite;pointer-events:none}
@keyframes honeycomb{0%,100%{opacity:0.12}50%{opacity:1}}

/* --- HEXAGONES avec texte à l'intérieur --- */
.hexa{position:absolute;width:190px;height:216px;z-index:3;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background:linear-gradient(160deg,rgba(0,200,255,0.55),rgba(0,200,255,0.14));
  padding:1.5px;transition:all .3s;cursor:pointer;text-decoration:none}
.hexa-in{width:100%;height:100%;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:16px 16px 18px;text-align:center;transition:background .3s;
  background:linear-gradient(165deg,#101a26,#0a1017)}
.hexa-ico{color:var(--accent);font-size:15px;line-height:1;margin-bottom:0;transition:color .3s}
.hexa-ico svg{width:17px;height:17px;display:block}
.hexa-num{font-family:'Orbitron';font-size:8px;letter-spacing:2px;color:var(--accent);opacity:.85;transition:color .3s}
.hexa-t{font-family:'Orbitron';font-size:12.5px;font-weight:700;letter-spacing:0.6px;color:#fff;line-height:1.25;text-transform:uppercase;transition:color .3s}
.hexa-d{font-size:10.5px;color:var(--muted);line-height:1.4;max-width:132px;transition:color .3s}

/* Survol : hexagone bleu plein */
.hexa:hover{background:linear-gradient(160deg,#00c8ff,#0090c0);transform:scale(1.06);
  filter:drop-shadow(0 6px 20px rgba(0,200,255,0.45))}
.hexa:hover .hexa-in{background:linear-gradient(165deg,#00c8ff,#00a6d6)}
.hexa:hover .hexa-ico,.hexa:hover .hexa-num,.hexa:hover .hexa-t{color:#04222e}
.hexa:hover .hexa-d{color:rgba(4,34,46,0.85)}

/* variante "à venir" */
.hexa.free{background:linear-gradient(160deg,rgba(255,255,255,0.16),rgba(255,255,255,0.05));cursor:default}
.hexa.free:hover{transform:none;filter:none;background:linear-gradient(160deg,rgba(255,255,255,0.22),rgba(255,255,255,0.06))}
.hexa.free:hover .hexa-in{background:linear-gradient(165deg,#101a26,#0a1017)}
.hexa.free .hexa-ico{color:var(--muted2)}
.hexa.free:hover .hexa-ico{color:var(--muted2)}
.hexa.free .hexa-t{color:rgba(255,255,255,0.45)}
.hexa.free:hover .hexa-t{color:rgba(255,255,255,0.45)}
.hexa.free .hexa-d{color:rgba(255,255,255,0.28)}
.hexa.free:hover .hexa-d{color:rgba(255,255,255,0.28)}
.h-top:hover{transform:translateX(0) scale(1.06)}

.h-top{top:20px;left:205px}
.h-tr {top:128px;left:406px}
.h-br {top:350px;left:406px}
.h-bot{top:458px;left:205px}
.h-bl {top:350px;left:4px}
.h-tl {top:128px;left:4px}

/* ---------- RÉALISATIONS ---------- */
.real-block-title{font-family:'Orbitron';font-size:15px;letter-spacing:2px;color:var(--text);margin:40px 0 22px;display:flex;align-items:center;gap:12px}
.real-block-title .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.real-block-title .dot.wip{background:#ffa030;box-shadow:0 0 10px #ffa030}
.grid-real{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.real-card{background:var(--bg2);border:1px solid var(--border-soft);border-radius:14px;overflow:hidden;transition:all .3s}
.real-card:hover{border-color:var(--border);transform:translateY(-4px)}
.real-img{height:170px;background:linear-gradient(135deg,#0e1b2a,#0a1119);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.real-img img{width:100%;height:100%;object-fit:cover}
.real-img .ph{font-family:'Orbitron';font-size:34px;color:rgba(0,200,255,0.25);font-weight:700}
.real-body{padding:20px 22px}
.real-cat{font-family:'Orbitron';font-size:9px;letter-spacing:2px;color:var(--accent);text-transform:uppercase;margin-bottom:10px;display:inline-block;padding:4px 10px;background:var(--accent-soft);border-radius:20px}
.real-body h4{font-size:16px;font-weight:600;margin-bottom:8px}
.real-body p{font-size:13px;color:var(--muted)}
.real-empty{color:var(--muted2);font-size:13px}
.badge-wip{font-family:'Orbitron';font-size:8px;letter-spacing:1px;color:#ffa030;border:1px solid rgba(255,160,48,0.4);padding:3px 8px;border-radius:20px;margin-left:8px}

/* --- Tags projet --- */
.real-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.real-tag{font-family:'Orbitron';font-size:8.5px;letter-spacing:1px;color:var(--accent);background:var(--accent-soft);border:1px solid var(--border);padding:4px 8px;border-radius:6px;text-transform:uppercase}

/* --- Visuel vidéo dans une carte --- */
.real-img video{width:100%;height:100%;object-fit:cover;display:block}

/* --- Lien "Voir le site →" --- */
.real-link{display:inline-flex;align-items:center;gap:6px;margin-top:16px;
  font-family:'Orbitron';font-size:10px;letter-spacing:1.2px;
  color:var(--accent);border:1px solid var(--border);
  padding:9px 14px;border-radius:8px;transition:all .25s}
.real-link:hover{background:var(--accent);color:var(--bg);border-color:var(--accent);
  box-shadow:0 6px 18px rgba(0,200,255,0.25)}

/* ---------- MÉTHODE ---------- */
.method-wrap{display:flex;justify-content:space-between;gap:16px;margin-top:40px;position:relative;flex-wrap:wrap}
.method-line{position:absolute;top:26px;left:6%;right:6%;height:1px;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:0.3;z-index:0}
.method-step{flex:1;min-width:150px;text-align:center;position:relative;z-index:1}
.method-circle{width:54px;height:54px;border-radius:50%;background:var(--bg3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin:0 auto 16px;color:var(--accent);font-size:20px}
.method-num{font-family:'Orbitron';font-size:13px;color:var(--accent);letter-spacing:2px;margin-bottom:6px}
.method-step h4{font-family:'Orbitron';font-size:13px;font-weight:500;margin-bottom:8px;letter-spacing:1px}
.method-step p{font-size:12px;color:var(--muted);line-height:1.6}

/* ---------- À PROPOS ---------- */
.about{display:grid;grid-template-columns:1fr 1.3fr;gap:50px;align-items:center}
.about-visual{display:flex;align-items:center;justify-content:center}
.about-bloc{width:230px;height:220px;background:var(--bloc) center/contain no-repeat;filter:drop-shadow(0 10px 40px rgba(0,200,255,0.2))}
.about h2{font-size:30px;font-weight:700;margin-bottom:20px;line-height:1.3}
.about p{font-size:15px;color:var(--muted);margin-bottom:16px}
.about .sign{font-family:'Orbitron';font-size:13px;color:var(--accent);letter-spacing:1px;margin-top:8px}

/* ---------- AVIS ---------- */
.grid-avis{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:20px}
.avis-card{background:var(--bg2);border:1px solid var(--border-soft);border-radius:14px;padding:26px}
.avis-stars{color:#ffc830;font-size:15px;margin-bottom:14px;letter-spacing:2px}
.avis-card p{font-size:14px;color:var(--muted);font-style:italic;margin-bottom:18px;line-height:1.7}
.avis-author{display:flex;align-items:center;gap:12px}
.avis-avatar{width:40px;height:40px;border-radius:50%;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;font-family:'Orbitron';color:var(--accent);font-size:14px;font-weight:700}
.avis-name{font-size:13px;font-weight:600}
.avis-role{font-size:11px;color:var(--muted2)}
.avis-note{text-align:center;margin-top:30px;font-size:12px;color:var(--muted2)}
.avis-note a{color:var(--accent)}

/* ---------- CONTACT ---------- */
.contact{background:var(--bg2);border:1px solid var(--border);border-radius:20px;padding:50px;display:grid;grid-template-columns:1fr 1fr;gap:50px}
.contact h2{font-size:28px;font-weight:700;margin-bottom:16px}
.contact-info p{font-size:14px;color:var(--muted);margin-bottom:24px}
.contact-item{display:flex;align-items:center;gap:12px;margin-bottom:16px;font-size:14px}
.contact-item .ico{width:38px;height:38px;border-radius:10px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;color:var(--accent)}
.form-group{margin-bottom:16px}
.form-group label{display:block;font-family:'Orbitron';font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-bottom:8px;text-transform:uppercase}
.form-group input,.form-group textarea{width:100%;background:var(--bg);border:1px solid var(--border-soft);border-radius:8px;padding:12px 14px;color:var(--text);font-family:inherit;font-size:14px;transition:border .2s}
.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--accent)}
.form-group textarea{resize:vertical;min-height:110px}

/* ---------- FOOTER ---------- */
footer{border-top:1px solid var(--border);padding:60px 0 30px;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:40px;margin-bottom:40px}
.footer-logo .flogo{display:flex;align-items:center;margin-bottom:18px}
.footer-logo .flogo img{height:62px;width:auto}
.footer-col p{font-size:13px;color:var(--muted);line-height:1.7}
.footer-col h5{font-family:'Orbitron';font-size:11px;letter-spacing:2px;color:var(--text);margin-bottom:18px;text-transform:uppercase}
.footer-col a{display:block;font-size:13px;color:var(--muted);margin-bottom:12px;transition:color .2s}
.footer-col a:hover{color:var(--accent)}
.footer-cta{margin-bottom:16px}
.footer-inline-cta{display:inline-block}
.footer-social{display:inline-flex;align-items:center;gap:8px;margin-top:16px;color:var(--muted);font-family:'Orbitron';font-size:11px;letter-spacing:1.5px;transition:color .2s}
.footer-social svg{width:20px;height:20px;flex:none}
.footer-social:hover{color:var(--accent)}
/* Lien LinkedIn de la section contact */
.contact-item a{color:var(--text);transition:color .2s}
.contact-item a:hover{color:var(--accent)}
.footer-bottom{border-top:1px solid var(--border-soft);padding-top:24px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted2);flex-wrap:wrap;gap:12px}
.footer-bottom a{color:var(--muted2)}
.footer-bottom a:hover{color:var(--accent)}

/* ---------- PAGES LÉGALES ---------- */
.legal{padding:70px 0 40px}
.legal .wrap{max-width:820px}
.legal .back-link{display:inline-flex;align-items:center;gap:8px;font-family:'Orbitron';font-size:11px;letter-spacing:1.5px;color:var(--muted);margin-bottom:26px;transition:color .2s}
.legal .back-link:hover{color:var(--accent)}
.legal h1{font-size:30px;font-weight:700;line-height:1.25;margin-bottom:10px}
.legal .legal-updated{font-family:'Orbitron';font-size:10px;letter-spacing:2px;color:var(--muted2);text-transform:uppercase;margin-bottom:36px}
.legal h2{font-size:19px;font-weight:600;color:var(--text);margin:34px 0 14px;letter-spacing:0.3px;padding-left:14px;border-left:2px solid var(--accent)}
.legal h3{font-size:15px;font-weight:600;margin:22px 0 10px;color:var(--text)}
.legal p{font-size:14.5px;color:var(--muted);line-height:1.8;margin-bottom:14px}
.legal ul{list-style:none;margin:0 0 16px;padding:0}
.legal li{position:relative;font-size:14.5px;color:var(--muted);line-height:1.7;padding-left:20px;margin-bottom:9px}
.legal li::before{content:'';position:absolute;left:2px;top:11px;width:6px;height:6px;border-radius:50%;background:var(--accent);opacity:.7}
.legal a{color:var(--accent)}
.legal strong{color:var(--text);font-weight:600}
.legal em{color:var(--muted2);font-style:italic}
.legal hr{border:none;border-top:1px solid var(--border-soft);margin:40px 0}

/* ---------- MENU MOBILE OUVERT ---------- */
.nav-links.open{
  display:flex;position:absolute;flex-direction:column;top:64px;right:20px;
  background:var(--bg3);padding:20px;border-radius:12px;border:1px solid var(--border);gap:18px;
}

/* ---------- RESPONSIVE ----------
   Le bloc hexagones a une largeur fixe (600px) : on le met à l'échelle
   et on absorbe l'espace vide résiduel par des marges négatives, calculées
   pour qu'il ne déborde jamais horizontalement sur petit écran. */
@media(max-width:1080px){
  .hex-grid{transform:scale(0.92);margin:-27px -24px}
  .hero-visual{min-height:640px}
}
@media(max-width:940px){
  .hero-visual{min-height:560px}
  .hex-grid{transform:scale(0.82);margin:-61px -54px}
  .grid-real,.grid-avis{grid-template-columns:repeat(2,1fr)}
  .about{grid-template-columns:1fr}
  .about-visual{order:-1}
  .contact{grid-template-columns:1fr;padding:34px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .nav-links{display:none}
  .nav-cta{display:none}
  .burger{display:flex}
  nav{padding:12px 20px}
}
@media(max-width:768px){
  .hero-visual{min-height:470px}
  .hex-grid{transform:scale(0.66);margin:-116px -102px}
}
@media(max-width:620px){
  .wrap{padding:0 20px}
  .hero{padding:44px 0 40px}
  .hero h1{font-size:27px}
  .hero p{font-size:14px}
  .hero-visual{min-height:420px}
  .hex-grid{transform:scale(0.58);margin:-143px -126px}
  .grid-real,.grid-avis,.footer-grid{grid-template-columns:1fr}
  section{padding:56px 0}
  h2{font-size:24px !important}
  .method-wrap{flex-direction:column;gap:28px}
  .method-line{display:none}
  .nav-logo{height:50px}
}
@media(max-width:400px){
  .hero h1{font-size:24px}
  .hero-visual{min-height:360px}
  .hex-grid{transform:scale(0.46);margin:-184px -162px}
  .hero-btns{flex-direction:column;align-items:center}
  .btn{width:100%;max-width:280px;justify-content:center}
}

/* ---------- ACCESSIBILITÉ : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce){
  .flow,.node-lit,.cube-halo,.cube-lum{animation:none}
  .hero-video-band{display:none}
  html{scroll-behavior:auto}
}
