/*
 * Responsive Design - Mobile First
 * Joseph Ventures - Optimisations tous écrans
 */

/* ========================================
   BREAKPOINTS SYSTÈME
   ======================================== */

/* 
  Mobile: 0-639px (base styles)
  Tablet: 640-1023px
  Desktop: 1024-1439px
  Large: 1440px+
  XL: 1920px+
*/

/* ========================================
   MOBILE (< 640px) - BASE
   ======================================== */

/* Typography mobile - Meilleures pratiques espacement */
@media (max-width: 639px) {
  html {
    font-size: 16px; /* Base standard pour meilleure lisibilité */
  }
  
  body {
    line-height: 1.85 !important; /* Augmenté encore plus pour meilleure lisibilité mobile */
  }
  
  h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important; /* Augmenté pour meilleur espacement */
    margin-bottom: 1.25rem !important; /* Augmenté */
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1.25rem !important; /* Augmenté */
  }
  
  h3 {
    font-size: 1.5rem !important;
    line-height: 1.35 !important;
    margin-bottom: 1rem !important; /* Augmenté */
  }
  
  .section-title {
    font-size: 1.875rem !important; /* 30px */
    line-height: 1.4 !important; /* Augmenté pour plus d'espacement vertical */
    margin-bottom: 2.5rem !important; /* Augmenté de 1.5rem à 2.5rem */
    margin-top: 0 !important; /* S'assurer qu'il n'y a pas de marge négative */
    padding-top: 0 !important; /* Éviter les problèmes d'espacement */
    /* Correction pour les animations */
    overflow: visible !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  .section-title--center {
    text-align: center !important;
    width: 100% !important;
  }
  
  .section-subtitle {
    font-size: 1rem !important;
    line-height: 1.8 !important; /* Augmenté de 1.6 à 1.8 */
    margin-top: 0 !important; /* Supprimé la marge négative */
    margin-bottom: 3rem !important; /* Augmenté de 2rem à 3rem */
    padding-top: 0 !important; /* Supprimé le padding */
  }
  
  .section-label {
    margin-bottom: 1.5rem !important; /* Augmenté de 1rem à 1.5rem */
    display: inline-block !important;
  }
  
  /* Paragraphes - espacement amélioré */
  p {
    margin-bottom: 2rem !important; /* Augmenté de 1.5rem à 2rem */
    line-height: 1.9 !important; /* Augmenté de 1.75 à 1.9 pour beaucoup plus d'espacement */
    /* Aérer les textes sur mobile */
    letter-spacing: 0.015em !important; /* Augmenté pour meilleure lisibilité */
    padding-right: 0.5rem !important; /* Petit padding pour éviter que le texte touche les bords */
  }
  
  p:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Espacement supplémentaire pour les paragraphes dans les sections */
  .about__text,
  .service__description {
    margin-bottom: 2.25rem !important; /* Augmenté de 1.75rem à 2.25rem */
    line-height: 2 !important; /* Augmenté de 1.8 à 2 pour beaucoup plus d'aération */
    letter-spacing: 0.02em !important; /* Augmenté encore plus */
  }
}

/* Header mobile */
@media (max-width: 639px) {
  .header {
    height: 60px;
  }
  
  .header__container {
    height: 60px;
    padding: 0 1rem;
  }
  
  .header__logo {
    font-size: 1rem;
  }
}

/* Hero mobile - Espacements améliorés */
@media (max-width: 639px) {
  .hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero__content {
    padding: 0 1.5rem;
  }
  
  .hero__title {
    font-size: 2rem !important;
    line-height: 1.3 !important; /* Ajouté */
    margin-bottom: 1.25rem !important; /* Augmenté de 1rem à 1.25rem */
  }
  
  .hero__subtitle {
    font-size: 1rem !important;
    line-height: 1.6 !important; /* Ajouté */
    margin-bottom: 1.25rem !important; /* Augmenté de 1rem à 1.25rem */
  }
  
  .hero__tagline {
    font-size: 0.9375rem !important; /* Augmenté de 0.875rem à 0.9375rem */
    line-height: 1.6 !important; /* Ajouté */
    margin-bottom: 2.5rem !important; /* Augmenté de 2rem à 2.5rem */
  }
  
  .hero__cta {
    flex-direction: column;
    width: 100%;
    gap: 1rem !important; /* Ajouté pour espacement entre boutons */
  }
  
  .hero__cta .btn {
    width: 100%;
    min-width: 0;
    margin-bottom: 0 !important; /* S'assurer qu'il n'y a pas de marge supplémentaire */
  }
}

