/* ==========================================================================
   Variables - Charte Graphique
   ========================================================================== */
:root {
  --primary-color: #0E7ACA; /* Bleu principal du site actuel (rgb 14, 122, 202) */
  --secondary-color: #176BE0; /* Bleu clair du site actuel */
  --accent-color: #0E7ACA; /* Même bleu que l'écriture Benoit Rochas pour uniformité */
  --accent-hover: #0c6bb3; /* Bleu un peu plus foncé au survol */
  
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA; /* Gris perle pour alternance de sections */
  
  --text-main: #2D3748; /* Couleur de texte principale */
  --text-light: #4A5568; /* Couleur de texte secondaire */
  --text-white: #FFFFFF;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius: 16px;
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  --box-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
  background-color: var(--bg-white);
  z-index: 2;
}

.section-light {
  background-color: var(--bg-light);
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(14, 122, 202, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 122, 202, 0.45);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #121e36;
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Bouton Devis — très visible */
.btn-devis {
  width: 100%;
  text-align: center;
  background: #FFFFFF;
  color: var(--accent-color) !important;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 18px 32px;
  border: none;
  border-radius: 50px;
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.4),
    0 4px 20px rgba(14, 122, 202, 0.3);
  animation: pulseDevis 2s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-devis:hover {
  background: var(--accent-color);
  color: #FFFFFF !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.6),
    0 8px 30px rgba(14, 122, 202, 0.5);
  animation: none;
}

@keyframes pulseDevis {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.4),
      0 4px 20px rgba(14, 122, 202, 0.3);
  }
  50% {
    box-shadow:
      0 0 30px rgba(255, 255, 255, 0.7),
      0 4px 35px rgba(14, 122, 202, 0.5);
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Espace minimal avec le logo */
}

.logo-name {
  font-size: 1.4rem; /* Augmente la taille de la police */
  color: var(--primary-color);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.logo-img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-family: var(--font-heading);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 43, 76, 0.7) 0%, rgba(0, 180, 216, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-white);
}

.hero-content h1 {
  color: var(--text-white);
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeUp 1s ease;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  animation: fadeUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* ==========================================================================
   Consultations Section (Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Section Cabinet — Photo parallaxe en arrière-plan */
.section-cabinet {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.cabinet-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed; /* Effet parallaxe */
  z-index: 0;
}

.cabinet-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(14, 56, 100, 0.75) 0%,
    rgba(14, 122, 202, 0.6) 50%,
    rgba(26, 43, 76, 0.8) 100%
  );
  z-index: 1;
}

/* Section title white underline */
.section-cabinet .section-title::after {
  background-color: #FFFFFF;
}

/* Cards glassmorphism sur la photo */
.service-card-glass {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.service-card-glass h3 {
  color: #FFFFFF !important;
}

.service-card-glass p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.service-card-glass:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-10px);
}

.service-card-glass .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.service-card-glass:hover .service-icon {
  background: #FFFFFF;
  color: var(--accent-color);
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-top-color: var(--secondary-color);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--secondary-color);
  color: var(--text-white);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ==========================================================================
   Tarifs et Remboursements
   ========================================================================== */
.tarifs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.tarifs-text {
  flex: 1;
  min-width: 300px;
}

.tarifs-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.tarifs-highlight {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a4365 100%);
  border-radius: var(--border-radius);
  padding: 40px;
  color: var(--text-white);
  box-shadow: var(--box-shadow);
}

.tarifs-highlight h3 {
  color: var(--text-white);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.tarifs-highlight .price-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-item p, .contact-item a {
  color: var(--text-light);
  font-size: 1rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-col p {
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--text-white);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Modal (Formulaire de Devis)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--box-shadow);
  animation: fadeUp 0.3s ease-out;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}
.close-modal:hover {
  color: var(--primary-color);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(23, 107, 224, 0.1);
}

/* ==========================================================================
   Responsive — Tablette (≤ 992px)
   ========================================================================== */
@media (max-width: 992px) {
  .container {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

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

  .map-container {
    height: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .tarifs-container {
    flex-direction: column;
  }

  .tarifs-text,
  .tarifs-highlight {
    min-width: unset;
    width: 100%;
  }

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

/* ==========================================================================
   Responsive — Mobile paysage (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  /* --- Header mobile --- */
  .header .container {
    height: 80px;
  }

  .logo-img {
    height: 70px;
  }

  .logo-name {
    font-size: 1.1rem;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* --- Hero mobile --- */
  .hero {
    min-height: 500px;
    padding-top: 80px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  /* --- Cabinet parallaxe mobile --- */
  .cabinet-bg {
    background-attachment: scroll; /* Parallaxe désactivé sur mobile pour performance */
  }

  .section-cabinet {
    padding: 60px 0;
  }

  /* --- Services / Consultations --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  /* --- Tarifs --- */
  .tarifs-highlight {
    padding: 25px;
  }

  .tarifs-highlight h3 {
    font-size: 1.5rem;
  }

  .tarifs-highlight .price-badge {
    font-size: 1.5rem;
    padding: 8px 16px;
  }

  .btn-devis {
    font-size: 1rem;
    padding: 15px 24px;
  }

  /* --- Contact --- */
  .contact-container {
    gap: 30px;
  }

  .map-container {
    height: 250px;
  }

  /* --- Footer --- */
  .footer {
    padding: 40px 0 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* --- Modal --- */
  .modal-content {
    padding: 25px;
    width: 95%;
  }
}

/* ==========================================================================
   Responsive — Petit mobile (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header .container {
    height: 70px;
  }

  .logo-img {
    height: 55px;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-title::after {
    width: 40px;
    height: 3px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .tarifs-text p {
    font-size: 0.95rem;
  }

  .tarifs-highlight {
    padding: 20px;
  }

  .tarifs-highlight .price-badge {
    font-size: 1.3rem;
    padding: 6px 14px;
  }

  .btn-devis {
    font-size: 0.95rem;
    padding: 14px 20px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .contact-item h4 {
    font-size: 1rem;
  }

  .contact-item p,
  .contact-item a {
    font-size: 0.9rem;
  }

  .map-container {
    height: 200px;
  }

  .footer-col h3 {
    font-size: 1rem;
  }

  .social-links a {
    width: 35px;
    height: 35px;
  }

  .modal-content {
    padding: 20px;
  }

  .close-modal {
    font-size: 1.4rem;
    top: 10px;
    right: 15px;
  }

  .form-group input {
    padding: 10px 12px;
  }

  /* About section list items */
  .about-grid li {
    font-size: 0.9rem;
  }

  .about-grid li img {
    height: 22px;
  }
}
