/* -----------------------------------------------------------
   AMBICAR – STYLE PRINCIPAL
   Design futuriste / sombre / rouge
   Compatible mobile + iPhone + tablette + desktop
----------------------------------------------------------- */

/* VARIABLES */
:root {
  --bg: #050812;
  --bg-alt: #080d18;
  --accent: #e43132;
  --accent-soft: #ff5b5c;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --card: #0c101e;
  --border: rgba(255,255,255,0.05);
  --shadow-soft: 0 20px 40px rgba(0,0,0,0.65);
  --radius-xl: 24px;
  --transition: 0.25s ease;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* empêche le scroll horizontal */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: radial-gradient(circle at top, #111827 0, #050812 45%, #020308 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(5, 8, 18, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
}


.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;      /* tu peux augmenter ici pour un header plus haut */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;      /* important pour centrer AMBICAR */ 
}

/* Transition douce */
.site-header,
.nav-inner {
  transition: padding 0.25s ease, background 0.25s ease;
}

/* Quand le header est réduit */
.site-header.shrink .nav-inner {
  padding: 4px 20px; /* 14px -> 4px : -10px en haut + -10px en bas = -20px de hauteur */
}


/* LOGO */
.logo-block {
  display: flex;
  align-items: center;
  text-decoration: none; /* si tu veux enlever le soulignement */
}

.logo-block img {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  height: 100px;   /* augmente la hauteur du logo */
  width: auto;    /* garde les proportions */
  padding: 10px;
}

.logo-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.logo-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.logo-text span:last-child {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color:white;
  font-family: "Rajdhani", sans-serif;
}

/* NAV DESKTOP */
.nav-links {
  position: absolute;
  left: 20px;   /* menu collé à gauche */
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding-bottom: 4px;
  position: relative;
  transition: 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  background: var(--accent);
  left: 0;
  bottom: 0;
  transition: 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA */
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.6);
}

.nav-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* MENU MOBILE BUTTON */
.mobile-menu-btn {
  position: absolute;
  left: 20px;
  display: none;   /* reste masqué en desktop */
  font-size: 28px;
  cursor: pointer;
}
/* MENU MOBILE */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #0b0f1a;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero {
  max-width: 1200px;
  margin: auto;
  padding: 140px 20px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--accent-soft);
  margin-bottom: 12px;
  padding-top: 75px;
  text-align: center;
}

.hero-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 2.8rem;
  padding-top: 125px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-align: center;
}

.hero-gradient {
  background: linear-gradient(120deg, #fff, #ccc, var(--accent-soft));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 520px;
  text-align: center;

}

.hero-badges {
  display: grid;                  /* on garde seulement grid */
  grid-template-columns: 1fr;     /* 1 module par ligne */
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;             /* centre le texte */
  justify-items: center;          /* centre horizontalement chaque module */
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 10px var(--accent-soft);
}

.hero-cta-row {
  display: block;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  text-align: center;             /* centre le texte */
  justify-items: center;          /* centre horizontalement chaque module */
  padding-top: 0px;
}

.btn-primary {
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border: none;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255,50,50,0.3);
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.btn-ghost:hover { color: white; border-color: white; }

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* RIGHT VISUAL */
.hero-visual {
  position: relative;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-card {
  background: #0c101e;
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hero-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.hero-status {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  margin-right: 5px;
  margin-top: 5px;
}

.hero-car-wrapper {
  margin-bottom: 14px;
  background: #000;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;   /* ❤️ centre tous les items */
  text-align: center;         /* centre le texte de chaque item */
  font-size: 0.8rem;
  color: var(--muted);
}

/* -----------------------------------------------------------
   SERVICES
----------------------------------------------------------- */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 20px 20px;
}

.section-header {
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--accent-soft);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.section-title {
  font-family: "Rajdhani";
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-align: center;
}

.section-subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background: #0c101e;
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.service-header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.service-title {
  font-family: "Rajdhani";
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.service-pill {
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
}

.service-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-logo {
  width: 50px;    /* ajuste la taille du logo */
  height: auto;
  border-radius: 50%;   /* cercle parfait */
  object-fit: cover;    /* évite la déformation */
}


/* OPTIONS */
.options-list {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  margin-bottom: 14px;
  padding-right: 10px;
  gap: 50px;
}

.option-price {
    display: inline-block;
    margin-left: 5px;  /* espace entre le texte et le prix */
    padding-right: 0px;
    white-space: nowrap;   /* empêche le retour à la ligne */
}

.option-desc {
    font-size: 95%;
}

.options-list li {
  padding: 8px 0;
  font-size: 0.85rem;
}

.option-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.option-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
  padding: 0 8px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  margin-top: 0;
}

.options-list li.option-open .option-details {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.option-detail-img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.option-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.project-option-carousel {
  position: relative;
  width: 100%;
  max-height: 150px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.project-option-slide {
  display: none;
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.project-option-slide.active {
  display: block;
}

.option-detail-text {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 6px 0 0;
}

.options-list label {
  display: flex;
  gap: 8px;
  cursor: pointer;
}

.options-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
}

.options-list input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.option-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: 250px;
  border-radius: 25px;
  margin-top: 5px;
}

.hero-carousel {
  position: relative;
  width: min(100%, 760px);
  height: 300px;
  margin: 0 auto;
  border-radius: 25px;
  overflow: hidden;
}

.hero-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-carousel-image.active {
  opacity: 1;
}

/* TOTAL */
.service-footer {
  display: grid;
  justify-content: center;
  align-items: center;
}

.service-total {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  display: grid;
  
}

.service-total strong {
  color: white;
}

.service-cta {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(252, 251, 251, 0.3);
  background: #ff0000;
  color: white;
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: var(--transition);
  margin-top: 15px;
}

.service-cta:hover {
  border-color: white;
}

/* -----------------------------------------------------------
   GALLERIE
----------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.gallery-item {
  background: #0a0e19;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.gallery-image {
  width: 100%;
  height: 300px;
  object-fit: cover;      /* coupe proprement sans déformer */
  border-radius: 12px;
  margin-bottom: 12px;
}

.gallery-carousel {
  position: relative;
  margin-bottom: 12px;
  min-height: 300px;
}

.carousel-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: opacity 700ms ease;
}

.carousel-image.active {
  opacity: 1;
}

.gallery-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 14, 25, 0.72);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.gallery-carousel-btn.prev {
  left: 12px;
}