/* Sections spacing mobile - Espacements améliorés */
@media (max-width: 639px) {
  section {
    padding: 5rem 0 !important; /* Augmenté de 4rem à 5rem pour plus d'espacement vertical */
  }
  
  .container {
    padding: 0 1.5rem !important; /* Augmenté de 1rem à 1.5rem pour meilleur espacement latéral */
  }
}

/* About mobile - Espacements améliorés */
@media (max-width: 639px) {
  .about {
    padding: 5rem 0 !important; /* Augmenté de 4rem à 5rem */
  }
  
  .about__grid {
    gap: 3rem !important; /* Augmenté de 2.5rem à 3rem */
  }
  
  .about__text {
    font-size: 1rem !important; /* Augmenté de 0.9375rem à 1rem */
    line-height: 2.1 !important; /* Augmenté de 1.8 à 2.1 pour beaucoup plus d'espacement */
    margin-bottom: 2.5rem !important; /* Augmenté de 1.75rem à 2.5rem entre paragraphes */
    /* Aérer davantage les textes */
    letter-spacing: 0.02em !important; /* Augmenté */
    padding-right: 0.75rem !important; /* Augmenté le padding */
    padding-left: 0.25rem !important; /* Ajouté padding gauche */
  }
  
  /* Titre de la section About */
  .about .section-title {
    margin-bottom: 3rem !important; /* Augmenté de 2rem à 3rem */
    margin-top: 0 !important;
    line-height: 1.5 !important; /* Augmenté pour plus d'espacement vertical */
  }
  
  .about .section-label {
    margin-bottom: 1.5rem !important; /* Augmenté de 1rem à 1.5rem */
  }
  
  .about__list {
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
  }
  
  .about__list .list__item {
    font-size: 1.0625rem !important;
  }
  
  .list__item {
    margin-bottom: 1.25rem !important; /* Augmenté */
    gap: 1rem !important; /* Augmenté */
  }
}

/* Expertises mobile - Espacements améliorés */
@media (max-width: 639px) {
  .expertises {
    padding: 4rem 0 !important; /* Augmenté */
  }
  
  .expertises__grid {
    gap: 2rem !important; /* Augmenté de 1.5rem à 2rem */
    margin-top: 2rem !important; /* Augmenté */
  }
  
  /* Titre de la section Expertises */
  .expertises .section-title {
    margin-bottom: 3rem !important; /* Augmenté de 2rem à 3rem */
    margin-top: 0 !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.5 !important; /* Augmenté pour plus d'espacement vertical */
  }
  
  .expertise-card {
    padding: 2.5rem 1.75rem !important; /* Augmenté */
  }
  
  .card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem !important; /* Augmenté de 1.25rem à 1.5rem */
  }
  
  .card__icon svg {
    width: 32px;
    height: 32px;
  }
  
  .card__title {
    font-size: 1.25rem !important; /* Augmenté de 1.125rem à 1.25rem */
    margin-bottom: 1rem !important; /* Ajouté */
    line-height: 1.35 !important;
  }
  
  .card__description {
    font-size: 0.9375rem !important; /* Augmenté de 0.875rem à 0.9375rem */
    line-height: 1.7 !important; /* Augmenté pour meilleure lisibilité */
    margin-bottom: 1.5rem !important; /* Ajouté */
  }
  
  .card__cta {
    margin-top: auto;
    padding-top: 1rem !important; /* Ajouté */
  }
}

