/* -------------------------
   Variables & Base
   ------------------------- */
:root{
  --bg: #ffffff;
  --text: #0b2040;
  --muted: #5b6b82;
  --blue: #0b5ed7;    /* primary blue */
  --red: #d62828;     /* accent red */
  --card: #f8f9fb;
  --glass: rgba(11,32,64,0.04);
  --radius: 14px;
  --max-width: 1200px;
  --container-pad: 20px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --transition: 0.3s ease;
}

/* Reset */
* { box-sizing: border-box; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
html,body { height:100%; margin:0; background:var(--bg); color:var(--text); }
.container { max-width:var(--max-width); margin:0 auto; padding: 0 var(--container-pad); }

/* Links & buttons */
a { color: inherit; text-decoration: none; }
.btn-primary1 {
  background: linear-gradient(90deg,var(--blue), #2a7df6);
  color: white; padding: 12px 18px; border-radius: 10px; display:inline-block;
  font-weight:600; box-shadow: 0 6px 18px rgba(11,94,215,0.14); border: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary1:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,94,215,0.12); }

.btn-ghost1 {
  background: linear-gradient(90deg,var(--red), #ff1616);
  color: white; padding: 12px 18px; border-radius: 10px; display:inline-block;
  font-weight:600; box-shadow: 0 6px 18px rgba(255, 0, 0, 0.14); border: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-ghost1:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,94,215,0.12); }

.btn-outline { border:1px solid rgba(255,255,255,0.18); padding:8px 12px; border-radius:8px; }

/* Typography */
.lead { font-size:1.05rem; color:var(--muted); margin-top:8px; }
.section { padding:72px 0; }
.section-title { font-size:1.6rem; margin-bottom:8px; font-weight:700; color:var(--text); }

/* Header */
.site-header { position:sticky; top:0; backdrop-filter: blur(6px); background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9)); z-index:40; border-bottom:1px solid #eef2f6; }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px; }

.brand { display:flex; align-items:center; gap:10px; }
.brand-logo { width:44px; height:44px; object-fit:cover; border-radius:8px; box-shadow: 0 6px 16px rgba(12,40,80,0.06); }
.brand-text { font-weight:700; color:var(--text); }

/* Nav */
.main-nav { display:flex; align-items:center; gap:12px; }
.nav-list { list-style:none; display:flex; gap:8px; align-items:center; margin:0; padding:0; flex-wrap:wrap; }
.nav-list a { padding:8px 12px; border-radius:8px; color:var(--muted); font-weight:600; }
.nav-list a:hover { color:var(--blue); background: rgba(11,94,215,0.06); }

/* mobile nav */
.nav-toggle { display:none; background:transparent; border:none; padding:8px; cursor:pointer; }
.burger { width:28px; height:2px; background:var(--text); display:block; position:relative; }
.burger::before, .burger::after { content:""; position:absolute; left:0; right:0; height:2px; background:var(--text); }
.burger::before { top:-8px; }
.burger::after { top:8px; }
/* Effet burger animé */
.nav-toggle.active .burger {
  background: transparent;
}
.nav-toggle.active .burger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .burger::after {
  transform: rotate(-45deg) translate(6px, -6px);
}
.burger,
.burger::before,
.burger::after {
  transition: all 0.3s ease;
}


/* HERO with video */
.hero { position:relative; overflow:hidden; min-height:520px; display:flex; align-items:center; }
.hero-video-el { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; filter: saturate(0.9) contrast(0.95); }
.hero-overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(6,20,48,0.45), rgba(255,255,255,0.02)); z-index:1; pointer-events:none; }
.hero-grid { position:relative; z-index:2; display:grid; grid-template-columns: 1fr 420px; gap:28px; align-items:center; padding: 48px 0; }
.hero-content h1 { font-size:2.2rem; margin:0 0 10px; line-height:1.05; color:#fff; text-shadow: 0 6px 24px rgba(4,12,28,0.5); }
.hero-content .lead { color: rgba(255,255,255,0.9); }
.hero-ctas a { color: inherit; }
.hero-features { margin-top:18px; padding:0; list-style:disc inside; color:rgba(255,255,255,0.9); }

/* hero small card */
.hero-media { display:flex; justify-content:flex-end; }
.hero-card { width:100%; border-radius:16px; overflow:hidden; background:rgba(255,255,255,0.95); box-shadow:0 20px 40px rgba(12,40,80,0.08); transition: transform .28s ease; }
.hero-card img { width:100%; height:260px; object-fit:cover; display:block; }
.hero-card .card-meta { padding:14px; }

/* SERVICE CARDS (emoji, bleu) */
.cards1 { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-top:20px; }
.card1 { padding:18px; border-radius:12px; background:var(--card); transition: var(--transition); }
.service-card1 {
  display:flex; flex-direction:column; gap:10px; align-items:flex-start;
  border: 2px solid var(--blue);
  background:#fff;
  box-shadow: 0 8px 20px rgba(11,94,215,0.25);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* toutes sur la même ligne */
    gap: 18px;
    margin-top: 20px;
}

.card {
    position: relative;
    padding: 18px;
    border-radius: 12px;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.25);
}

