/* =========================================================
   VARIABLES & RESET
   ========================================================= */
:root{
  --bg:#f0f0f0;
  --surface:#fff;
  --accent:#E04306; /* Orange ROOOX */
  --muted:#777;
  --dark:#141414;
  --footer-bg:#0e0e0e;
  --pill-bg:#111;
  --radius:10px;
  --max-width:1100px;
  --gap:16px;
  --scrollbar-width: 0px;
  --font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--font);
  background:var(--bg);
  color:#111;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

.body-no-scroll {
  overflow: hidden;
  padding-right: var(--scrollbar-width);
}

.container{
  max-width:var(--max-width);
  margin:24px auto;
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
}

/* =========================================================
   HEADER
   ========================================================= */
.header{
  background:var(--dark);
  padding:14px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-weight:700;
}

.logo-img{
  height:40px;
  width:auto;
  display:block;
  border-radius:6px;
}

.nav{
  display:flex;
  gap:12px;
  align-items:center;
}

/* Style commun pixel-perfect */
.nav a,
.dropbtn{
  display:inline-flex;
  align-items:center;
  justify-content:left;
  height:48px;
  padding:0 14px;
  font-size:16px;
  font-weight:400;
  color:#ffffff;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  background:none;
  border:none;
}

/* Hover / focus */
.nav a:hover,
.dropbtn:hover,
.dropbtn:focus{
  color:var(--accent);
}

/* CTA */
.cta{
  background:var(--accent);
  color:#fff;
  padding:8px 14px;
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
}

/* CTA dans le header */
.header .cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.header .cta:hover {
  background: #c63a05;
  color: #ffffffa7;
  transform: translateY(-2px);
}

/* =========================================================
   DROPDOWN MENU
   ========================================================= */
.dropdown{
  position:relative;
  display:inline-block;
}

.dropdown-content{
  display:none;
  position:absolute;
  background-color:#f5f3f3;
  min-width:220px;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
  border-radius:6px;
  z-index:10;
  padding:8px 0;
}

.dropdown-content a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  text-decoration:none;
  color:#222;
  font-size:15px;
}

.dropdown-content a:hover{
  background-color:#f3f3f3;
  color:var(--accent);
}

.dropdown:hover .dropdown-content{
  display:block;
}

.menu-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  flex-shrink:0;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background:linear-gradient(180deg,#1a1a1a 0%,#0e0e0e 100%);
  color:#fff;
  padding:40px 28px;
  display:grid;
  grid-template-columns:6fr 4fr;
  gap:40px;
  align-items:center;
}