/* Services mobile - Espacements améliorés */
@media (max-width: 639px) {
  .services {
    padding: 4rem 0 !important; /* Augmenté */
  }
  
  .service-item {
    gap: 2.5rem !important; /* Augmenté de 2rem à 2.5rem */
    margin-bottom: 4rem !important; /* Augmenté de 3rem à 4rem */
  }
  
  .service__number {
    font-size: 3rem;
    margin-bottom: 1.25rem !important; /* Augmenté de 1rem à 1.25rem */
  }
  
  .service__title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem !important; /* Ajouté */
    line-height: 1.3 !important;
    /* Correction pour éviter les problèmes d'affichage */
    overflow: visible !important;
    word-wrap: break-word !important;
  }
  
  .service__description {
    font-size: 1rem !important; /* Augmenté de 0.9375rem à 1rem */
    line-height: 2.1 !important; /* Augmenté de 1.8 à 2.1 pour beaucoup plus d'aération */
    margin-bottom: 2.5rem !important; /* Augmenté de 1.75rem à 2.5rem entre paragraphes */
    /* Aérer davantage les textes */
    letter-spacing: 0.02em !important; /* Augmenté */
    padding-right: 0.5rem !important; /* Ajouté padding */
  }
  
  /* Titre de la section Services */
  .services .section-title {
    margin-bottom: 3rem !important; /* Augmenté de 2rem à 3rem */
    margin-top: 0 !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.5 !important; /* Augmenté pour plus d'espacement vertical */
  }
  
  /* Afficher les images sur mobile avec animation */
  .service__visual {
    display: block !important;
  }
  
  .service__features {
    margin-top: 1.5rem !important; /* Ajouté */
    list-style: none !important;
    padding: 0 !important;
  }
  
  .service__features li {
    margin-bottom: 1rem !important; /* Augmenté de 0.875rem à 1rem */
    line-height: 1.7 !important;
    padding-left: 2rem !important; /* Augmenté de 0.5rem à 2rem pour plus d'espace entre puce et texte */
    position: relative;
  }
  
  /* Améliorer les puces sur mobile - plus d'espace */
  .service__features li::before {
    content: '→' !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important; /* Taille de la puce légèrement augmentée */
  }
}

/* Stats mobile - Espacements améliorés */
@media (max-width: 639px) {
  .stats {
    padding: 4rem 0 !important; /* Augmenté de 3rem à 4rem */
  }
  
  .stats__grid {
    gap: 2.5rem !important; /* Augmenté de 2rem à 2.5rem */
  }
  
  /* Titre de la section Stats */
  .stats .section-title {
    margin-bottom: 3rem !important; /* Augmenté de 2rem à 3rem */
    margin-top: 0 !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.5 !important; /* Augmenté pour plus d'espacement vertical */
  }
  
  .stat-item {
    padding: 1.5rem 0 !important; /* Ajouté */
  }
  
  .stat__number {
    font-size: 2.5rem !important;
    margin-bottom: 0.75rem !important; /* Ajouté */
    line-height: 1.2 !important;
  }
  
  .stat__label {
    font-size: 1rem;
    line-height: 1.5 !important;
  }
}

/* Portfolio mobile - Espacements améliorés */
@media (max-width: 639px) {
  .portfolio {
    padding: 4rem 0 !important; /* Augmenté */
  }
  
  /* Titre de la section Portfolio */
  .portfolio .section-title {
    margin-bottom: 1.5rem !important; /* Augmenté de 1rem à 1.5rem */
    margin-top: 0 !important;
    text-align: center !important;
    width: 100% !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important; /* Augmenté pour plus d'espacement vertical */
  }
  
  .portfolio .section-subtitle {
    margin-top: 0 !important;
    margin-bottom: 3rem !important; /* Augmenté de 2.5rem à 3rem */
    line-height: 1.7 !important; /* Augmenté */
  }
  
  .portfolio__grid {
    gap: 2rem !important; /* Augmenté de 1.5rem à 2rem */
  }
  
  .project-card {
    margin-bottom: 0;
  }
  
  .project__content {
    padding: 1.5rem !important; /* Augmenté si nécessaire */
  }
  
  .project__title {
    margin-bottom: 0.75rem !important; /* Ajouté */
    line-height: 1.3 !important;
  }
  
  .project__meta {
    gap: 1rem !important; /* Ajouté */
  }
  
  .meta__item {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
  }
}