.service-card {
    border: 2px solid var(--blue); /* contour bleu */
    background-size: cover;         /* l'image couvre toute la card */
    background-position: center;    /* centrage de l'image */
    background-repeat: no-repeat;
}

/* Overlay sombre pour lisibilité du texte */
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;           /* garde les coins arrondis */
    z-index: 0;
}

.service-card h3,
.service-card p,
.service-card .icon {
    position: relative;
    z-index: 1; /* texte au-dessus de l'overlay */
}


.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(11,94,215,0.35);
}
.service-card .icon { font-size:28px; padding:10px; border-radius:10px; }

/* GUIDES (rouge complet) */
.guides-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:18px; }
.guide-card {
  display:block; border-radius:12px; overflow:hidden;
  border: 2px solid var(--red);
  background:#fff;
  box-shadow:0 10px 30px rgba(214,40,40,0.25);
  transition: var(--transition);
}
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow:0 14px 34px rgba(214,40,40,0.4);
}
.guide-card img { width:100%; height:150px; object-fit:cover; display:block; }
.guide-card .guide-body { padding:14px; }
.guide-card .guide-body h4 { color:var(--red); margin-bottom:6px; }

/* RENTAL */
.rental-grid { display:grid; grid-template-columns: 1fr 360px; gap:18px; margin-top:18px; align-items:start; }
.rental-list .rental-items { list-style:none; padding:0; margin:0 0 12px; display:flex; flex-direction:column; gap:12px; }
.rental-items li { display:flex; gap:12px; align-items:center; }
.rental-items img { width:84px; height:64px; object-fit:cover; border-radius:8px; }


/* ABOUT */
.about-grid { display:grid; grid-template-columns: 320px 1fr; gap:28px; align-items:center; }
.about-photo { width:100%; height:100%; object-fit:cover; border-radius:12px; box-shadow: 0 14px 36px rgba(11,32,64,0.06); }

/* CONTACT */
.contact-grid { display:grid; grid-template-columns: 1fr 360px; gap:18px; align-items:start; margin-top:16px; }
.contact-info a { color:var(--blue); text-decoration:none; }

/* FOOTER */
.site-footer { border-top:1px solid #eef2f6; padding:22px 0; margin-top:40px; background:#fff; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); }

/* Animations */
.animate-elevate { transform-origin:center; transition: transform .35s cubic-bezier(.2,.9,.3,1); }
.animate-elevate:hover { transform: translateY(-8px) scale(1.01); }

/* Responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2,1fr); }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card img { height:220px; }
  .about-grid { grid-template-columns: 1fr; }
  .calc-grid, .contact-grid { grid-template-columns: 1fr; }
  .rental-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-list { display:none; position:absolute; right:16px; top:68px; background:white; border-radius:12px; padding:12px; box-shadow: 0 20px 40px rgba(11,32,64,0.08); width:220px; flex-direction:column; }
  .nav-list.open { display:flex; }
  .nav-toggle { display:block; }
  .cards { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .header-inner { gap:10px; }
  .hero { min-height:420px; }
  .hero-content h1 { font-size:1.6rem; }
}

/* Helpers */
.muted { color:var(--muted); }
.small { font-size:0.9rem; }
.mt { margin-top:12px; }

/* Accessibility focus */
a:focus, button:focus, input:focus, textarea:focus { outline: 3px solid rgba(11,94,215,0.16); outline-offset:3px; }

/* If video paused or blocked */
.hero-overlay.video-paused { background: linear-gradient(180deg, rgba(6,20,48,0.65), rgba(6,20,48,0.55)); }

.contact-section {
  background-color: #d62828; /* rouge REMAX */
  color: #fff; /* texte blanc */
  padding: 60px 20px;
  border-radius: 12px;
}

.contact-section h2,
.contact-section h3,
.contact-section h4 {
  color: #fff; /* titres en blanc */
}

.contact-section a {
  color: #fff;
  text-decoration: underline;
}

/* Structure principale */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Formulaire */
.contact-form {
  background: #fff;
  color: #0b2040;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.contact-form label {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 1rem;
}

.contact-form .form-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Boutons */
.btn-primary {
  background: #0b5ed7; /* bleu REMAX */
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #094bb0;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11,94,215,0.12);
}

.btn-ghost {
  background: transparent;
  color: #d62828;
  border: 2px solid #d62828;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: #fff;
  color: #d62828;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11,94,215,0.12);
}

/* Carte coordonnées */
.contact-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  line-height: 1.6;
}