.hero .eyebrow{color:var(--accent);}
.hero h1{color:#fff;}
.hero p{color:#ddd;}

.hero-title{
  display:flex;
  align-items:center;
  gap:16px;
}

.hero-title h1{
  font-size:24px;
  font-weight:800;
  line-height:1.1;
  margin:0 0 8px 0;
  flex:1;
}

.hero-logo {
  width: 56px;        /* taille maîtrisée */
  height: auto;
  flex-shrink: 0;     /* empêche l’écrasement */
  display: block;
}

.hero-sub{font-size:16px;}

.hero aside{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:12px;
}


/* =========================================================
   MODULES MARKETING
   ========================================================= */

.modules-marketing {
  margin-top: 40px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes fixes */
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

/* Carte module marketing (spécifique, ne doit PAS hériter de .card) */
.module-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover premium */
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Icône du module */
.module-icon {
  width: 52px;
  height: auto;
  margin-bottom: 4px;
  flex-shrink: 0;
}

/* Titre */
.module-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #111;
}

/* Description */
.module-card p.small {
  color: #555;
  margin-bottom: 6px;
}

/* Liste des fonctionnalités */
.module-card ul {
  padding-left: 18px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Ligne logo + titre dans les cards marketing */
.module-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* Titre orange */
.module-card-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent); /* orange ROOOX */
}


/* CTA harmonisé */
.module-cta {
  margin-top: auto;
  align-self: center;
  width: 200px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.25s ease;
}

.module-cta:hover {
  background: #c63a05;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section{
  padding:20px 28px;
  border-top:0.5px solid #ebebeb;
}

.section.alt{background:#fafafa;}

.eyebrow{
  font-size:20px;
  color:var(--accent);
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
  margin-bottom:8px;
}

.section-title{
  font-size:22px;
  font-weight:700;
  margin-bottom:10px;
}

.section-sub{
  color:var(--muted);
  max-width:720px;
  margin-bottom:18px;
}

/* =========================================================
   VISION ROOOX — RESTAURATION
   ========================================================= */
.vision-rooox {
  margin-top: 40px;
  padding: 28px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
}

.vision-sub {
  color: #ddd;
  margin-bottom: 24px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}



/* =========================================================
   VISION ROOOX — HOVER ANIMATION PREMIUM
   ========================================================= */
.vision-card {
  background: #2a2a2a;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.vision-card:hover {
  transform: translateY(-4px);
  background: #303030;
  border-color: #444;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25),
              0 0 0 1px rgba(224, 67, 6, 0.25); /* halo ROOOX subtil */
}

.vision-card:hover .vision-logo {
  opacity: 1;
  transform: scale(1.06);
}

.vision-logo {
  width: 42px;
  height: auto;
  margin-bottom: 6px;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vision-logo {
  width: 42px;
  height: auto;
  margin-bottom: 6px;
  opacity: 0.9;
}

.vision-logo--xl {
  width: 84px;
}

.vision-card strong {
  font-size: 16px;
  margin-bottom: 2px;
}

.vision-card .small {
  color: #bbb;
}

/* =========================================================
   GRIDS & CARDS
   ========================================================= */
.grid{display:grid;gap:var(--gap);}
.grid.cols-3{grid-template-columns:repeat(3,1fr);}
.grid.cols-4{grid-template-columns:repeat(4,1fr);}
.grid.cols-2{grid-template-columns:repeat(2,1fr);}

.card{
  background:var(--surface);
  border:0.5px solid #e6e6e6;
  padding:18px;
  border-radius:10px;
}

/* ============================
   SECTION REFERENCES / CLIENTS
   ============================ */

.ref-grid {
  margin-top: 20px;
  gap: 20px;
}

/* Carte noire */
.ref-card.dark {
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center; /* centrage global */
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Logo centré */
.ref-card.dark img {
  height: 48px;
  display: block;
  margin: 0 auto 16px auto;
  filter: brightness(1.1);
  transition: transform 0.25s ease;
}

/* Ligne descriptive */
.ref-card.dark .ref-desc {
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.85;
}

/* Effet loupe + élévation */
.ref-card.dark:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}

.ref-card.dark:hover img {
  transform: scale(1.12);
}


/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section{
  background:var(--dark);
  padding:44px 28px;
  text-align:center;
  color:#fff;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
  padding:12px 20px;
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  background:var(--footer-bg);
  color:#888;
  padding:18px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.footer .brand{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#fff;
}

.modules-footer{
  display:flex;
  gap:12px;
  align-items:center;
}

.module-pill{
  background:var(--pill-bg);
  padding:10px 12px;
  border-radius:8px;
  color:#fff;
  font-size:13px;
  display:flex;
  gap:10px;
  align-items:center;
}

.module-pill strong{
  color:var(--accent);
  font-weight:700;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.small{font-size:13px;color:var(--muted);}
.text-mt-8 { margin-top: 8px; }
.grid-mt-20 { margin-top: 20px; }

.link-reset {
  color: inherit;
  text-decoration: none;
}

.grid-split-30-70 {
  grid-template-columns: 30% 70%;
  gap: 28px;
  margin-top: 24px;
}

.kicker{
  font-size:12px;
  color:var(--accent);
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

/* =========================================================
   PHOTO FADE
   ========================================================= */
.photo-fade{
  width:100%;
  display:block;
  -webkit-mask-image:linear-gradient(to right,black 70%,transparent 100%);
  mask-image:linear-gradient(to right,black 70%,transparent 100%);
}

/* Suppression des bordures visibles dans les sections */
.card,
.sol-card,
.module-card,
.vision-card {
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ========================= */
/* MODALE — OVERLAY */
/* ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;

  /* La modale est cachée au chargement */
  display: none;
}

/* Quand la modale est ouverte */
.modal-overlay.is-open {
  display: flex;
  justify-content: center;
  align-items: center;

  animation: fadeIn 0.25s ease-out;
}

/* Animation d'apparition de l'overlay */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ========================= */
/* MODALE — CONTENU */
/* ========================= */

.modal {
  background: #fff;
  width: min(92%, 860px);
  max-height: 85vh;
  padding: 32px;
  border-radius: 14px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);

  animation: slideUp 0.3s ease-out;
}

/* Animation du contenu */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-content ul {
  list-style: none;
  padding-left: 0;
}

.modal-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.modal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.modal-content h2 {
  margin-top: 32px;
  position: relative;
  padding-bottom: 6px;
}

.modal-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}


/* Bandeau image */
.modal-banner {
  --modal-banner-img: url("/assets/img/modale/entete_modale.jpg");

  width: 100%;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;

  background-image:
    linear-gradient(220deg,#0000 0%,#000c 40%),
    var(--modal-banner-img);

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* Overlay sombre pour lisibilité */
.modal-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.55)
  );
}

/* Titre dans le bandeau */
.modal-banner-title {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  z-index: 2;
  line-height: 1.2;
}

/* Version sans image (automatique) */
.modal-banner.empty {
  display: none;
}

/* ============================
   PAGE 404
   ============================ */

body.page-404 {
  background: #000;
  color: #fff;
}

body.page-404 .container {
  background: transparent;
}

.error-wrapper {
  padding: 120px 20px;
  text-align: center;
  color: #fff;
}

.error-code {
  font-size: 110px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.06;
  margin-bottom: -20px;
  text-transform: uppercase;
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.error-text {
  font-size: 16px;
  opacity: 0.75;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-404 {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  transition: all .2s ease;
  text-decoration: none;
}

.btn-404-primary {
  background: #E74E0F;
  color: #fff;
}

.btn-404-primary:hover {
  background: #d04409;
  transform: translateY(-2px);
}

.btn-404-secondary {
  border: 1px solid #E74E0F;
  color: #E74E0F;
}

.btn-404-secondary:hover {
  background: rgba(231,78,15,0.1);
  transform: translateY(-2px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55); /* fond sombre pour visibilité */
  backdrop-filter: blur(4px);
  color: #fff;                 /* croix blanche toujours visible */
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  z-index: 10;                 /* garantit qu’elle passe au-dessus du banner */
}

.modal-close:hover {
  background: var(--accent);   /* orange ROOOX */
  transform: scale(1.12);
}


/* ========================= */
/* FOOTER — LIENS */
/* ========================= */

.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-links a {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================
   FORMULAIRE DE CONTACT
   ============================ */

#modal-content form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 10px;
}

/* Ajustements specifiques au formulaire de contact pour limiter le blanc inutile */
#modal-content #contact-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

#modal-content #contact-form-wrapper .modal-title {
  margin: 0 0 12px;
  padding-bottom: 0;
}

#modal-content #contact-form-wrapper .modal-title::after {
  display: none;
}

#modal-content #contact-form {
  max-width: 100%;
  margin: 0;
  padding: 8px 0 0;
}

#modal-content .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 680px) {
  #modal-content .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

#modal-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

#modal-content input,
#modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 18px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#modal-content textarea {
  resize: vertical;
  min-height: 120px;
}

#modal-content input:focus,
#modal-content textarea:focus {
  border-color: #E74E0F;
  outline: none;
  box-shadow: 0 0 0 2px rgba(231, 78, 15, 0.2);
}

#modal-content .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

#modal-content button {
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  border: none;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}

#modal-content button:hover {
  transform: translateY(-1px);
}

#contact-form-cancel {
  background: #eee;
  color: #333;
}

#contact-form-cancel:hover {
  background: #ddd;
}

#contact-form-submit {
  background: #E74E0F;
  color: white;
}

#contact-form-submit:hover {
  background: #d04409;
}

#contact-form-message {
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 6px;
  display: none;
}

#contact-form-message.hidden {
  display: none;
}

#modal-content .required {
  color: var(--accent);
}

#contact-form-message.success {
  background: #e6f6e6;
  color: #2d7a2d;
}

#contact-form-message.error {
  background: #fdeaea;
  color: #b30000;
}

/* reCAPTCHA centré */
#modal-content .g-recaptcha {
  margin: 20px auto;
  display: flex;
  justify-content: center;
}
