/* ========================================
   MOBILE & RESPONSIVE STYLES 
======================================== */

/* ========================================
   DESKTOP ONLY (min-width: 769px)
======================================== */
@media (min-width: 769px) {
  /* Menu desktop visible, mobile caché */
  .desktop-menu {
    display: block;
  }
  
  .mobile-menu {
    display: none;
  }
}

/* ========================================
   LAYOUT ADJUSTMENTS (max-width: 1200px)
======================================== */
@media (max-width: 1200px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ========================================
   TABLET (768px - 1024px)
======================================== */
@media (max-width: 1024px) {
  .floating-cta {
    display: none;
  }
  
  .hero-title, h2 {
    letter-spacing: 0px;
  }

  .container {
    padding: 0 1.5rem;
  }
  
  .row {
    gap: 3rem;
  }
  
  /* Hero adjustments */
  .hero-title {
    font-size: clamp(3.5rem, 7vw, 8rem);
    position: fixed;
    top: calc(50% - 150px);
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    z-index: 5;
  }

  .hero-subtitle {
    font-size: clamp(1.8rem, 5vw, 3rem);
    flex-direction: column;
    gap: 0.3rem;
    position: fixed;
    top: calc(50% + 100px);
    left: 0;
    right: 0;
    margin: 0;
    z-index: 5;
  }

  .hero-subtitle .subtitle-separator {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin: 0;
  }

  .butterfly-icon {
    height: 60px;
  }
  
  .hero-butterfly {
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
  }
  
  .loader-container {
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    height: 60px;
    width: 60px;
  }
  
  /* Sections */
  .section-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
  }
  
  .content-section {
    padding: 5rem 0;
  }
  
  /* Grids */
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .cabinet-showcase {
    gap: 1.5rem;
  }
  
  /* Menu desktop pour tablette */
  .navbar {
    max-width: calc(100% - 3rem);
    top: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  .nav-list {
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.4rem;
  }
  
  /* Sections spécifiques */
  .clemence-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .clemence-row .col-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
  }

  .clemence-row .col-image img {
    height: auto;
    width: 300px;
    object-fit: cover;
    object-position: center top;
  }

  .emdr-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .emdr-row .col-content {
    width: 100%;
    max-width: 800px;
  }
  
  .emdr-row .col-applications {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .emdr-applications {
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
  }
  
  .emdr-applications .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }
  
  .emdr-applications .benefit-item {
    max-width: 250px;
    width: 100%;
  }
}

