/* ============================================
   PLAN2GO - STYLE.CSS OPTIMISÉ
   ============================================ */

/* ===== VARIABLES CSS ===== */
:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --hero-bg: linear-gradient(to right, #0a2540, #193b61);
  --btn-bg: #0d6efd;
  --btn-text: #ffffff;
}

body.dark-mode {
  --background-color: #000000;
  --text-color: #ffffff;
  --hero-bg: linear-gradient(to right, #1a1a1a, #2a2a2a);
  --btn-bg: #ffffff;
  --btn-text: #0a2540;
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: all 0.4s ease;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.container {
  max-width: 1200px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar {
  padding: 1rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 80px;
  width: auto;
}

.logo-dark {
  display: none;
}

body.dark-mode .logo {
  display: none;
}

body.dark-mode .logo-dark {
  display: block;
  height: 120px;
  width: auto;
}

.logo-subtitle {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  margin-top: -2px;
}

body.dark-mode .logo-texts {
  color: #ffffff;
}

body.dark-mode .logo-subtitle {
  color: #ccc;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #0d6efd !important;
}

.navbar-toggler {
  border: none;
  color: var(--text-color);
}

/* FIX : Menu hamburger visible en dark mode */
body.dark-mode .navbar-toggler-icon {
  filter: invert(1) brightness(100);
}

.toggle-theme {
  background: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.toggle-theme:hover {
  transform: scale(1.1);
  background-color: var(--text-color);
  color: var(--background-color);
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--hero-bg);
  color: white;
  text-align: center;
  padding: 120px 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  max-width: 700px;
  margin: 20px auto 30px;
  font-size: 1.2rem;
  opacity: 0.95;
  position: relative;
  z-index: 3;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== SECTIONS FEATURES (INDEX) ===== */
section.feature {
  padding: 100px 0;
  transition: all 0.4s ease;
  background-color: var(--background-color);
}

section.feature:nth-child(even) {
  background-color: #f8f9fa;
}

body.dark-mode section.feature:nth-child(even) {
  background-color: #1a1a1a;
}

body.dark-mode section.feature:nth-child(odd) {
  background-color: #0f0f0f;
}

section.feature h2,
section.feature p {
  color: var(--text-color) !important;
}

body.dark-mode section.feature h2,
body.dark-mode section.feature p {
  color: #ffffff !important;
}

.feature img {
  border-radius: 10px;
  box-shadow: 10px 10px 50px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 500px;
  width: 80%;
  height: auto;
}

.feature img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.feature h2 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.feature p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
}




/* ===== BOUTONS ===== */
a.btn,
a.btn-primary,
a.btn-outline,
a.inscr,
.submit-btn {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

a.btn:hover,
a.btn:focus,
a.btn-primary:hover,
a.btn-primary:focus,
.inscr:hover,
.inscr:focus,
.submit-btn:hover,
.submit-btn:focus {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 30px;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

section.feature .btn-primary {
  background-color: #0d6efd;
  color: white;
}

body.dark-mode section.feature .btn-primary {
  background-color: #ffffff;
  color: #0a2540;
}

.btn-outline-primary {
  border: 2px solid #0d6efd;
  color: #0d6efd;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-2px);
}

.btn-connexion {
  background-color: #004aad;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-connexion:hover {
  background-color: #003b8a;
  color: white;
}

.inscr {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  border: none;
  transition: all 0.3s ease;
  border-radius: 25px;
  font-weight: 700;
  padding: 15px 35px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inscr:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  color: white;
}

.btn:focus,
.nav-link:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* ===== PAGE TARIFS ===== */
.custom-pricing {
  padding: 90px 20px;
  background: linear-gradient(to top right, #f7faff, #e0e7ff);
  font-family: "Segoe UI", sans-serif;
  text-align: center;
  transition: all 0.4s ease;
}

body.dark-mode .custom-pricing {
  background: linear-gradient(to top right, #0a0a0a, #1a1a1a);
}

.custom-heading {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: #1e1e2f;
  transition: color 0.4s ease;
}

body.dark-mode .custom-heading {
  color: #ffffff;
}

.custom-subheading {
  font-size: 1.15rem;
  margin-bottom: 3rem;
  color: #555;
  transition: color 0.4s ease;
}

body.dark-mode .custom-subheading {
  color: #b0b0b0;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  text-align: left;
  backdrop-filter: blur(6px);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

body.dark-mode .custom-card {
  background: linear-gradient(145deg, #1a1a1a, #252525);
  border: 1px solid #333;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

body.dark-mode .custom-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8);
  border-color: #444;
}

.custom-icon {
  margin-bottom: 1.2rem;
  color: #4f46e5;
  transition: color 0.4s ease;
}

body.dark-mode .custom-icon {
  color: #5b9cff;
}

.custom-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1e1e2f;
  transition: color 0.4s ease;
}

body.dark-mode .custom-card h3 {
  color: #ffffff;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem 0;
  color: #333;
  transition: color 0.4s ease;
}

body.dark-mode .price {
  color: #5b9cff;
}

.price span {
  font-size: 1rem;
  color: #888;
}

.price-description {
  color: #666;
  font-size: 0.95rem;
  margin: 10px 0;
  min-height: 40px;
}

body.dark-mode .price-description {
  color: #ccc;
}

.features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.features li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #333;
  transition: color 0.4s ease;
}

body.dark-mode .features li {
  color: #cccccc;
}

.btn-outline {
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #4f46e5;
  width: 100%;
  text-align: center;
  background: transparent;
  color: #4f46e5;
}

.btn-outline:hover {
  background: #4f46e5;
  color: #fff;
}

body.dark-mode .btn-outline {
  border-color: #5b9cff;
  color: #5b9cff;
}

body.dark-mode .btn-outline:hover {
  background: #5b9cff;
  color: #0a0a0a;
}

/* Bannière promo */
.promo-banner {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  font-size: 1.2rem;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

body.dark-mode .promo-banner {
  background: linear-gradient(135deg, #1e7e34, #1ea074);
}

/* Formulaire de devis */
.devis-form-hidden {
  display: none;
}

.devis-form-visible {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.devis-form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.devis-form-card {
  position: relative;
  background: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

body.dark-mode .devis-form-card {
  background: #1a1a1a;
  color: white;
}

.close-form {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #dc3545;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-form:hover {
  background: #c82333;
  transform: rotate(90deg);
}

.devis-form-card h3 {
  color: #004aad;
  margin-bottom: 10px;
}

body.dark-mode .devis-form-card h3 {
  color: #4b8cfb;
}

.devis-form-card p {
  color: #666;
  margin-bottom: 30px;
}

body.dark-mode .devis-form-card p {
  color: #ccc;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

body.dark-mode .form-group label {
  color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #2b2b2b;
  color: white;
  border-color: #444;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #004aad;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #4b8cfb;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #004aad, #0066cc);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 74, 173, 0.3);
  background: linear-gradient(135deg, #003580, #004aad);
}

/* ===== PAGE CONTACT ===== */
.contact-page {
  background-color: #ffffff;
  padding: 40px 0 80px;
}

body.dark-mode .contact-page {
  background-color: #0f0f0f;
}

.contact-page h1 {
  font-family: 'Poppins', sans-serif, 'arial';
  font-weight: 600;
  font-size: 72px;
  color: black;
  text-align: center;
  padding-top: 60px;
}

body.dark-mode .contact-page h1 {
  color: #ffffff;
}

.contact-page h4 {
  font-family: 'Roboto', sans-serif, 'arial';
  font-weight: 400;
  font-size: 20px;
  color: black;
  line-height: 1.5;
  padding-top: 20px;
  text-align: center;
}

body.dark-mode .contact-page h4 {
  color: #ffffff;
}

.contact-page .form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.contact-page .styled-input {
  width: 293px;
  margin: 1rem 0;
  position: relative;
  border-radius: 4px;
}

.contact-page .styled-input.wide {
  width: 650px;
  max-width: 100%;
  padding-top: 20px;
}

.contact-page .styled-input label {
  color: #999;
  padding: 1.3rem 30px 1rem 30px;
  position: absolute;
  top: 10px;
  left: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

body.dark-mode .contact-page .styled-input label {
  color: #cccccc;
}

.contact-page input,
.contact-page textarea {
  padding: 30px;
  border: 0;
  width: 100%;
  font-size: 1rem;
  background-color: #2d2d2d;
  color: #ffffff;
  border-radius: 4px;
}

body.dark-mode .contact-page input,
body.dark-mode .contact-page textarea {
  background-color: #2b2b2b;
  color: #ffffff;
}

.contact-page textarea {
  min-height: 15em;
}

.contact-page input:focus,
.contact-page textarea:focus {
  outline: 0;
}

.contact-page input:focus ~ label,
.contact-page textarea:focus ~ label,
.contact-page input:valid ~ label,
.contact-page textarea:valid ~ label {
  font-size: 0.75em;
  color: #999;
  top: -5px;
  transition: all 0.225s ease;
}

body.dark-mode .contact-page input:focus ~ label,
body.dark-mode .contact-page textarea:focus ~ label,
body.dark-mode .contact-page input:valid ~ label,
body.dark-mode .contact-page textarea:valid ~ label {
  color: #bbbbbb;
}

.contact-page .input-container {
  width: 650px;
  max-width: 100%;
  margin: 20px auto 25px auto;
}

.contact-page .submit-btn {
  padding: 7px 35px;
  border-radius: 60px;
  display: block;
  background-color: #4b8cfb;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.06), 0 2px 10px 0 rgba(0,0,0,0.07);
  transition: all 300ms ease;
  margin: 20px auto;
}

.contact-page .submit-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.10), 0 1px 1px 0 rgba(0,0,0,0.09);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #0a2540;
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
  transition: all 0.4s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

body.dark-mode .footer {
  background-color: #111;
}

.footer .col-md-6:first-child {
  flex: 1;
}

.footer .col-md-6:last-child {
  flex: 1;
  text-align: right;
}

.footer .col-md-6 {
  margin-bottom: 20px;
}

.footer-brand h3 {
  color: white;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #ccc;
  margin-bottom: 0;
}

.footer-links h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-divider {
  border-color: #333;
  margin: 40px 0 30px;
}

.footer-bottom {
  color: #ccc;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.log {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 10px;
}

.log img {
  width: 120px;
  height: auto;
}

.log .logo-dark-footer {
  display: none;
}

.log .logo-light-footer {
  display: block;
}

body.dark-mode .log .logo-dark-footer {
  display: block;
}

body.dark-mode .log .logo-light-footer {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero {
    padding: 80px 20px;
  }
  
  .feature h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 20px;
    min-height: 450px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .feature {
    padding: 60px 0;
  }
  
  .feature img {
    max-width: 350px;
  }
  
  .custom-heading {
    font-size: 2rem;
  }
  
  .custom-subheading {
    font-size: 1rem;
  }
  
  .custom-grid {
    grid-template-columns: 1fr;
  }
  
  .custom-card:hover {
    transform: translateY(-5px);
  }
  
  .contact-page .styled-input {
    width: 100%;
  }
  
  .contact-page .submit-btn {
    width: 100%;
    text-align: center;
  }
  
  .devis-form-card {
    padding: 30px 20px;
    width: 95%;
  }
  
  .promo-banner {
    font-size: 1rem;
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
}