/* ===================================================
   1. VARIABLES ET RESET GLOBAL
   =================================================== */

   :root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #facc15;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --font-main: "Segoe UI", system-ui, sans-serif;
    --font-alt: "Arial", sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-color);
  }
  
  /* ===================================================
     2. STRUCTURE GÉNÉRALE
     =================================================== */
  
  .container,
  section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
  }
  
  section {
    padding: 60px 20px;
    text-align: center;
  }
  
  section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
  }
  
  a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
  }
  
/* ===================================================
   3. HEADER & NAVIGATION
   =================================================== */
   .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: transparent;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
  }
  
  #primary-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  #primary-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: row;
  }
  
  #primary-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  #primary-navigation a:hover {
    color: var(--primary-color);
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
  }
  
  /* Responsive - menu mobile */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .header-container {
      display: none;
      flex-direction: column;
    }
  
    .header-container.show {
      display: flex !important;
    }
  
    #primary-navigation {
      display: none;
      flex-direction: column;
      background: white;
      position: absolute;
      top: 70px;
      left: 0;
      width: 100%;
      padding: 2rem;
      z-index: 999;
    }
  
    #primary-navigation.active {
      display: flex;
    }
  
    #primary-navigation ul {
      flex-direction: column;
      gap: 1rem;
      text-align: left;
    }
  }
  
  /* ===================================================
     4. BANNIÈRES & OVERLAYS
     =================================================== */
  
  .banner {
    position: relative;
    height: 60vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }
  
  section.banner {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
  }
  
  .banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
  }
  
  /* Déclarations spécifiques aux bannières */
  .home-banner { background-image: url("images/banniere-default.jpg"); }
  .hebergement-banner { background-image: url("images/banniere hebergement.jpg"); }
  .domaines-banner { background-image: url("images/banniere domaine.jpg"); }
  .ssl-banner { background-image: url("images/banniere ssl.jpg"); }
  .emails-banner { background-image: url("images/banniere email.jpg"); }
  .securite-banner { background-image: url("images/banniere securite.jpg"); }
  .creation-sites-banner { background-image: url("images/banniere creation site web.jpg"); }
  .about-banner { background-image: url("images/banniere a propos.jpg"); }
  .contact-banner { background-image: url("images/banniere contact.jpg"); }
  
  /* ===================================================
     5. COMPOSANTS & CARTES
     =================================================== */
  
  .offres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
  }
  
  .offre,
  .portfolio-item,
  .process-step,
  .testimonial-item {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in-out;
    position: relative;
  }
  
  .offre:hover,
  .portfolio-item:hover,
  .process-step:hover,
  .testimonial-item:hover {
    transform: translateY(-5px);
  }
  
  .best-seller {
    border: 2px solid var(--accent-color);
  }
  
  .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
  }
  
  .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color: var(--secondary-color);
  }
  
  .btn-secondary { background-color: var(--dark-color); color: var(--text-light); }
  .btn-secondary:hover { background-color: var(--primary-color); }
  
  /* ===================================================
     6. DARK MODE
     =================================================== */
  
  body.dark-mode {
    background-color: #121212;
    color: #eee;
  }
  
  body.dark-mode header,
  body.dark-mode nav,
  body.dark-mode footer,
  body.dark-mode .grid-item,
  body.dark-mode .offre,
  body.dark-mode .extension-card,
  body.dark-mode .search-box,
  body.dark-mode input,
  body.dark-mode textarea,
  body.dark-mode table {
    background-color: #1f1f1f;
    color: #eee;
    border-color: #444;
  }
  
  body.dark-mode th,
  body.dark-mode td {
    border-color: #333;
  }
  
  body.dark-mode a {
    color: #66ccff;
  }
  
  body.dark-mode .btn {
    background-color: #333;
    color: #fff;
  }
  
  body.dark-mode .btn:hover {
    background-color: #555;
  }
  
  /* ===================================================
     7. ANIMATIONS
     =================================================== */
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeIn 0.5s ease-out;
  }
  
  /* ===================================================
     8. UTILITAIRES
     =================================================== */
  
  .table-responsive {
    overflow-x: auto;
    width: 100%;
  }
  
  canvas {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .stat-box {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
  }
  
  /* ===================================================
     9. MEDIA QUERIES ADDITIONNELLES
     =================================================== */
  
  @media (max-width: 1024px) {
    .offres {
      grid-template-columns: 1fr 1fr;
    }
    .process-steps,
    .ssl-validation .validation-types {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media (max-width: 768px) {
    h1 {
      font-size: 1.5rem;
      text-align: center;
    }
    .btn-container {
      flex-wrap: wrap;
      gap: 5px;
    }
    .btn {
      flex: 1 1 100%;
      text-align: center;
      padding: 8px;
    }
    .banner {
      height: 300px;
    }
  }
  
  /* ===================================================
   10. Top bar
   =================================================== */
.top-bar-grid {
  background-color: var(--light-color);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 999;
}

.top-bar-grid a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 5px;
  transition: color 0.3s ease;
}
.top-bar-grid a:hover {
  color: var(--primary-color);
}

.top-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-left,
.top-center,
.top-right {
  display: flex;
  align-items: center;
  flex: 1;
}
.top-left {
  justify-content: flex-start;
}
.top-center {
  justify-content: center;
}
.top-right {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.lang-toggle,
.currency-toggle {
  position: relative;
  margin-right: 1rem;
}
.lang-toggle button,
.currency-toggle button {
  background: none;
  border: none;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
}
.lang-options,
.currency-options {
  position: absolute;
  top: 120%;
  left: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  z-index: 9999;
  min-width: 100px;
}
.lang-options a,
.currency-options a {
  display: block;
  padding: 0.25rem 0;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.lang-options a:hover,
.currency-options a:hover {
  color: var(--primary-color);
}

/* Ligne liens mobile */
.top-bar-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.top-bar-links a,
.top-bar-links button {
  background: none;
  border: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}
.top-bar-links button.menu-toggle {
  font-size: 1.2rem;
  font-weight: bold;
}

@media (min-width: 769px) {
  .top-bar-links {
    display: none;
  }
}

/* Responsive top-bar */
@media (max-width: 768px) {
  .top-bar-grid {
    display: block;
    text-align: center;
  }

  .top-bar-row {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
  }

  .top-left,
  .top-center,
  .top-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
  }

  .top-center .logo {
    font-size: 1.4rem;
  }

  .top-bar-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
  }

  .lang-toggle,
  .currency-toggle {
    margin: 0;
  }
}

.hidden {
  display: none;
}

/* Classes utilitaires */
.mobile-only {
  display: none;
}
.desktop-only {
  display: flex;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  .top-bar-row.desktop-only .top-right {
    display: none !important;
  }

  .top-bar-row.mobile-only .top-right {
    display: flex !important;
  }
}
/* ===================================================
     11. Footer
     =================================================== */
     footer {
      background-color: var(--dark-color);
      color: var(--text-light);
      text-align: center;
      padding: 2rem 1rem;
      margin-top: 4rem;
    }
    
    .footer-links {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.2rem;
      padding: 0;
      margin: 0 0 1.5rem;
    }
    
    .footer-links li a {
      color: var(--text-light);
      text-decoration: none;
      transition: color 0.3s ease;
      font-weight: 500;
    }
    
    .footer-links li a:hover {
      color: var(--accent-color);
    }
    
    .footer-partners {
      margin-bottom: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.5rem;
      align-items: center;
    }
    
    .footer-partners img {
      height: 30px;
      opacity: 0.8;
      transition: opacity 0.3s ease;
    }
    
    .footer-partners img:hover {
      opacity: 1;
    }
    
    footer p {
      font-size: 0.9rem;
      color: #ccc;
    }
    
    /* Mode sombre */
    body.dark-mode footer {
      background-color: #1f1f1f;
      color: #eee;
    }
    
    /* Responsive */
    @media (max-width: 600px) {
      .footer-links {
        flex-direction: column;
        gap: 0.8rem;
      }
    
      .footer-partners {
        gap: 1rem;
      }
    }

/* ================================
   📱 OPTIMISATION AFFICHAGE MOBILE
   ================================ */

   @media (max-width: 768px) {
    body {
      font-size: 15px;
      padding: 0;
    }
  
    h1, h2, h3 {
      text-align: center;
    }
  
    section {
      padding: 40px 15px;
    }
  
    .offres {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .offre {
      padding: 1.5rem 1rem;
    }
  
    .price {
      font-size: 1.5rem;
      margin: 0.5rem 0;
    }
  
    .btn {
      width: 100%;
      display: block;
      font-size: 1rem;
      padding: 0.9rem;
      margin-top: 10px;
    }
  
    .search-box {
      flex-direction: column;
      gap: 10px;
    }
  
    .search-box input {
      width: 100%;
      padding: 10px;
      font-size: 1rem;
    }
  
    .extensions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }
  
    .extension-card {
      flex: 1 1 45%;
      text-align: center;
      padding: 10px;
      font-size: 1rem;
    }
  
    .feature-icon,
    .transfer-icon {
      width: 60px;
      height: auto;
      margin-bottom: 10px;
    }
  
    .view-all {
      display: inline-block;
      margin-top: 1rem;
      font-size: 0.95rem;
    }
  
    .faq-container p,
    .support-section p {
      text-align: center;
      padding: 0 10px;
    }
  
    .support-section .btn {
      max-width: 300px;
      margin: 0 auto;
    }
  }
      
 /* ================================
   📱 page de site
   ================================ */

   .payment-cycle {
    text-align: center;
    margin: 40px auto;
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }
  
  .toggle-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .cycle-btn {
    background-color: #f0f4f8;
    border: 2px solid #0077cc;
    color: #0077cc;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .cycle-btn:hover {
    background-color: #e6f0fa;
  }
  
  .cycle-btn.active {
    background-color: #0077cc;
    color: #fff;
  }
  
    .wp-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      padding: 20px;
    }
  
    .wp-card {
      background: white;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      flex: 1 1 300px;
      max-width: 360px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      transition: transform 0.3s, box-shadow 0.3s;
    }
  
    .wp-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
  
    .wp-card h3 {
      margin-top: 0;
      font-size: 20px;
      color: #333;
    }
  
    .wp-card .price {
      font-size: 28px;
      font-weight: bold;
      color: #0077cc;
      margin: 10px 0;
    }
  
    .wp-card .features {
      list-style: none;
      padding: 0;
      margin: 20px 0;
    }
  
    .wp-card .features li {
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      font-size: 14px;
      color: #444;
    }
  
    .wp-card .features li i {
      color: #2ecc71;
      margin-right: 10px;
      min-width: 20px;
      text-align: center;
    }
  
    .wp-card .features li i.fa-times {
      color: #e74c3c;
    }
  
    .wp-card .btn {
      background-color: #0077cc;
      color: white;
      padding: 12px;
      text-align: center;
      border-radius: 8px;
      text-decoration: none;
      font-weight: bold;
      transition: background 0.3s;
    }
  
    .wp-card .btn:hover {
      background-color: #005fa3;
    }
  
    .feature-section {
      background-color: #f9fbfc;
      border-radius: 16px;
      padding: 50px 20px;
      margin-top: 60px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }
  
    .feature-section h2 {
      font-size: 28px;
      color: #0077cc;
      text-align: center;
      margin-bottom: 10px;
    }
  
    .feature-section p {
      text-align: center;
      font-size: 16px;
      color: #555;
      margin-bottom: 40px;
    }
  
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 30px;
      align-items: stretch;
    }
  
    .feature-item {
      background-color: white;
      border-radius: 12px;
      padding: 24px;
      text-align: center;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
  
    .feature-item:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }
  
    .feature-item i {
      font-size: 36px;
      margin-bottom: 12px;
      display: inline-block;
    }
  
    .feature-item h3 {
      font-size: 18px;
      margin-bottom: 10px;
      color: #333;
    }
  
    .feature-item p {
      font-size: 15px;
      color: #666;
      line-height: 1.5;
    }
  
    .compare-table {
      width: 100%;
      max-width: 1100px;
      margin: 60px auto;
      border-collapse: collapse;
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    }
  
    .compare-table thead {
      background-color: #0077cc;
      color: white;
    }
  
    .compare-table th, .compare-table td {
      padding: 14px 20px;
      text-align: center;
      font-size: 15px;
      border-bottom: 1px solid #eee;
    }
  
    .compare-table tbody tr:hover {
      background-color: #f8fafd;
    }
  
    /* FAQ */
    .faq-section {
      max-width: 900px;
      margin: 60px auto 40px;
      padding: 30px;
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }
  
    .faq-section h2 {
      text-align: center;
      font-size: 28px;
      margin-bottom: 30px;
      color: #0077cc;
    }
  
    .faq-container .faq-item {
      border-bottom: 1px solid #e0e0e0;
    }
  
    .faq-toggle {
      width: 100%;
      background: none;
      border: none;
      font-size: 18px;
      text-align: left;
      padding: 16px;
      cursor: pointer;
      color: #333;
      font-weight: 600;
      transition: background 0.2s ease;
    }
  
    .faq-toggle:hover {
      background: #f5f9fc;
    }
  
    .faq-content {
      display: none;
      padding: 0 16px 16px;
      font-size: 15px;
      color: #555;
      animation: fadeSlideDown 0.3s ease-in-out;
    }
  
    .faq-item.active .faq-content {
      display: block;
    }
  
    @keyframes fadeSlideDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
     
    .form-group {
      margin-bottom: 15px;
    }
    
    .form-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: 600;
      color: #333;
    }
    
    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 10px;
      border-radius: 6px;
      border: 1px solid #ddd;
      font-size: 14px;
      color: #333;
      box-sizing: border-box;
    }
    
    .form-group textarea {
      resize: vertical;
    }

    .extension-card {
      padding: 20px;
      text-align: center;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .extension-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    }
    
    .extension-card .ext-name {
      font-size: 22px;
      font-weight: bold;
      color: #0077cc;
    }
    
    .extension-card .ext-price {
      font-size: 15px;
      color: #444;
      display: block;
      margin-top: 8px;
    }

/* --- FORMULAIRE COMMANDE HÉBERGEMENT --- */
#order-app {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#order-app h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.step {
  padding: 20px;
  border-left: 4px solid var(--primary-color, #0066ff);
  margin-bottom: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.step h4 {
  margin-bottom: 15px;
  color: var(--primary-color, #0066ff);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 8px;
}

.btn {
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color, #0066ff);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #004bbb;
}

.btn-secondary {
  background-color: #eee;
  color: #333;
  border: none;
}

.btn-success {
  background-color: #28a745;
  color: white;
  border: none;
}

.faq-toggle {
  cursor: pointer;
}

small.form-text {
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
  color: #666;
}
