/* ===== RESPONSIVE CSS - SMARTPREST ===== */

/* ===== VARIABLES RESPONSIVES ===== */
:root {
  --header-height: 70px;
  --section-padding-mobile: 3rem 0;
  --container-padding-mobile: 0 1rem;
}

/* ===== GRANDS ECRANS (Desktop > 1440px) ===== */
@media screen and (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== TABLETTES LANDSCAPE (1024px - 1439px) ===== */
@media screen and (max-width: 1439px) and (min-width: 1024px) {
  .container {
    max-width: 1000px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-content {
    gap: 3rem;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }
}

/* ===== TABLETTES PORTRAIT (768px - 1023px) ===== */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: var(--container-padding-mobile);
  }
  
  /* Header */
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .cta-nav {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* Hero Section */
  .hero {
    padding: 10rem 0 6rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  /* Typographie */
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  /* Sections */
  .services-section,
  .about-section,
  .solutions-section,
  .testimonials-section {
    padding: 5rem 0;
  }
  
  .stats-section,
  .partners-section {
    padding: 3rem 0;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-features {
    justify-content: center;
  }
  
  .about-image::before {
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
  }
  
  /* Solutions Grid */
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Testimonials */
  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-column:first-child {
    grid-column: 1 / -1;
  }
  
  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== SMARTPHONES LANDSCAPE (576px - 767px) ===== */
@media screen and (max-width: 767px) and (min-width: 576px) {
  .container {
    max-width: 540px;
    padding: var(--container-padding-mobile);
  }
  
  /* Header */
  .navbar {
    padding: 0.75rem 0;
  }
  
  .logo-img {
    height: 35px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .cta-nav {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  /* Hero Section */
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Typographie */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  /* Sections */
  .services-section,
  .about-section,
  .solutions-section,
  .testimonials-section,
  .cta-section {
    padding: var(--section-padding-mobile);
  }
  
  .stats-section,
  .partners-section {
    padding: 2rem 0;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-text h2 {
    font-size: 2rem;
  }
  
  .about-image img {
    height: 400px;
  }
  
  .about-image::before {
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
  }
  
  .about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Solutions Grid */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .solution-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .solution-actions .btn {
    width: 100%;
  }
  
  /* Testimonials */
  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  /* Partners Grid */
  .partners-container {
    padding: 0 40px;
  }
  
  .partners-carousel {
    gap: 40px;
  }
  
  .partner-logo {
    min-width: 120px;
    height: 80px;
  }
  
  .carousel-controls {
    gap: 1rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  /* CTA Section */
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .contact-info {
    align-items: center;
  }
  
  .contact-item {
    justify-content: center;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Back to Top */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* ===== SMARTPHONES PORTRAIT (320px - 575px) ===== */
@media screen and (max-width: 575px) {
  .container {
    padding: 0 1rem;
  }
  
  /* Header */
  .header {
    height: var(--header-height);
    background: var(--bg-white) !important;
    backdrop-filter: none !important;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .logo-img {
    height: 30px;
  }
  
  .menu-toggle {
    font-size: 1.25rem;
    display: block;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid var(--border-light);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .nav-links a.active {
    color: var(--primary-blue);
    font-weight: 600;
  }
  
  .cta-nav {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--text-white) !important;
    border-radius: var(--radius-md);
  }
  
  /* Hero Section */
  .hero {
    padding: 7rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%) !important;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-white);
  }
  
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }
  
  /* Typographie */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
    background: var(--bg-white);
  }
  
  .stat-number {
    font-size: 2rem;
    color: var(--primary-blue);
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
    background: var(--bg-white);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  }
  
  .service-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
  }
  
  .service-card p {
    color: var(--text-gray);
  }
  
  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
  }
  
  .about-text p {
    color: var(--text-gray);
  }
  
  .about-image img {
    height: 300px;
  }
  
  .about-image::before {
    display: none;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .feature {
    justify-content: center;
  }
  
  .feature i {
    color: var(--accent-green);
  }
  
  .feature span {
    color: var(--text-dark);
  }
  
  /* Solutions */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .solution-image {
    height: 180px;
  }
  
  .solution-content {
    padding: 1.25rem;
    background: var(--bg-white);
  }
  
  .solution-content h3 {
    color: var(--text-dark);
  }
  
  .solution-content p {
    color: var(--text-gray);
  }
  
  /* Testimonials */
  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .testimonial-card {
    padding: 1.25rem;
    background: var(--bg-white);
  }
  
  .testimonial-text {
    color: var(--text-gray);
  }
  
  .testimonial-text::before {
    font-size: 2rem;
    top: -0.5rem;
    left: -0.5rem;
    color: var(--accent-green);
  }
  
  .author-info strong {
    color: var(--text-dark);
  }
  
  .author-info span {
    color: var(--text-gray);
  }
  
  /* Partners */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .partner-logo {
    padding: 1rem;
    background: var(--bg-white);
  }
  
  .partner-logo img {
    height: 35px;
  }
  
  /* CTA Section */
  .cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%) !important;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
    color: var(--text-white);
  }
  
  .cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }
  
  /* Map */
  .map-container iframe {
    height: 300px;
  }
  
  /* ===== FOOTER OPTIMISÉ MOBILE ===== */
  .footer {
    padding: 2rem 0 1rem;
    background: var(--bg-dark) !important;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-column:first-child {
    order: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
  }
  
  .footer-column:nth-child(2) {
    order: 2;
  }
  
  .footer-column:nth-child(3) {
    order: 3;
  }
  
  .footer-column:last-child {
    order: 4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
  }
  
  .footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-light);
  }
  
  .footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    font-weight: 600;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-links li {
    margin-bottom: 0;
  }
  
  .footer-links a {
    display: block;
    padding: 0.875rem 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  
  .footer-links a:hover {
    color: var(--accent-green);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
  }
  
  .contact-item i {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
  }
  
  .social-links a:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
  }
  
  .copyright {
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
  }
  
  .copyright i {
    margin: 0 0.25rem;
    color: #ff6b6b;
  }
  
  /* Back to Top */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
    background: var(--primary-blue);
    color: var(--text-white);
  }
  
  /* Body et couleurs globales */
  body {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
  }
  
  /* Sections avec fond clair */
  .services-section,
  .about-section,
  .solutions-section,
  .testimonials-section {
    background: var(--bg-white) !important;
  }
  
  .stats-section,
  .approach-section,
  .comparison-section {
    background: var(--bg-light) !important;
  }
  
  /* Garantir la visibilité du contenu */
  .section-header h2 {
    color: var(--text-dark);
  }
  
  .section-header p {
    color: var(--text-gray);
  }
}

/* ===== TRÈS PETITS ÉCRANS (max-width: 320px) ===== */
@media screen and (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .services-grid,
  .solutions-grid,
  .testimonials-slider {
    gap: 0.75rem;
  }
  
  .service-card,
  .solution-card,
  .testimonial-card {
    padding: 1.25rem 0.75rem;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ORIENTATION PAYSAGE SUR MOBILE ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .nav-links {
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .about-image img {
    height: 250px;
  }
}

/* ===== MODE HAUTE CONTRASTE ===== */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0000FF;
    --accent-green: #008000;
    --text-dark: #000000;
    --border-light: #000000;
  }
  
  .service-card,
  .solution-card,
  .testimonial-card {
    border: 2px solid var(--border-light);
  }
}

/* ===== MODE SOMBRE DÉSACTIVÉ - CONSERVATION DES COULEURS ORIGINALES ===== */
/* Les couleurs restent celles définies dans :root de style.css */
/* 
:root {
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC; 
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --border-light: #E5E7EB;
}
*/

/* ===== TOUCH DEVICES OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .solution-card:hover,
  .partner-logo:hover {
    transform: none;
  }
  
  .nav-links a:hover::after {
    display: none;
  }
  
  /* Améliore la taille des zones cliquables sur mobile */
  .nav-links a,
  .btn,
  .service-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== IMPRESSION ===== */
@media print {
  .header,
  .footer,
  .back-to-top,
  .cta-section,
  .map-section {
    display: none;
  }
  
  .hero {
    background: none !important;
    color: #000;
    padding: 1rem 0;
  }
  
  .container {
    max-width: none;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .btn {
    border: 1px solid #000;
    background: none;
    color: #000;
  }
}

/* ========================================== RESPONSIVE DE LA PAGE À PROPOS ============================================= */

/* Tablettes */
@media screen and (max-width: 1023px) {
  .about-hero {
    padding: 8rem 0 4rem;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .commitment-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-year {
    left: -3rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Smartphones */
@media screen and (max-width: 767px) {
  .about-hero .hero-title {
    font-size: 2rem;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline-year {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .mission-card {
    padding: 2rem 1.5rem;
  }
  
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .commitment-point {
    flex-direction: column;
    text-align: center;
  }
  
  .commitment-image img {
    height: 300px;
  }
  
  .commitment-image::before {
    display: none;
  }
}

/* ========================================== RESPONSIVE PAGE CONTACT ========================================== */

/* Tablettes Landscape (1024px - 1439px) */
@media screen and (max-width: 1439px) and (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .location-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablettes Portrait (768px - 1023px) */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .contact-hero {
    padding: 8rem 0 4rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form-section {
    position: static;
  }
  
  .location-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .social-links-large {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Smartphones Landscape (576px - 767px) */
@media screen and (max-width: 767px) and (min-width: 576px) {
  .contact-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .method-icon {
    margin: 0 auto 1rem;
  }
  
  .phone-numbers,
  .email-addresses {
    align-items: center;
  }
  
  .contact-form-section {
    padding: 2rem 1.5rem;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .location-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .faq-question {
    padding: 1.25rem 1rem;
  }
  
  .faq-question h4 {
    font-size: 1rem;
  }
}

/* Smartphones Portrait (320px - 575px) */
@media screen and (max-width: 575px) {
  .contact-hero {
    padding: 7rem 0 3rem;
  }
  
  .contact-hero .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .contact-hero .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }
  
  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .contact-trust-section,
  .contact-main-section,
  .location-section,
  .contact-faq-section {
    padding: 3rem 0;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-methods {
    gap: 1rem;
  }
  
  .contact-method {
    padding: 1.25rem 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .method-icon {
    margin: 0 auto 1rem;
  }
  
  .method-content h3 {
    font-size: 1.1rem;
  }
  
  .social-links-large {
    grid-template-columns: 1fr;
  }
  
  .contact-form-section {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }
  
  .form-header h3 {
    font-size: 1.25rem;
  }
  
  .form-section h4 {
    font-size: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-checkboxes {
    gap: 0.75rem;
  }
  
  .location-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .location-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .location-details {
    gap: 1rem;
  }
  
  .location-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .faq-grid {
    gap: 0.75rem;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .faq-question h4 {
    font-size: 0.9rem;
    margin-right: 1rem;
  }
  
  .faq-answer {
    padding: 0 1rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1rem 1rem;
  }
}

/* Très petits écrans (max-width: 320px) */
@media screen and (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .contact-hero .hero-title {
    font-size: 1.75rem;
  }
  
  .contact-form-section {
    padding: 1.25rem 0.75rem;
  }
  
  .contact-method {
    padding: 1rem 0.75rem;
  }
  
  .form-control {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
}

/* Orientation Paysage sur Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .contact-hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .contact-form-section {
    position: static;
  }
  
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-buttons .btn {
    width: auto;
    min-width: 150px;
  }
}

/* Mode Haute Contraste */
@media (prefers-contrast: high) {
  .contact-method,
  .trust-card,
  .contact-form-section,
  .faq-item {
    border: 2px solid var(--border-light);
  }
  
  .form-control:focus {
    border-width: 2px;
  }
}

/* Mode Sombre (si activé) */
@media (prefers-color-scheme: dark) {
  .contact-form-section,
  .trust-card,
  .contact-method {
    background: var(--bg-white);
    border-color: var(--border-light);
  }
}

/* Touch Devices Optimization */
@media (hover: none) and (pointer: coarse) {
  .contact-method:hover,
  .trust-card:hover {
    transform: none;
  }
  
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .social-link {
    min-height: 44px;
  }
  
  .phone-link,
  .email-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Impression */
@media print {
  .contact-hero {
    background: none !important;
    color: #000;
    padding: 2rem 0;
  }
  
  .hero-buttons,
  .social-contact,
  .map-container {
    display: none;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ================================================ RESPONSIVE PAGE SERVICES ============================================= */

/* Tablettes Landscape (1024px - 1439px) */
@media screen and (max-width: 1439px) and (min-width: 1024px) {
  .service-detailed {
    gap: 3rem;
  }
  
  .includes-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 2rem;
  }
}

/* Tablettes Portrait (768px - 1023px) */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .services-hero {
    padding: 8rem 0 4rem;
  }
  
  .service-detailed {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
  
  .service-detailed:nth-child(even) .service-content,
  .service-detailed:nth-child(even) .service-visual {
    order: unset;
  }
  
  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1.25rem 1.5rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Smartphones Landscape (576px - 767px) */
@media screen and (max-width: 767px) and (min-width: 576px) {
  .services-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .approach-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-content h3 {
    font-size: 1.75rem;
  }
  
  .service-tagline {
    font-size: 1.1rem;
  }
  
  .includes-grid {
    grid-template-columns: 1fr;
  }
  
  .service-cta {
    flex-direction: column;
  }
  
  .service-cta .btn {
    width: 100%;
    text-align: center;
  }
  
  .visual-card img {
    height: 300px;
  }
  
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .comparison-criteria {
    font-weight: 600;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
  }
}

/* Smartphones Portrait (320px - 575px) */
@media screen and (max-width: 575px) {
  .services-hero {
    padding: 7rem 0 3rem;
  }
  
  .services-hero .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .services-hero .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .hero-stat {
    flex: 1;
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .approach-section,
  .services-detailed-section,
  .comparison-section,
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .service-detailed {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
  }
  
  .service-content h3 {
    font-size: 1.5rem;
  }
  
  .service-tagline {
    font-size: 1rem;
  }
  
  .feature {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .visual-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
  
  .cta-features {
    gap: 1rem;
  }
  
  .cta-feature {
    font-size: 0.8rem;
  }
}

/* Très petits écrans (max-width: 320px) */
@media screen and (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .service-detailed {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }
  
  .service-content h3 {
    font-size: 1.25rem;
  }
  
  .visual-card img {
    height: 250px;
  }
  
  .comparison-header,
  .comparison-row {
    padding: 1rem;
  }
}

/* Orientation Paysage sur Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .services-hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .service-detailed {
    margin-bottom: 3rem;
  }
}

/* Mode Haute Contraste */
@media (prefers-contrast: high) {
  .service-detailed,
  .approach-step,
  .testimonial-card {
    border: 2px solid var(--border-light);
  }
  
  .comparison-row {
    border-bottom-width: 2px;
  }
}

/* Mode Sombre (si activé) */
@media (prefers-color-scheme: dark) {
  .approach-step,
  .testimonial-card,
  .comparison-table {
    background: var(--bg-white);
    border-color: var(--border-light);
  }
}

/* Touch Devices Optimization */
@media (hover: none) and (pointer: coarse) {
  .service-detailed:hover .visual-card img {
    transform: none;
  }
  
  .approach-step:hover,
  .testimonial-card:hover {
    transform: none;
  }
  
  .service-cta .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Impression */
@media print {
  .services-hero {
    background: none !important;
    color: #000;
    padding: 2rem 0;
  }
  
  .hero-stats,
  .service-cta,
  .cta-section {
    display: none;
  }
  
  .service-detailed {
    break-inside: avoid;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

/* =================================================== RESPONSIVE PAGE SOLUTIONS ================================================ */

/* Tablettes Landscape (1024px - 1439px) */
@media screen and (max-width: 1439px) and (min-width: 1024px) {
  .solution-detailed {
    gap: 3rem;
  }
  
  .hero-live-stats {
    gap: 2rem;
  }
  
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablettes Portrait (768px - 1023px) */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .solutions-hero {
    padding: 8rem 0 4rem;
  }
  
  .solution-detailed {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
  
  .solution-detailed:nth-child(even) .solution-content,
  .solution-detailed:nth-child(even) .solution-visual {
    order: unset;
  }
  
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .technologies-grid {
    grid-template-columns: 1fr;
  }
  
  .roadmap-timeline::before {
    left: 25px;
  }
  
  .roadmap-date {
    width: 50px;
    height: 50px;
    font-size: 0.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Smartphones Landscape (576px - 767px) */
@media screen and (max-width: 767px) and (min-width: 576px) {
  .solutions-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-live-stats {
    gap: 1rem;
  }
  
  .live-stat {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
  }
  
  .live-stat .stat-number {
    font-size: 1.5rem;
  }
  
  .solution-content h3 {
    font-size: 1.75rem;
  }
  
  .solution-tagline {
    font-size: 1.1rem;
  }
  
  .solution-stats {
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .feature {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .tech-stack {
    justify-content: center;
  }
  
  .solution-cta {
    flex-direction: column;
  }
  
  .solution-cta .btn {
    width: 100%;
    text-align: center;
  }
  
  .visual-card img {
    height: 300px;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  
  .case-results {
    grid-template-columns: 1fr;
  }
  
  .roadmap-timeline::before {
    left: 20px;
  }
  
  .roadmap-item {
    gap: 1rem;
  }
  
  .roadmap-date {
    width: 40px;
    height: 40px;
    font-size: 0.7rem;
  }
}

/* Smartphones Portrait (320px - 575px) */
@media screen and (max-width: 575px) {
  .solutions-hero {
    padding: 7rem 0 3rem;
  }
  
  .solutions-hero .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .solutions-hero .hero-description {
    font-size: 1rem;
  }
  
  .hero-live-stats {
    gap: 0.75rem;
  }
  
  .live-stat {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.75rem;
  }
  
  .live-stat .stat-number {
    font-size: 1.25rem;
  }
  
  .live-stat .stat-label {
    font-size: 0.7rem;
  }
  
  .guarantees-section,
  .solutions-detailed-section,
  .case-studies-section,
  .technologies-section,
  .roadmap-section,
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .guarantees-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .solution-detailed {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
  }
  
  .solution-content h3 {
    font-size: 1.5rem;
  }
  
  .solution-tagline {
    font-size: 1rem;
  }
  
  .solution-stats {
    gap: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .tech-stack {
    gap: 0.25rem;
  }
  
  .tech-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
  }
  
  .visual-card img {
    height: 250px;
  }
  
  .case-study {
    margin-bottom: 1.5rem;
  }
  
  .case-header {
    padding: 1rem;
  }
  
  .case-content {
    padding: 1rem;
  }
  
  .technologies-grid {
    gap: 1.5rem;
  }
  
  .tech-category {
    padding: 1.5rem;
  }
  
  .roadmap-timeline::before {
    display: none;
  }
  
  .roadmap-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .roadmap-date {
    align-self: center;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
  
  .cta-features {
    gap: 1rem;
  }
  
  .cta-feature {
    font-size: 0.8rem;
  }
}

/* Très petits écrans (max-width: 320px) */
@media screen and (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .solution-detailed {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }
  
  .solution-content h3 {
    font-size: 1.25rem;
  }
  
  .visual-card img {
    height: 200px;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
}

/* Orientation Paysage sur Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .solutions-hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .solution-detailed {
    margin-bottom: 3rem;
  }
}

/* Mode Haute Contraste */
@media (prefers-contrast: high) {
  .solution-detailed,
  .guarantee-card,
  .case-study,
  .tech-category,
  .testimonial-card {
    border: 2px solid var(--border-light);
  }
  
  .roadmap-content {
    border-width: 2px;
  }
}

/* Mode Sombre (si activé) */
@media (prefers-color-scheme: dark) {
  .guarantee-card,
  .case-study,
  .tech-category,
  .testimonial-card,
  .roadmap-content {
    background: var(--bg-white);
    border-color: var(--border-light);
  }
}

/* Touch Devices Optimization */
@media (hover: none) and (pointer: coarse) {
  .solution-detailed:hover .visual-card img {
    transform: none;
  }
  
  .visual-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .overlay-content {
    transform: translateY(0);
  }
  
  .guarantee-card:hover,
  .case-study:hover,
  .testimonial-card:hover,
  .roadmap-item:hover .roadmap-content {
    transform: none;
  }
  
  .solution-cta .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Impression */
@media print {
  .solutions-hero {
    background: none !important;
    color: #000;
    padding: 2rem 0;
  }
  
  .hero-live-stats,
  .solution-cta,
  .cta-section {
    display: none;
  }
  
  .solution-detailed {
    break-inside: avoid;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .visual-overlay {
    display: none;
  }
}

/* ===== CARROUSEL PARTENAIRES - DÉFILEMENT HORIZONTAL ===== */
.partners-carousel-container {
  overflow: hidden;
  position: relative;
  margin: 3rem 0;
  padding: 1rem 0;
}

.partners-track {
  display: flex;
  gap: 3rem;
  animation: scrollHorizontally 40s linear infinite;
  width: max-content;
}

.partner-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Animation de défilement */
@keyframes scrollHorizontally {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 2));
  }
}

/* Pause au survol */
.partners-carousel-container:hover .partners-track {
  animation-play-state: paused;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .partners-track {
    gap: 2rem;
    animation-duration: 20s;
  }
  
  .partner-logo {
    padding: 0.75rem 1.5rem;
  }
  
  .partner-logo img {
    height: 25px;
  }
}


/* ============================================================
   SMART PGI - RESPONSIVE
   À ajouter à la fin du fichier responsive.css
   ============================================================ */

@media (max-width: 1024px) {

    .erp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .erp-secteur-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .erp-packs-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .erp-pack-card--featured {
        transform: scale(1);
    }

    .erp-pack-card--featured:hover {
        transform: translateY(-6px);
    }

    .erp-process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .erp-process-connector {
        transform: rotate(90deg);
        margin: -10px auto;
        padding: 0;
    }

    .erp-hero-stats {
        gap: 28px;
    }
}

@media (max-width: 768px) {

    .erp-hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .erp-hero .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .erp-hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .erp-hero-stat .stat-number {
        font-size: 1.8rem;
    }

    .erp-why-section,
    .erp-secteurs-section,
    .erp-packs-section,
    .erp-process-section {
        padding: 70px 0;
    }

    .erp-why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .erp-secteur-card {
        padding: 28px 20px;
    }

    .erp-secteur-header {
        flex-direction: column;
        gap: 16px;
    }

    .erp-secteur-icon {
        width: 58px;
        height: 58px;
    }

    .erp-secteur-title h3 {
        font-size: 1.25rem;
    }

    .erp-pack-header {
        padding: 28px 22px 24px;
    }

    .pack-amount {
        font-size: 2rem;
    }

    .erp-pack-features {
        padding: 22px;
    }

    .process-step-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {

    .erp-hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .erp-hero-stat {
        align-items: center;
        text-align: center;
    }

    .erp-secteur-body {
        gap: 24px;
    }

    .erp-pack-card {
        border-radius: 16px;
    }

    .erp-pack-features {
        padding: 18px;
    }
}