/* ========================================
   MOBILE (max-width: 768px)
======================================== */
@media (max-width: 768px) {
  :root {
    --transition-smooth: all 0.2s ease;
  }
  
  /* Menu desktop caché, mobile visible */
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  /* Layout */
  .container {
    padding: 0 1rem;
  }
  
  .row {
    flex-direction: column;
    gap: 2rem;
  }
  
  .row.reverse {
    flex-direction: column;
  }
  
  .content-section {
    padding: 4rem 0;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  /* Typography */
  .hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    position: fixed;
    top: calc(50% - 120px);
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    z-index: 5;
  }

  .hero-subtitle {
    font-size: clamp(1.8rem, 5vw, 3rem);
    position: fixed;
    top: calc(50% + 80px);
    left: 0;
    right: 0;
    margin: 0;
    z-index: 5;
  }
  
  .hero-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .content-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Hero */
  .hero-section {
    min-height: 100vh;
    height: auto;
  }
  
  .hero-bg {
    background-attachment: fixed;
    background-position: center top;
  }
  
  .butterfly-icon {
    height: 60px;
  }
  
  .hero-butterfly {
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
  }
  
  .loader-container {
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    height: 60px;
    width: 60px;
  }
  
  /* CTA flottant */
  .floating-cta {
    display: block;
    bottom: 1rem;
    right: 1rem;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
  
  .cta-btn {
    width: 55px;
    height: 55px;
    font-size: 1rem;
  }
  
  .cta-btn span {
    font-size: 0.7rem;
  }
  
  /* Grids */
  .sophrologie-row {
    flex-direction: column;
  }

  .sophrologie-row .col-image img {
    height: auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
  }
  
  .process-item {
    padding: 2rem 1.2rem;
  }
  
  .process-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    padding: 2rem 1.5rem;
  }
  
  .pricing-card.featured {
    transform: none;
    order: -1;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .pricing-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .price {
    font-size: 2rem;
  }
  
  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-item {
    padding: 2rem 1.5rem;
  }
  
  .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .cabinet-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    flex-direction: column;
  }

  .cabinet-image,
  .cabinet-map {
    height: 300px;
  }
  
  /* EMDR section */
  .emdr-row {
    flex-direction: column;
    align-items: center;
  }

  .emdr-row .col-applications {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .emdr-applications {
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 500px;
  }

  .emdr-applications .benefits-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .emdr-applications .benefit-item {
    max-width: 300px;
    width: 100%;
  }
  
  /* Clémence section */
  .clemence-row .col-image img {
    height: auto;
    width: 240px;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .speciality-highlight {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .speciality-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .credentials {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .credential-item {
    padding: 1.5rem;
  }
  
  /* Notes importantes */
  .important-notes {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }
  
  .note-item {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .note-item i {
    font-size: 1.5rem;
  }

  /* ========================================
     MENU MOBILE
  ======================================== */
  
  /* Header du menu mobile */
  .mobile-menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 2000;
  }
  
  .mobile-logo {
    display: flex;
    align-items: center;
  }
  
  .mobile-butterfly {
    height: 35px;
    width: auto;
    animation: flap 0.6s ease-in-out infinite;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-butterfly.visible {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Bouton burger */
  .mobile-menu-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-smooth);
  }
  
  .burger-line {
    width: 25px;
    height: 3px;
    background: var(--cyan-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
  }
  
  /* Animation burger ouvert */
  .mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Overlay du menu */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(33, 37, 41, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Contenu du menu */
  .mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
  }
  
  /* Liste de navigation mobile */
  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  
  .mobile-nav-list li {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-menu-overlay.active .mobile-nav-list li {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Délais d'animation */
  .mobile-menu-overlay.active .mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu-overlay.active .mobile-nav-list li:nth-child(2) { transition-delay: 0.15s; }
  .mobile-menu-overlay.active .mobile-nav-list li:nth-child(3) { transition-delay: 0.2s; }
  .mobile-menu-overlay.active .mobile-nav-list li:nth-child(4) { transition-delay: 0.25s; }
  .mobile-menu-overlay.active .mobile-nav-list li:nth-child(5) { transition-delay: 0.3s; }
  .mobile-menu-overlay.active .mobile-nav-list li:nth-child(6) { transition-delay: 0.35s; }
  .mobile-menu-overlay.active .mobile-nav-list li:nth-child(7) { transition-delay: 0.4s; }
  
  .mobile-nav-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
  }
  
  .mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 202, 240, 0.2), transparent);
    transition: left 0.6s ease;
  }
  
  .mobile-nav-link:hover::before {
    left: 100%;
  }
  
  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--cyan-primary);
    text-shadow: 0 0 20px rgba(13, 202, 240, 0.5);
    transform: scale(1.05);
  }
  
  /* Footer du menu mobile */
  .mobile-menu-footer {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
  }
  
  .mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-soft));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(13, 202, 240, 0.3);
    transition: var(--transition-bounce);
  }
  
  .mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(13, 202, 240, 0.4);
    color: white;
  }
  
  .mobile-cta-btn i {
    font-size: 1rem;
  }
}