.gallery-carousel-btn.next {
  right: 12px;
}

.gallery-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* -----------------------------------------------------------
   CONTACT
----------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: #0c101e;
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);

  width: 100%;            /* prend toute la largeur disponible */
  max-width: 100%;        /* ne dépasse jamais l’écran */
  box-sizing: border-box; /* évite de dépasser avec padding */
  overflow: hidden;       /* évite tout rognage interne */
  text-align: center;
}

.contact-card2 {
  background: #0c101e;
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);

  width: 100%;            /* prend toute la largeur disponible */
  max-width: 100%;        /* ne dépasse jamais l’écran */
  box-sizing: border-box; /* évite de dépasser avec padding */
  overflow: hidden;       /* évite tout rognage interne */
  text-align: left;
}

.contact-card h3 {
  font-family: "Rajdhani";
  font-size: 1.2rem;
  margin-bottom: 8px;

  width: 100%;            /* prend toute la largeur disponible */
  max-width: 100%;        /* ne dépasse jamais l’écran */
  box-sizing: border-box; /* évite de dépasser avec padding */
  overflow: hidden;       /* évite tout rognage interne */
}

.contact-details {
  list-style: none;
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.9rem;
  padding-bottom: 20px;
  padding-top: 20px;
  text-align: center;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-tag {
  padding: 5px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.75rem;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr; /* ⬅️ 1 colonne = champs empilés */
  gap: 12px;
}


.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

input,
textarea,
select {
  background: #111522;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 8px;
  color: rgb(255, 255, 255);
  font-size: 0.9rem;
}

textarea { min-height: 120px; }
  

button[type="submit"] {
  margin: 0; /* IMPORTANT : annule l’ancien margin-left:auto */
  margin-top: 20px;
}

.submit-row {
  display: grid;
  justify-content: center; /* centre horizontalement */
  grid-template-columns: 1fr !important; /* 1 item par ligne */
  text-align: center;
}
/* FOOTER */
footer {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* -----------------------------------------------------------
   RGPD
----------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0a0a0a;
  color: white;
  padding: 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 14px;
}

.cookie-buttons button {
  margin-left: 10px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

#accept-cookies {
  background: #0f8f0f;
  color: white;
}

#decline-cookies {
  background: #777;
  color: white;
}

.rgpd-note {
  text-align: center;
  font-size: 10px;
  }

.rgpd-note2 {
text-align: center;
font-style: italic;
font-size: 12px;
}



/* -----------------------------------------------------------
   FADE-IN ANIMATION
----------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------- */
/* FOOTER AMBICAR                */
/* ----------------------------- */

.site-footer {
  background: #050812;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 20px;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  color: #fff;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  height: 50px;
  width: auto;
  opacity: 0.9;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

.footer-links {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.7;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .gallery-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: 1.5rem; }
}
