/*
Theme Name: Flatsome Child - Madi-Plan
Theme URI: https://madi-plan.com
Description: Thème enfant Flatsome pour Madi-Plan - Conversion du site React avec design identique
Author: Madi-Plan
Author URI: https://madi-plan.com
Template: flatsome
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flatsome-child-madiplan
*/

/* ========================================
   COULEURS MADI-PLAN (EXACTES DU SITE REACT)
   ======================================== */

:root {
  /* Couleurs principales */
  --madi-blue: #1e40af;           /* Bleu foncé hero et sections */
  --madi-blue-dark: #1e3a8a;      /* Bleu encore plus foncé */
  --madi-blue-light: #3b82f6;     /* Bleu clair accents */
  --madi-orange: #f97316;         /* Orange boutons CTA */
  --madi-orange-hover: #ea580c;   /* Orange hover */
  --madi-green: #10b981;          /* Vert badges/accents */
  --madi-yellow: #fbbf24;         /* Jaune/doré texte hero */
  
  /* Couleurs grises */
  --madi-gray-50: #f9fafb;
  --madi-gray-100: #f3f4f6;
  --madi-gray-600: #4b5563;
  --madi-gray-900: #111827;
  
  /* Couleurs sémantiques */
  --color-primary: var(--madi-blue);
  --color-secondary: var(--madi-orange);
  --color-accent: var(--madi-green);
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--madi-gray-900);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--madi-gray-900);
  line-height: 1.2;
}

/* ========================================
   HEADER - RESPONSIVE
   ======================================== */

.header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  padding: 0.75rem 0;
  transition: padding 0.3s ease;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-nav .nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.5rem;
}