/* ========================================
   MOBILE SMALL (max-width: 480px)
======================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 0.8rem;
  }
  
  /* Typography très petit mobile */
  .hero-title {
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1.1;
    position: fixed;
    top: calc(50% - 100px);
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    z-index: 5;
  }

  .hero-subtitle {
    font-size: clamp(2rem, 7vw, 2.5rem);
    gap: 0.2rem;
    position: fixed;
    top: calc(50% + 60px);
    left: 0;
    right: 0;
    margin: 0;
    z-index: 5;
  }

  .hero-subtitle .subtitle-separator {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  
  .section-title {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
    margin-bottom: 0.8rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .content-text {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.9rem;
  }
  
  /* Sections */
  .content-section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .row {
    gap: 1.5rem;
  }
  
  /* Hero */
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 0 0.5rem;
  }
  
  .butterfly-icon {
    height: 50px;
  }
  
  .hero-butterfly {
    position: fixed;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
  }
  
  .loader-container {
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    height: 50px;
    width: 50px;
  }
  
  .scroll-indicator {
    bottom: 1rem;
  }
  
  /* CTA */
  .floating-cta {
    bottom: 0.8rem;
    right: 0.8rem;
  }
  
  .cta-btn {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }
  
  .cta-btn span {
    font-size: 0.65rem;
    margin-left: 0.2rem;
  }
  
  /* Components */
  .benefit-item {
    padding: 0.7rem;
    gap: 0.7rem;
    font-size: 0.9rem;
  }
  
  .benefit-item i {
    font-size: 1.2rem;
    min-width: 20px;
  }
  
  .process-item {
    padding: 1.5rem 1rem;
  }
  
  .process-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.5rem 1rem;
  }
  
  .pricing-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .price {
    font-size: 1.8rem;
  }
  
  .contact-item {
    padding: 1.5rem 1rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Clémence section */
  .clemence-row .col-image img {
    height: auto;
    width: 210px;
    object-fit: cover;
  }
  
  .speciality-highlight {
    padding: 1.2rem;
  }
  
  .speciality-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .note-item {
    padding: 0.7rem;
    gap: 0.8rem;
  }
  
  .note-item i {
    font-size: 1.3rem;
  }
  
  .credential-item {
    padding: 1.2rem;
  }
  
  .credential-item h5 {
    font-size: 1rem;
  }
  
  .credential-item li {
    font-size: 0.9rem;
    padding: 0.4rem 0 0.4rem 1.2rem;
  }
  
  /* Cabinet */
  .cabinet-photo {
    height: 250px;
  }
  
  .cabinet-map iframe {
    height: 250px;
  }
  
  /* Menu mobile petit écran */
  .mobile-menu-header {
    height: 60px;
    padding: 0 1rem;
  }
  
  .mobile-butterfly {
    height: 30px;
  }
  
  .mobile-nav-link {
    font-size: 2rem;
  }
  
  .mobile-cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Modal */
  .modal-content {
    margin: 1rem;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .modal-body {
    padding: 0.8rem 1.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer-content {
    padding: 2rem 0;
  }
  
  .footer-social {
    margin-bottom: 1.5rem;
  }
  
  .footer-social a {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 1.3rem;
    margin: 0 0.3rem;
  }
  
  .footer-copyright {
    font-size: 0.8rem;
  }
}

/* ========================================
   MOBILE LANDSCAPE
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    height: auto;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1.3rem, 4vw, 2rem);
  }
  
  .hero-butterfly {
    margin: 0.5rem 0;
  }
 
  .scroll-indicator {
    display: none;
  }
}

/* ========================================
   TOUCH OPTIMIZATIONS
======================================== */
@media (hover: none) and (pointer: coarse) {
  .benefit-item:hover,
  .process-item:hover,
  .pricing-card:hover,
  .contact-item:hover,
  .note-item:hover {
    transform: none;
  }
  
  .section-image:hover {
    transform: none;
  }
  
  .cabinet-photo:hover {
    transform: none;
  }
  
  .cta-btn {
    min-width: 55px;
    min-height: 55px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .footer-social a {
    min-width: 50px;
    min-height: 50px;
  }  
  
  .site-loader {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */
@media (max-width: 768px) {
  .nav-link:focus {
    outline: none;
  }
  
  .cta-btn:focus {
    outline: none;
  }
  
  .modal-close:focus {
    outline: none;
  }
  
  .nav-link:focus-visible {
    outline: 2px solid var(--cyan-primary);
    outline-offset: 2px;
  }
  
  .content-text,
  .benefit-item span,
  .process-item p,
  .pricing-card p,
  .contact-details p {
    line-height: 1.7;
  }
  
  .nav-list li {
    margin: 0.2rem 0;
  }
  
  .footer-social a {
    margin: 0.5rem;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */
@media (max-width: 768px) {
  .wave {
    animation-duration: 6s;
  }
  
  .emdr-icon {
    animation-duration: 4s;
  }
 
  .section-image,
  .cabinet-photo,
  .footer-bg {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
  }
  
  .navbar {
    will-change: transform, background-color;
  }
  
  .nav-link {
    will-change: color;
  }
  
  body.loading {
    font-display: swap;
  }
  
  .main-content {
    min-height: 100vh;
  }
  
  .site-loader.loaded {
    pointer-events: none;
  }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  .floating-cta,
  .navbar,
  .hero-particles,
  .scroll-indicator,
  .site-loader,
  .mobile-menu {
    display: none !important;
  }
  
  .hero-section {
    height: auto;
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .content-section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .section-title {
    color: #000 !important;
    text-shadow: none !important;
    animation: none !important;
  }
  
  .hero-title,
  .hero-subtitle {
    color: #000 !important;
    text-shadow: none !important;
    animation: none !important;
  }
  
  body.loading .main-content {
    visibility: visible !important;
    opacity: 1 !important;
  }
}