/* Contact mobile - Espacements améliorés */
@media (max-width: 639px) {
  .contact {
    padding: 4rem 0 !important; /* Augmenté */
  }
  
  /* Titre de la section Contact */
  .contact .section-title {
    margin-bottom: 2.5rem !important; /* Augmenté de 1.5rem à 2.5rem */
    margin-top: 0 !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important; /* Augmenté pour plus d'espacement vertical */
  }
  
  .contact__grid {
    gap: 3.5rem !important; /* Augmenté de 3rem à 3.5rem */
  }
  
  .contact__info {
    text-align: center;
    margin-bottom: 1rem !important; /* Ajouté */
  }
  
  .contact__details {
    margin-bottom: 2rem !important; /* Ajouté */
  }
  
  .contact__item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem !important; /* Augmenté de 0.5rem à 0.75rem */
    margin-bottom: 1.5rem !important; /* Ajouté */
  }
  
  .contact__form-wrapper {
    padding: 2.5rem 1.75rem !important; /* Augmenté */
  }
  
  .form__row {
    grid-template-columns: 1fr;
    gap: 1.5rem !important; /* Ajouté si nécessaire */
  }
  
  .form__group {
    margin-bottom: 1.5rem !important; /* Augmenté */
  }
  
  .form__label {
    margin-bottom: 0.75rem !important; /* Augmenté */
    font-size: 0.9375rem !important;
  }
  
  .form__input,
  .form__select,
  .form__textarea {
    padding: 0.875rem 1rem !important; /* Augmenté pour meilleur touch target */
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  .form__textarea {
    min-height: 120px !important; /* Augmenté */
  }
  
  .form__checkbox-label {
    line-height: 1.6 !important;
    padding-left: 0.5rem !important; /* Ajouté */
  }
}

/* Footer mobile - Espacements améliorés */
@media (max-width: 639px) {
  .footer {
    padding: 4rem 0 2rem !important; /* Augmenté de 3rem à 4rem */
  }
  
  .footer__grid {
    gap: 2.5rem !important; /* Augmenté de 2rem à 2.5rem */
  }
  
  .footer__column {
    margin-bottom: 1.5rem !important; /* Ajouté */
  }
  
  .footer__logo {
    font-size: 1.125rem;
    margin-bottom: 1rem !important; /* Ajouté */
  }
  
  .footer__tagline {
    margin-bottom: 1rem !important; /* Ajouté */
    line-height: 1.6 !important;
  }
  
  .footer__description {
    margin-bottom: 1.5rem !important; /* Ajouté */
    line-height: 1.7 !important;
  }
  
  .footer__title {
    margin-bottom: 1.25rem !important; /* Ajouté */
    line-height: 1.3 !important;
  }
  
  .footer__list {
    gap: 0.875rem !important; /* Ajouté */
  }
  
  .footer__list li {
    margin-bottom: 0.75rem !important; /* Ajouté */
  }
  
  .footer__link {
    line-height: 1.6 !important;
    padding: 0.25rem 0 !important; /* Ajouté pour meilleur touch target */
  }
}

/* Buttons mobile - Meilleurs espacements */
@media (max-width: 639px) {
  .btn {
    min-height: 48px; /* Touch target WCAG 2.2 */
    padding: 0.875rem 1.75rem !important; /* Augmenté de 0.75rem 1.5rem */
    font-size: 1rem !important; /* Assurer taille lisible */
    line-height: 1.5 !important;
    border-radius: var(--radius-md);
  }
  
  .btn--large {
    min-height: 52px;
    padding: 1.125rem 2.25rem !important; /* Augmenté de 1rem 2rem */
    font-size: 1.0625rem !important;
  }
  
  .btn--small {
    min-height: 44px;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
  }
  
  /* Espacement entre boutons */
  .btn + .btn {
    margin-left: 0;
    margin-top: 1rem; /* Si boutons empilés */
  }
}

