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

:root{
  --accent-primary:#0066ff;
  --accent-yellow:#c9a300;
  --accent-red:#d50000;
  --accent-outline:#555555;
  --grey-souris:#9e9e9e;
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.5;
  transition: background-color .25s ease, color .25s ease;
}

body.light{ background:#fff; color:#111; }
body.dark{ background:#000; color:#f5f5f5; }

.container{
  width:100%;
  max-width:1200px;
  padding:0 16px;
  margin:0 auto;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid rgba(128,128,128,.2);
  backdrop-filter: blur(8px);
}
body.light .site-header{ background:rgba(255,255,255,.96); }
body.dark  .site-header{ background:rgba(0,0,0,.96); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  position:relative;
}

.logo{ display:flex; flex-direction:column; gap:2px; }
.logo-main{ font-weight:800; font-size:1.15rem; }
.logo-tagline{ font-size:.82rem; opacity:.85; }

.header-actions{ display:flex; align-items:center; gap:10px; }

/* Theme toggle */
.theme-toggle{
  border:1px solid rgba(128,128,128,.45);
  background:transparent;
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-size:.9rem;
}

/* NAV desktop */
.main-nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  text-decoration:none;
  font-size:.95rem;
  border:1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
body.light .nav-link{ color:#111; }
body.dark  .nav-link{ color:#f5f5f5; }

.nav-icon{ font-size:1.05rem; }

.nav-link:hover{
  background:var(--accent-yellow);
  color:#000;
  border-color:rgba(0,0,0,.12);
}
.nav-link:active{
  background:var(--accent-red);
  color:#fff;
  border-color:rgba(0,0,0,.18);
}

.nav-bottom{ margin-left:8px; }
.nav-email{
  display:block;
  font-size:.85rem;
  text-decoration:none;
  opacity:.88;
}
body.light .nav-email{ color:#111; }
body.dark  .nav-email{ color:#f5f5f5; }
.nav-email:hover{ text-decoration:underline; }

/* Hamburger */
.nav-toggle{
  display:none;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(128,128,128,.55);
  background:transparent;
  cursor:pointer;
  padding:8px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.nav-line{
  display:block;
  width:100%;
  height:2px;
  border-radius:999px;
  transition: transform .15s ease, opacity .15s ease;
}
body.light .nav-line{ background:#111; }
body.dark  .nav-line{ background:#f5f5f5; }
.nav-toggle.is-open .nav-line:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-line:nth-child(2){ opacity:0; }
.nav-toggle.is-open .nav-line:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Sections */
section{ padding:32px 0; }
section h2{ font-size:1.6rem; margin-bottom:18px; }

/* HERO */
.hero{ padding:46px 0 32px; }
body.light .hero{
  background: radial-gradient(circle at top left, #f5f7ff 0, #ffffff 45%, #fdfdfd 100%);
}
body.dark .hero{
  background: radial-gradient(circle at top left, #1a1a1a 0, #000000 45%, #050505 100%);
}
.hero-inner{ display:flex; flex-direction:column; gap:18px; }
.hero-text h1{ font-size:clamp(1.8rem, 3vw, 2.6rem); margin-bottom:10px; }
.hero-text p{ opacity:.95; }

.hero-visual{ display:flex; flex-direction:column; gap:14px; }

/* Slider */
.hero-slider{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(128,128,128,.4);
}
.hero-slide{ display:none; margin:0; }
.hero-slide.is-active{ display:block; }

.hero-slide img,
.hero-video-player{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}

.hero-slide figcaption{
  font-size:.85rem;
  padding:8px 10px 10px;
}
body.light .hero-slide figcaption{ background:#fff; color:#111; }
body.dark  .hero-slide figcaption{ background:#111; color:#f5f5f5; }

.hero-slider-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:8px 10px 12px;
}
.hero-slider-prev,
.hero-slider-next{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(128,128,128,.6);
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
}

.hero-slider-dots{ display:inline-flex; align-items:center; gap:6px; }
.hero-slider-dot{
  width:9px; height:9px;
  border-radius:50%;
  border:1px solid rgba(128,128,128,.8);
  background:transparent;
  cursor:pointer;
}
.hero-slider-dot.is-active{
  border-color:var(--accent-primary);
  background:var(--accent-primary);
}

/* CTA hero */
.btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  font-size:.95rem;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
}
.btn-primary{ background:var(--accent-primary); color:#fff; }
.btn-outline{ background:transparent; color:inherit; border-color:var(--accent-outline); }

.btn-secondary-cta{
  border-radius:999px;
  border:2px solid #000;
  background:var(--accent-yellow);
  color:#000;
  padding:10px 18px;
  text-align:center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-secondary-cta:hover{ background:#e0bb00; color:#000; border-color:#000; }
.btn-secondary-cta:active{ background:var(--accent-red); color:#fff; border-color:var(--accent-red); }

.hero-cta-under{ display:flex; flex-direction:column; gap:12px; }
.hero-cta-main{ display:flex; flex-wrap:wrap; gap:10px; }

/* Bandeau service dédié full width */
.hero-alert{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  padding:24px 0;
  background:var(--accent-red);
  color:#fff;
  text-transform:uppercase;
  text-align:center;
  font-weight:900;
  font-size:2.05rem;
  border-radius:0;
}
.hero-alert-blink{ animation: heroBlink 1.4s infinite alternate; }
@keyframes heroBlink{
  0%{ opacity:1; transform:scale(1); }
  100%{ opacity:.55; transform:scale(1.01); }
}

/* SHIPPING block (jaune dégradé, texte blanc) */
.shipping-block{
  background: linear-gradient(135deg, #ffd600 0%, #c9a300 55%, #ffd600 100%);
  color:#fff;
}
.shipping-block p{ margin-bottom:10px; }

/* FEATURES */
.features .feature-card{ margin-bottom:16px; }
.feature-card{
  padding:18px;
  border-radius:14px;
  border:1px solid rgba(128,128,128,.4);
  font-size:.95rem;
}
.feature-card h3{ margin-bottom:8px; }
.feature-card ul{ margin-top:8px; padding-left:18px; }
.feature-card li{ margin-bottom:6px; }

.feature-yellow{ background:#ffd600; color:#000; }
.feature-red{ background:var(--accent-red); color:#fff; }
.feature-bluegrad{
  background: linear-gradient(135deg, #ffffff 0%, #eaf2ff 55%, #ffffff 100%);
  color:#000;
}
.feature-greengrad{
  background: linear-gradient(135deg, #ffffff 0%, #dff7df 55%, #ffffff 100%);
  color:#000;
}

/* PACKS */
.pricing-preview{ border-top:1px solid rgba(128,128,128,.2); }
#capacity-info{ margin-bottom:12px; font-size:.95rem; }
#capacity-remaining.capacity-low{ color:var(--accent-red); font-weight:800; }

.pricing-grid{ display:flex; flex-direction:column; gap:16px; }

.pricing-card{
  padding:18px;
  border-radius:14px;
  border:1px solid rgba(128,128,128,.5);
  display:flex;
  flex-direction:column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pricing-card:hover{
  border-color:var(--accent-red);
  box-shadow:0 4px 18px rgba(213,0,0,.35);
  transform: translateY(-3px);
}

.pricing-subtitle{ font-size:.9rem; margin-bottom:8px; opacity:.92; }
.pricing-list{ list-style:disc; padding-left:18px; font-size:.9rem; margin-bottom:8px; }
.pricing-list li{ margin-bottom:4px; }
.pricing-note{ font-size:.85rem; margin-bottom:8px; }
.pricing-note-small{ font-size:.8rem; margin-bottom:8px; opacity:.9; }
.price{ margin:8px 0; font-weight:800; }
.price-highlight{ font-size:1.05rem; }

.pricing-basic{ background:var(--grey-souris); color:#000; }
.pricing-confort{
  background:var(--accent-primary);
  color:#fff;
  position:relative;
  border-width:2px;
  border-color:var(--accent-primary);
  box-shadow:0 4px 18px rgba(0,102,255,.25);
}
.pricing-premium{ background:var(--accent-yellow); color:#000; }

.pricing-ribbon{
  position:absolute;
  top:-10px;
  right:12px;
  background:#000;
  color:#fff;
  font-size:.75rem;
  padding:3px 8px;
  border-radius:999px;
}

/* Buttons packs */
.pricing-card .btn-pack{
  margin-top:auto;
  align-self:center;
  border:2px solid #000;
  background:transparent;
  color:inherit;
  padding-inline:22px;
}
#bloc-d-basic .btn-pack:hover{ background:var(--grey-souris); color:#000; }
#bloc-d-confort .btn-pack:hover{ background:var(--accent-primary); color:#fff; }
#bloc-d-premium .btn-pack:hover{ background:var(--accent-yellow); color:#000; }

#bloc-d-basic .btn-pack:active,
#bloc-d-confort .btn-pack:active,
#bloc-d-premium .btn-pack:active{
  background:var(--accent-red);
  color:#fff;
  border-color:var(--accent-red);
}

/* Desktop packs */
@media (min-width: 900px){
  .pricing-grid.pricing-table{ flex-direction:row; }
  .pricing-card{ flex:1; }
  .pricing-confort{ flex:1.2; transform:translateY(-4px); }
}

/* ===== FORMULAIRE : TITRE/INTRO CENTRÉS, CHAMPS PROPRES ===== */

/* FORM */
.form-section .section-intro{ font-size:.95rem; margin-bottom:12px; }
.contact-form{ max-width:720px; margin:0 auto; width:100%; }

.form-row{ display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.form-row label{ font-size:.9rem; }
.form-row input,
.form-row select,
.form-row textarea{
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(128,128,128,.5);
  font:inherit;
  background:transparent;
  color:inherit;
}
textarea{ resize:vertical; min-height:80px; }

.form-collapsible{
  overflow:hidden;
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}
.form-collapsible.is-collapsed{ max-height:0; opacity:0; transform:translateY(-4px); }
/* évite les coupures si tu ajoutes des champs */
.form-collapsible.is-open{ max-height:5000px; opacity:1; transform:translateY(0); }

.honeypot-wrapper{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
}

/* ===== CENTRAGE DU FORMULAIRE (bloc E) ===== */
#bloc-e > .container{
  display:flex;
  flex-direction:column;
  align-items:center;
}

#bloc-e #form-wrapper{
  width:100%;
  max-width: 760px;
}

#bloc-e form#demande-form.contact-form{
  width:100%;
  margin: 0 auto;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(128,128,128,.35);
}

/* Option : titres centrés */
#bloc-e h2,
#bloc-e .section-intro,
#bloc-e form#demande-form h3{
  text-align:center;
}

/* Mobile : respirer */
@media (max-width: 520px){
  #bloc-e #form-wrapper{ padding: 0 14px; }
  #bloc-e form#demande-form.contact-form{ padding: 16px; }
}

}


/* champs */
.form-row{ display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.form-row label{ font-size:.9rem; }
.form-row input,
.form-row select,
.form-row textarea{
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(128,128,128,.5);
  font:inherit;
  background:transparent;
  color:inherit;
}
textarea{ resize:vertical; min-height:80px; }

/* Formulaire déroulant */
.form-collapsible{
  overflow:hidden;
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}
.form-collapsible.is-collapsed{ max-height:0; opacity:0; transform:translateY(-4px); }
.form-collapsible.is-open{ max-height:2600px; opacity:1; transform:translateY(0); }

/* Honeypot (cache proprement, n'impacte pas la mise en page) */
.honeypot-wrapper{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
}

/* OLD machines */
.old-machines{
  background: linear-gradient(135deg, #ffffff 0%, #ffe6e6 55%, #d50000 100%);
  color:#000;
}
.old-machines p{ margin-bottom:10px; }
.old-machines ul{ padding-left:18px; margin:10px 0; }
.old-machines li{ margin-bottom:6px; }

/* Transparency */
.transparency-block{
  background: var(--accent-red);
  color:#fff;
}
.transparency-block p{ margin-bottom:10px; }

/* FAQ full width black */
.faq-section{
  background:#000;
  color:#d7d7d7;
  padding:44px 0;
}
.faq-inner{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}
.faq-title{
  color:#fff;
  font-size:1.9rem;
  margin-bottom:16px;
}
.faq-item{ margin-bottom:10px; }

.faq-q{
  width:100%;
  text-align:left;
  border:none;
  background:transparent;
  color:#d7d7d7;
  font-size:1.12rem;
  font-weight:800;
  padding:14px 14px;
  cursor:pointer;
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}
.faq-icon{ font-size:1.1rem; opacity:.95; }

.faq-rightbar{
  position:absolute;
  right:0;
  top:10px;
  bottom:10px;
  width:10px;
  background:#111;
  border-radius:999px;
}

.faq-q:hover{ color:#fff; }
.faq-a{
  padding:0 14px 14px 14px;
  font-size:1rem;
  color:#bfbfbf;
  line-height:1.35;
}

/* Footer (gris souris, texte noir) */
.site-footer{
  background: var(--grey-souris);
  color:#000;
  padding:18px 0;
  font-size:.9rem;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.footer-nav{ display:flex; gap:14px; }
.footer-nav a{ color:#000; text-decoration:none; font-weight:700; }
.footer-nav a:hover{ text-decoration:underline; }

/* =========================================================
   COOKIE BANNER — propre + ne bloque pas les clics
   ========================================================= */

.cookie-banner{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(0,0,0,.92);
  color: #fff;
  padding: 10px 16px;
  font-size: .85rem;

  /* IMPORTANT: ne bloque pas les clics ailleurs */
  pointer-events: none;
}

.cookie-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;

  /* réactive les clics sur le contenu */
  pointer-events: auto;
}

.cookie-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner button,
.cookie-banner a{
  pointer-events: auto;
}

/* Cache propre (compatible JS + attribut hidden) */
.cookie-banner[hidden]{
  display: none !important;
}


/* =========================================================
   CHATBOT — VERSION FINALE OPAQUE (LIGHT / DARK)
   ========================================================= */

/* Widget (bouton + fenêtre) */
.chatbot-widget{
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 40;
}

/* Bouton flottant */
.chatbot-button{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* Couleur bouton */
body.light .chatbot-button{
  background: var(--accent-primary);
  color: #fff;
}
body.dark .chatbot-button{
  background: #222;
  color: #fff;
}

/* Fenêtre chatbot (OPAQUE) */
.chatbot-window{
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 320px;
  max-height: 520px;
  display: none;
  flex-direction: column;

  border-radius: 16px;
  border: 1px solid rgba(128,128,128,.6);
  overflow: hidden;
}

/* Light / Dark */
body.light .chatbot-window{
  background: #ffffff;
  color: #111;
}

body.dark .chatbot-window{
  background: #111111;
  color: #f5f5f5;
}

/* Header */
.chatbot-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(128,128,128,.5);
}

.chatbot-close{
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
}

/* Corps */
.chatbot-body{
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
}

/* Input */
.chatbot-input-row{
  display: flex;
  gap: 6px;
}

.chatbot-input-row input{
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(128,128,128,.6);
  color: inherit;
}

body.light .chatbot-input-row input{
  background: #ffffff;
}

body.dark .chatbot-input-row input{
  background: #0b0b0b;
}

/* Bouton envoyer */
.chatbot-input-row button{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(128,128,128,.6);
  cursor: pointer;
  font-size: .85rem;
  background: transparent;
  color: inherit;
}

/* Messages */
.chatbot-messages{
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.chatbot-message{
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  font-size: .85rem;
}

.chatbot-message.user{
  align-self: flex-end;
  background: rgba(0,102,255,.18);
}

.chatbot-message.bot{
  align-self: flex-start;
  background: rgba(128,128,128,.18);
}

/* Partie mini */
.chatbot-mini-top{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbot-mini-hint{
  margin: 0;
  font-size: .88rem;
  opacity: .85;
}

.chatbot-mini-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chatbot-mini-actions .btn{
  flex: 1 1 140px;
  text-align: center;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px){
  .chatbot-window{
    width: 300px;
  }
}
/* =========================================================
 SOCIAL 
   ========================================================= */

.footer-socials-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:26px;

  margin:18px 0 6px;
}

/* lien icône */
.footer-socials-logos .social-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:6px;
  border-radius:50%;

  background:transparent;
  border:none;

  transition: transform .2s ease, opacity .2s ease;
}

/* taille icône */
.footer-socials-logos .social-logo svg{
  width:28px;
  height:28px;
  display:block;
}

/* forcer blanc */
.footer-socials-logos .social-logo svg path{
  fill:#fff !important;
}

/* hover premium discret */
.footer-socials-logos .social-logo:hover{
  transform: translateY(-2px);
  opacity:.75;
}

/* focus clavier */
.footer-socials-logos .social-logo:focus-visible{
  outline:none;
  opacity:.75;
}

/* mobile : encore un peu plus compact */
@media (max-width: 600px){
  .footer-socials-logos{
    gap:20px;
  }
  .footer-socials-logos .social-logo svg{
    width:24px;
    height:24px;
  }
}
/* ===== OVERRIDE FINAL CHATBOT (DOIT ÊTRE TOUT EN BAS) ===== */
.chatbot-window{
  background:#111 !important;              /* opaque */
  color:#f5f5f5 !important;
  border:1px solid rgba(255,255,255,.16) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

.chatbot-input-row input{
  background:#fff !important;             /* champ blanc visible */
  color:#111 !important;
  border:1px solid rgba(255,255,255,.18) !important;
}

.chatbot-input-row button{
  background:#1a1a1a !important;          /* bouton “Envoyer” visible */
  color:#fff !important;
  border:1px solid rgba(255,255,255,.18) !important;
}

/* =========================================================
   NAV MOBILE (hamburger)
   ========================================================= */
@media (max-width: 768px){
  .nav-toggle{ display:flex; }

  .main-nav{
    position:absolute;
    top:58px;
    left:0; right:0;

    display:none;
    flex-direction:column;
    align-items:center;

    padding:12px 16px 14px;
    border-bottom:1px solid rgba(128,128,128,.3);
    box-shadow:0 10px 28px rgba(0,0,0,.25);
    z-index:200;
  }

  body.light .main-nav{ background:#fff; }
  body.dark  .main-nav{ background:#000; }

  .main-nav.is-open{ display:flex; }

  .nav-link{
    width:100%;
    max-width:280px;
    border-radius:10px;
    border:1px solid rgba(128,128,128,.28);
  }

  .nav-bottom{
    width:100%;
    max-width:280px;
    border-top:1px solid rgba(128,128,128,.28);
    margin-top:8px;
    padding-top:8px;
    text-align:center;
  }
}