/* ✅ Responsive pour mobile */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 40px 15px;
  }

  .contact-form {
    padding: 20px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .contact-form .form-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .contact-section h2 {
    font-size: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }
}


/* === Section Values (bleu REMAX) === */
.values-section {
  background-color: #0246ac; /* bleu REMAX */
  color: #fff;
  padding: 70px 20px;
  border-radius: 12px;
  margin: 60px 0;
  text-align: center;
}

.values-section .section-title {
  color: #fff;
  margin-bottom: 15px;
}

.values-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.value-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
}

/* ===========================
   CALCULATOR SECTION
   =========================== */
.calc-section { 
  margin-top: 50px; 
  padding: 30px; 
  background: #fff; 
  border-radius: var(--radius); 
  box-shadow: 0 8px 28px rgba(11,32,64,0.06); 
}

/* Onglets */
.calc-tabs {
  display: flex; flex-wrap: wrap; gap:12px; margin-bottom:28px;
}
.calc-tab {
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  font-weight:600;
  cursor:pointer;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid rgba(11,32,64,0.12);
}
.calc-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(11,94,215,0.2);
}

/* Formulaires */
.calc-container form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 32px rgba(11,32,64,0.06);
  display: flex; flex-direction: column; gap:18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.calc-container form:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(11,32,64,0.1);
}
.calc-container label {
  display: flex;
  flex-direction: column;
  font-weight:600;
  font-size:1rem;
  color: var(--text);
}
.calc-container input[type="number"] {
  margin-top:6px;
  padding:12px 14px;
  border-radius: var(--radius);
  border:1px solid rgba(11,32,64,0.2);
  font-size:1rem;
  transition: all 0.2s ease;
}
.calc-container input[type="number"]:focus {
  outline:none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,94,215,0.15);
}

/* Boutons */
.calc-container button {
  padding: 12px 22px;
  font-weight:600;
  border-radius: var(--radius);
  cursor:pointer;
  border:none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.calc-container button:hover { transform: translateY(-3px); }

/* Bleu */
.calc-container button[type="button"]:nth-child(odd) {
  background: var(--blue);
  color:#fff;
  box-shadow: 0 6px 20px rgba(11,94,215,0.15);
}
.calc-container button[type="button"]:nth-child(odd):hover {
  background:#094bb0;
  box-shadow: 0 12px 28px rgba(11,94,215,0.25);
}

/* Rouge plein */
.calc-container button[type="button"]:nth-child(even) {
  background: var(--red);
  color: #fff;
  border:2px solid var(--red);
  box-shadow: 0 6px 20px rgba(214,40,40,0.15);
}
.calc-container button[type="button"]:nth-child(even):hover {
  background: #b32121;
  border-color: #b32121;
  box-shadow: 0 12px 28px rgba(214,40,40,0.25);
}

/* Résultats */
.calc-container p {
  font-weight:600;
  font-size:1rem;
  margin-top:12px;
  color: var(--text);
}
.calc-container span {
  font-weight:700;
  color: var(--blue);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px){
  .calc-tabs { flex-direction: column; }
  .calc-container form { padding: 20px; }
  .calc-container button { width: 100%; }
}

/* ------------------------------
   MENU BURGER MOBILE
------------------------------ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.burger::before {
  transform: translateY(-8px);
}

.burger::after {
  transform: translateY(5px);
}

.nav-toggle.active .burger {
  background: transparent;
}

.nav-toggle.active .burger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .burger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Affichage Mobile --- */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card);
    padding: 1.5rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-list.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-list li {
    margin: 10px 0;
    text-align: center;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