/* ========================================
   IPHONE SPÉCIFIQUE (375px - 414px)
   ======================================== */

@media (min-width: 375px) and (max-width: 414px) {
  /* Optimisations spécifiques iPhone */
  .container {
    padding: 0 1.5rem !important;
  }
  
  /* Meilleur espacement pour iPhone */
  section {
    padding: 4rem 0 !important;
  }
  
  .hero__title {
    font-size: 2.25rem !important; /* Légèrement plus grand sur iPhone */
  }
  
  /* Espacements améliorés pour cartes */
  .expertise-card {
    padding: 2.5rem 2rem !important;
  }
  
  .service-item {
    gap: 2.5rem !important;
  }
}

/* ========================================
   TABLET (640px - 1023px)
   ======================================== */

@media (min-width: 640px) and (max-width: 1023px) {
  /* Container tablet */
  .container {
    padding: 0 2rem;
  }
  
  /* Typography tablet - meilleurs espacements */
  body {
    line-height: 1.7 !important; /* Légèrement augmenté */
  }
  
  p {
    margin-bottom: 1.5rem !important;
    line-height: 1.75 !important;
  }
  
  /* Hero tablet */
  .hero__title {
    font-size: 3rem;
    line-height: 1.25 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero__tagline {
    margin-bottom: 2.5rem !important;
  }
  
  /* Sections spacing */
  section {
    padding: 5rem 0;
  }
  
  /* Expertises tablet - 2 colonnes */
  .expertises__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem !important; /* Augmenté de 2rem */
  }
  
  .expertise-card {
    padding: 2.5rem 2rem !important; /* Augmenté */
  }
  
  .card__description {
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Services tablet */
  .service-item {
    gap: 3.5rem !important; /* Augmenté de 3rem */
    margin-bottom: 4.5rem !important;
  }
  
  .service__description {
    line-height: 1.75 !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Portfolio tablet - 2 colonnes */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem !important; /* Augmenté de 2rem */
  }
  
  /* Contact tablet */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem !important; /* Augmenté de 3rem */
  }
  
  /* Footer tablet */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem !important; /* Augmenté de 3rem */
  }
  
  .footer__column {
    margin-bottom: 2rem !important;
  }
}

/* ========================================
   DESKTOP (1024px - 1439px)
   ======================================== */

@media (min-width: 1024px) and (max-width: 1439px) {
  /* Container desktop */
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }
  
  /* Expertises desktop - 4 colonnes */
  .expertises__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Portfolio desktop - 3 colonnes */
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   LARGE DESKTOP (1440px - 1919px)
   ======================================== */

@media (min-width: 1440px) and (max-width: 1919px) {
  .container {
    max-width: 1400px;
  }
  
  .hero__title {
    font-size: 4rem;
  }
  
  section {
    padding: 8rem 0;
  }
}

/* ========================================
   XL DESKTOP (1920px+)
   ======================================== */

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  
  .hero__title {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
  
  section {
    padding: 10rem 0;
  }
  
  /* Espacements augmentés */
  .expertises__grid {
    gap: 3rem;
  }
  
  .portfolio__grid {
    gap: 3rem;
  }
}

/* ========================================
   LANDSCAPE MOBILE (Smartphones horizontaux)
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }
  
  .hero__title {
    font-size: 2rem !important;
    margin-bottom: 1rem !important; /* Augmenté de 0.75rem */
    line-height: 1.3 !important;
  }
  
  .hero__subtitle {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important; /* Augmenté de 0.5rem */
    line-height: 1.6 !important;
  }
  
  .hero__tagline {
    font-size: 0.9375rem !important; /* Augmenté de 0.875rem */
    margin-bottom: 2rem !important; /* Augmenté de 1.5rem */
    line-height: 1.6 !important;
  }
  
  .hero__cta {
    gap: 1rem;
  }
  
  .hero__scroll {
    display: none;
  }
  
  /* Sections avec espacement réduit mais toujours confortable */
  section {
    padding: 3rem 0 !important;
  }
}