.header-nav .nav > li > a {
  color: var(--madi-gray-900);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.header-nav .nav > li > a:hover {
  color: var(--madi-blue);
  background-color: rgba(59, 130, 246, 0.1);
}

/* Téléphone dans le header */
.header-contact-phone {
  color: var(--madi-blue);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-contact-phone:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Menu mobile toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--madi-gray-900);
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* Optimisation pour les écrans tactiles */
@media (pointer: coarse) {
  .header-nav .nav > li > a,
  .header-contact-phone,
  .mobile-menu-toggle {
    min-height: 48px;
    min-width: 48px;
  }
}

/* Responsive header */
@media (max-width: 767px) {
  .header-main {
    padding: 0.5rem 0;
  }
  
  .header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-nav .nav {
    flex-direction: column;
    width: 100%;
    gap: 0;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: none;
  }
  
  .header-nav .nav.show {
    display: flex;
  }
  
  .header-nav .nav > li {
    width: 100%;
  }
  
  .header-nav .nav > li > a {
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .header-nav .nav > li:last-child > a {
    border-bottom: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-contact-phone {
    font-size: 0.95rem;
    padding: 0.6rem;
  }
}

@media (min-width: 768px) {
  .header-nav .nav {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}

/* ========================================
   BOUTONS CTA (STYLE REACT) - RESPONSIVE
   ======================================== */

.button.primary,
.button-primary,
.btn-primary {
  background-color: var(--madi-orange) !important;
  color: #ffffff !important;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  transition: all 0.3s ease;
  border: none;
  text-transform: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.2;
}

.button.primary:hover,
.button-primary:hover,
.btn-primary:hover {
  background-color: var(--madi-orange-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.button.secondary,
.button-secondary {
  background-color: var(--madi-green) !important;
  color: #ffffff !important;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  transition: all 0.3s ease;
  border: none;
  text-transform: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.2;
}

.button.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.button.outline,
.button-outline {
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.2;
}

.button.outline:hover {
  background-color: #ffffff !important;
  color: var(--madi-blue) !important;
  transform: translateY(-2px);
}

/* Optimisation pour les écrans tactiles */
@media (pointer: coarse) {
  .button.primary,
  .button-primary,
  .btn-primary,
  .button.secondary,
  .button-secondary,
  .button.outline,
  .button-outline {
    min-height: 48px;
    padding: 0.75rem 1.4rem;
  }
}

/* ========================================
   HERO SECTION (STYLE REACT)
   ======================================== */

.hero-section {
  background: linear-gradient(135deg, var(--madi-blue) 0%, var(--madi-blue-dark) 100%);
  color: #ffffff;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: var(--madi-yellow);
  font-weight: 500;
}

/* Badges Hero (3 badges verts) - Responsive */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(16, 185, 129, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-width: 100%;
  text-align: center;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.hero-badge-icon {
  width: 20px;
  height: 20px;
  color: var(--madi-green);
  flex-shrink: 0;
}

.hero-badge-text {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Boutons Hero (4 boutons) - Responsive */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

/* Mode colonne pour très petits écrans */
@media (max-width: 479px) {
  .hero-badges {
    gap: 0.75rem;
  }
  
  .hero-badge {
    padding: 0.5rem 1rem;
    gap: 0.4rem;
  }
  
  .hero-badge-icon {
    width: 18px;
    height: 18px;
  }
  
  .hero-badge-text {
    font-size: 0.8rem;
  }
}

/* ========================================
   SECTIONS STATISTIQUES - RESPONSIVE
   ======================================== */

.stats-section {
  padding: 3rem 0;
  background-color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
  align-items: center;
}

.stat-item {
  padding: 1.5rem 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--madi-blue);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--madi-gray-600);
  font-weight: 500;
  line-height: 1.3;
}

/* Responsive pour tablettes et desktop */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .stat-item {
    padding: 2rem 1rem;
  }
  
  .stat-number {
    font-size: 2.25rem;
  }
  
  .stat-label {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .stats-section {
    padding: 4rem 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .stat-item {
    padding: 2rem 1rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* Mode mobile portrait - 1 colonne */
@media (max-width: 479px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.25rem 0.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* ========================================
   SECTIONS SERVICES
   ======================================== */

.services-section {
  padding: 4rem 0;
  background-color: var(--madi-gray-50);
}

.service-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--madi-blue) 0%, var(--madi-blue-light) 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--madi-gray-900);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--madi-gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ========================================
   TÉMOIGNAGES
   ======================================== */

.testimonials-section {
  padding: 4rem 0;
  background-color: #ffffff;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 100%;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--madi-orange);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial-text {
  font-size: 1.125rem;
  color: var(--madi-gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-name {
  font-weight: 600;
  color: var(--madi-gray-900);
}

.testimonial-author-role {
  font-size: 0.875rem;
  color: var(--madi-gray-600);
}

/* ========================================
   POURQUOI NOUS CHOISIR
   ======================================== */

.why-choose-section {
  padding: 4rem 0;
  background-color: var(--madi-gray-50);
}

.why-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.why-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.why-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--madi-blue) 0%, var(--madi-blue-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #ffffff;
  font-size: 2rem;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--madi-gray-900);
  margin-bottom: 1rem;
}

.why-description {
  color: var(--madi-gray-600);
  line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: #1f2937;
  color: #ffffff;
  padding: 3rem 0 1rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--madi-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ========================================
   SECTION TITRES
   ======================================== */

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--madi-gray-900);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--madi-gray-600);
  text-align: center;
  margin-bottom: 3rem;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Très petits écrans (< 480px) - Mobile strict */
@media (max-width: 479px) {
  /* Hero Section */
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .hero-badges {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-badge {
    padding: 0.5rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
  
  .hero-badge-icon {
    width: 20px;
    height: 20px;
  }
  
  .hero-badge-text {
    font-size: 0.8rem;
  }
  
  .hero-buttons {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  /* Boutons optimisés pour mobile */
  .button.primary,
  .button-primary,
  .btn-primary,
  .button.secondary,
  .button-secondary,
  .button.outline,
  .button-outline {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Statistiques */
  .stats-section {
    padding: 2rem 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.5rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Services */
  .services-section {
    padding: 2rem 0;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .service-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  /* Témoignages */
  .testimonials-section {
    padding: 2rem 0;
  }
  
  .testimonial-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  /* Pourquoi nous choisir */
  .why-choose-section {
    padding: 2rem 0;
  }
  
  .why-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .why-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .why-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .why-description {
    font-size: 0.9rem;
  }
  
  /* Header */
  .header-main {
    padding: 0.75rem 0;
  }
  
  .header-contact-phone {
    font-size: 1rem;
  }
  
  .header-nav .nav > li > a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  /* Container */
  .container {
    padding: 0 0.75rem;
  }
}

/* Petits écrans (480px - 639px) - Mobile plus grand */
@media (min-width: 480px) and (max-width: 639px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .button.primary,
  .button-primary,
  .btn-primary,
  .button.secondary,
  .button-secondary,
  .button.outline,
  .button-outline {
    padding: 0.65rem 1.3rem;
    font-size: 0.95rem;
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
}

/* Moyens écrans (640px - 767px) - Tablette portrait */
@media (min-width: 640px) and (max-width: 767px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
  }
  
  .button.primary,
  .button-primary,
  .btn-primary,
  .button.secondary,
  .button-secondary,
  .button.outline,
  .button-outline {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stats-section,
  .services-section,
  .testimonials-section,
  .why-choose-section {
    padding: 3rem 0;
  }
}

/* Tablettes (768px - 1023px) - Tablette et petit laptop */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-badges {
    gap: 1.5rem;
    margin-bottom: 1.75rem;
  }
  
  .hero-badge {
    padding: 0.75rem 1.25rem;
  }
  
  .hero-buttons {
    gap: 1rem;
    margin-top: 1.75rem;
  }
  
  .button.primary,
  .button-primary,
  .btn-primary,
  .button.secondary,
  .button-secondary,
  .button.outline,
  .button-outline {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 180px;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .services-section {
    padding: 3.5rem 0;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
  
  .why-choose-section {
    padding: 3.5rem 0;
  }
  
  .why-icon {
    width: 75px;
    height: 75px;
    font-size: 1.8rem;
  }
}

/* Ordinateurs (1024px+) - Desktop et grands écrans */
@media (min-width: 1024px) {
  .hero-section {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-badges {
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .button.primary,
  .button-primary,
  .btn-primary,
  .button.secondary,
  .button-secondary,
  .button.outline,
  .button-outline {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 200px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .services-section {
    padding: 4rem 0;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .testimonials-section {
    padding: 4rem 0;
  }
  
  .why-choose-section {
    padding: 4rem 0;
  }
  
  .why-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .footer {
    padding: 3rem 0 1rem;
  }
}

/* Très grands écrans (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  .stat-number {
    font-size: 3.25rem;
  }
}

/* ========================================
   AMÉLIORATIONS INTERACTIVES ET FORMULAIRES
   ======================================== */

/* Optimisation pour les éléments interactifs */
@media (hover: none) and (pointer: coarse) {
  /* Suppression des effets hover sur mobile */
  .service-card:hover,
  .testimonial-card:hover,
  .why-card:hover,
  .stat-item:hover {
    transform: none;
    box-shadow: inherit;
  }
  
  /* Amélioration des boutons sur mobile */
  .button.primary:hover,
  .button-primary:hover,
  .btn-primary:hover,
  .button.secondary:hover,
  .button-secondary:hover,
  .button.outline:hover,
  .button-outline:hover {
    transform: none;
  }
  
  /* Effet de pression pour les boutons mobiles */
  .button:active {
    transform: scale(0.98);
  }
}

/* Focus states pour l'accessibilité */
.button:focus,
.header-nav .nav > li > a:focus,
.header-contact-phone:focus {
  outline: 2px solid var(--madi-blue);
  outline-offset: 2px;
}

/* Amélioration des formulaires pour mobile */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  font-size: 16px; /* Évite le zoom sur iOS */
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
  width: 100%;
  min-height: 48px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--madi-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Labels responsive */
label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--madi-gray-900);
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  label {
    font-size: 0.9rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    padding: 0.75rem 0.875rem;
    min-height: 44px;
    font-size: 16px;
  }
}

/* Amélioration des liens */
a {
  transition: all 0.3s ease;
  color: var(--madi-blue);
  text-decoration: none;
}

a:hover {
  color: var(--madi-blue-dark);
  text-decoration: underline;
}

@media (max-width: 767px) {
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
  }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--madi-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
  .header,
  .hero-section,
  .footer {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .hero-buttons,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
  :root {
    --madi-gray-50: #1f2937;
    --madi-gray-100: #374151;
    --madi-gray-600: #d1d5db;
    --madi-gray-900: #f9fafb;
  }
  
  .header {
    background-color: #1f2937;
    color: #f9fafb;
  }
  
  .stats-section,
  .testimonials-section {
    background-color: #1f2937;
    color: #f9fafb;
  }
}

/* ========================================
   CONTAINER ET UTILITAIRES RESPONSIVE
   ======================================== */

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Conteneurs responsive */
@media (min-width: 480px) {
  .container {
    max-width: 480px;
    padding: 0 1.25rem;
  }
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding: 0 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
    padding: 0 2.5rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
    padding: 0 3rem;
  }
}

/* Utilitaires de base */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Marges responsive */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }

/* Paddings responsive */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Grilles responsive */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  flex: 1;
  padding: 0 0.75rem;
}

/* Colonnes responsives */
.col-12 { width: 100%; }
.col-11 { width: 91.666667%; }
.col-10 { width: 83.333333%; }
.col-9 { width: 75%; }
.col-8 { width: 66.666667%; }
.col-7 { width: 58.333333%; }
.col-6 { width: 50%; }
.col-5 { width: 41.666667%; }
.col-4 { width: 33.333333%; }
.col-3 { width: 25%; }
.col-2 { width: 16.666667%; }
.col-1 { width: 8.333333%; }

/* Breakpoints pour les grilles */
@media (max-width: 639px) {
  .col-sm-12 { width: 100%; }
  .col-sm-6 { width: 50%; }
  .col-sm-4 { width: 33.333333%; }
  .col-sm-3 { width: 25%; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .col-md-12 { width: 100%; }
  .col-md-6 { width: 50%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-3 { width: 25%; }
}

@media (min-width: 1024px) {
  .col-lg-12 { width: 100%; }
  .col-lg-6 { width: 50%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-3 { width: 25%; }
}

/* Flexbox utilities */
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* Responsive flexbox */
@media (max-width: 767px) {
  .row {
    flex-direction: column;
  }
  
  .col {
    width: 100% !important;
    margin-bottom: 1rem;
  }
  
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .d-sm-flex { display: flex; }
}

@media (min-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
}

/* Responsive typography */
@media (max-width: 479px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  h4 { font-size: 1rem; }
  h5 { font-size: 0.9rem; }
  h6 { font-size: 0.8rem; }
}

@media (min-width: 480px) and (max-width: 767px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1.125rem; }
}