/* ========================================
   TABLETTE LANDSCAPE (iPad, etc.)
   ======================================== */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .hero__title {
    margin-bottom: 1.5rem !important;
  }
  
  .hero__subtitle {
    margin-bottom: 1.5rem !important;
  }
  
  .hero__tagline {
    margin-bottom: 2.5rem !important;
  }
  
  .expertises__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem !important;
  }
  
  .service-item {
    gap: 3rem !important; /* Augmenté de 2rem */
    margin-bottom: 4rem !important;
  }
  
  /* Meilleurs espacements pour texte */
  p {
    margin-bottom: 1.5rem !important;
    line-height: 1.75 !important;
  }
}

/* ========================================
   IPAD PORTRAIT (768px - 1023px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .container {
    padding: 0 2.5rem !important; /* Plus d'espace latéral sur iPad */
  }
  
  section {
    padding: 5.5rem 0 !important; /* Légèrement plus */
  }
  
  .expertises__grid {
    gap: 2.5rem !important;
  }
  
  .portfolio__grid {
    gap: 2.5rem !important;
  }
}

/* ========================================
   TRÈS PETITS ÉCRANS (< 375px) - iPhone SE, etc.
   ======================================== */

@media (max-width: 374px) {
  html {
    font-size: 15px; /* Augmenté de 13px à 15px pour meilleure lisibilité */
  }
  
  body {
    line-height: 1.8 !important; /* Encore plus d'espacement pour très petits écrans */
  }
  
  .hero__title {
    font-size: 1.75rem !important;
    margin-bottom: 1rem !important;
  }
  
  .container {
    padding: 0 1.25rem !important; /* Augmenté de 0.75rem à 1.25rem */
  }
  
  .header__logo {
    font-size: 0.875rem;
  }
  
  .btn {
    font-size: 0.9375rem !important; /* Augmenté de 0.875rem */
    padding: 0.875rem 1.5rem !important; /* Augmenté */
    min-height: 48px !important;
  }
  
  /* Sections avec plus d'espacement */
  section {
    padding: 3.5rem 0 !important;
  }
  
  /* Paragraphes avec plus d'espacement */
  p {
    margin-bottom: 1.5rem !important;
    line-height: 1.8 !important;
  }
}

/* ========================================
   TRÈS GRANDS ÉCRANS (2560px+, 4K)
   ======================================== */

@media (min-width: 2560px) {
  .container {
    max-width: 2000px;
  }
  
  html {
    font-size: 18px; /* Base augmentée pour 4K */
  }
  
  .hero__title {
    font-size: 6rem;
  }
  
  .section-title {
    font-size: 4rem;
  }
}

/* ========================================
   TOUCH DEVICES - Touch Targets (iPhone, iPad, etc.)
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  /* Augmenter touch targets sur devices tactiles - WCAG 2.2 */
  .btn,
  .nav__link,
  .header__burger,
  .social__link,
  .form__input,
  .form__select,
  .form__checkbox {
    min-height: 44px; /* Minimum WCAG */
    min-width: 44px;
  }
  
  /* Espacer les éléments cliquables */
  .nav__list {
    gap: 1.25rem !important; /* Augmenté de 1rem */
  }
  
  .nav__link {
    padding: 1rem 0.75rem !important; /* Augmenté pour meilleur touch target */
  }
  
  /* Espacement supplémentaire entre boutons */
  .hero__cta {
    gap: 1.25rem !important; /* Augmenté */
  }
  
  /* Hover effects désactivés sur touch */
  .expertise-card:hover,
  .project-card:hover,
  .service-item:hover {
    transform: none;
  }
  
  /* Meilleur espacement pour les formulaires sur touch */
  .form__group {
    margin-bottom: 1.75rem !important; /* Augmenté */
  }
  
  .form__input,
  .form__select,
  .form__textarea {
    padding: 1rem 1.25rem !important; /* Augmenté pour meilleur touch */
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  /* Cacher éléments non-print */
  .header,
  .hero__video-container,
  .hero__cta,
  .footer__social,
  .contact-form,
  .hero__scroll {
    display: none !important;
  }
  
  /* Simplifier layout */
  body {
    background: white;
    color: black;
  }
  
  section {
    page-break-inside: avoid;
    padding: 2rem 0;
  }
  
  /* Reset shadows et effets */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ========================================
   HIGH DPI / RETINA
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Images optimisées pour retina si nécessaire */
  /* Les SVG et webp gèrent déjà bien le retina */
}

/* ========================================
   DARK MODE SUPPORT (Optionnel)
   ======================================== */

@media (prefers-color-scheme: dark) {
  /* Désactivé par défaut - Décommenter si besoin */
  /*
  body {
    background: #1a1a2e;
    color: #f8f9fa;
  }
  
  .hero__overlay {
    background: linear-gradient(
      135deg,
      rgba(30, 58, 95, 0.95) 0%,
      rgba(26, 26, 46, 0.90) 100%
    );
  }
  */
}

/* ========================================
   REDUCED DATA MODE
   ======================================== */

@media (prefers-reduced-data: reduce) {
  /* Cacher vidéo si mode data réduit */
  .hero__video-container {
    display: none !important;
  }
  
  .hero__image--fallback {
    opacity: 1 !important;
    z-index: 0 !important;
  }
}

/* ========================================
   CONTRAST MODE (Accessibilité)
   ======================================== */

@media (prefers-contrast: high) {
  /* Augmenter contrastes */
  .hero__overlay {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .form__input {
    border: 2px solid #000;
  }
}

/* ========================================
   UTILITIES RESPONSIVE
   ======================================== */

/* Show/Hide par breakpoint */
.hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: block;
  }
  
  .show-mobile-only {
    display: none;
  }
}

.hide-desktop {
  display: none;
}

@media (max-width: 1023px) {
  .hide-desktop {
    display: block;
  }
  
  .show-desktop-only {
    display: none;
  }
}

/* Text alignment responsive */
@media (max-width: 639px) {
  .text-center-mobile {
    text-align: center !important;
  }
}

/* Spacing utilities responsive */
@media (max-width: 639px) {
  .mt-mobile-0 { margin-top: 0 !important; }
  .mb-mobile-0 { margin-bottom: 0 !important; }
  .p-mobile-2 { padding: 1rem !important; }
}

/* ========================================
   RÈGLES GLOBALES MOBILE - Amélioration cohérence
   ======================================== */

@media (max-width: 639px) {
  /* Améliorer espacement des listes */
  ul, ol {
    margin-bottom: 1.5rem !important;
    padding-left: 1.5rem !important;
  }
  
  li {
    margin-bottom: 0.75rem !important;
    line-height: 1.7 !important;
  }
  
  /* Améliorer espacement des images */
  img {
    margin-bottom: 1.5rem !important;
  }
  
  /* Section label amélioré */
  .section-label {
    margin-bottom: 1rem !important; /* Augmenté */
    letter-spacing: 0.12em !important;
  }
  
  /* Améliorer espacement des titres dans les cartes */
  .card__title,
  .project__title,
  .service__title {
    margin-bottom: 1rem !important;
  }
  
  /* Améliorer espacement des métadonnées */
  .project__meta {
    margin-top: 1rem !important;
    gap: 1.25rem !important;
  }
  
  /* Améliorer espacement social links */
  .contact__social,
  .footer__social {
    margin-top: 1.5rem !important;
    gap: 1rem !important;
  }
  
  .social__link {
    padding: 0.75rem !important; /* Meilleur touch target */
  }
}











