/* =====================================================
   RESPONSIVE — LT Dental Design  v8.0
   ===================================================== */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

#schema-popup-mobile {
    display: none;
}

/* =====================================================
   MOBILE ≤ 768px
   ===================================================== */
@media (max-width: 768px) {

    /* ------------------------------------------------
       CONTENEURS GLOBAUX
    ------------------------------------------------ */

    .lt-home {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
    max-width: 100%;
}

    /* Espace entre sections — assez grand pour que la
       section suivante ne soit pas visible au chargement */
    .lt-home section {
    margin-top: 120px;
    overflow-x: hidden;
}

    .lt-home > section.hero {
        margin-top: 0;
    }

    /* Annule les padding 40-60px desktop sur tous les conteneurs */
    .workflow-container,
    .benefits-container,
    .software-container,
    .cta-container,
    .design-header,
    .nc-container,
    .mc-inner,
    .vision-container {
        padding-left: 24px;
        padding-right: 24px;
        max-width: 100%;
    }

    /* ------------------------------------------------
       HEADER
    ------------------------------------------------ */

    .header-menu { display: none; }

    .header-container {
        padding: 0 16px;
        justify-content: center;
    }

    .header-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }

    .header-logo img {
    height: 120px;
    width: auto;
    display: block;
}

    .custom-header::before {
        top: -280px;
        opacity: 0.35;
        transform: translateX(-50%) scale(0.75);
    }

    /* ------------------------------------------------
       HERO — centré
    ------------------------------------------------ */

    .hero-svg-overlay { display: none; }
    .hero-glow        { display: none; }

    .hero {
    min-height: 100vh;
    padding: 0;
    display: block;
    overflow: visible;
}

    .hero-grid { display: block; }

    .hero-box {
        padding: 100px 24px 60px;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 32px;
        max-width: 100%;
        text-align: center;
    }

    .hero p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 100%;
    text-align: center;
    opacity: 0.75;
}

    .hero-tag {
        margin-bottom: 20px;
        font-size: 10px;
        display: block;
        text-align: center;
    }

    .hero-points { font-size: 13px; text-align: center; }

    /* Bouton centré */
    .hero-buttons {
        justify-content: center;
    }

    .btn-main {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    font-size: 15px;
    padding: 16px 24px;
    margin: 32px auto 0;
}

    /* ------------------------------------------------
       SECTION TAG
    ------------------------------------------------ */

    .section-tag {
        font-size: 10px;
        letter-spacing: 1.5px;
        padding: 5px 12px;
    }

    /* ------------------------------------------------
       APPROCHE
    ------------------------------------------------ */

    .vision-section  { padding: 0; }

    .vision-container {
    margin: 0 auto;
    padding: 0 16px;
    max-width: 100%;
}

    .approach-card {
        margin: 0 16px;
        border-radius: 24px;
        width: auto;
        max-width: 100%;
    }

    .approach-content {
        padding: 36px 24px;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .approach-content .heading {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .approach-content .para {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 0;
        max-width: 100%;
    }

    .approach-content .para-sm {
        font-size: 12px;
        opacity: 0.7;
    }

    /* ------------------------------------------------
       COLLABORATION
    ------------------------------------------------ */

    .benefits-section {
        padding: 80px 0;
        margin-bottom: 0;
    }

    .benefits-container {
        grid-template-columns: 1fr;
        padding: 0 24px;
        gap: 32px;
        max-width: 100%;
    }

    .benefits-text {
    transform: none;
    max-width: 100%;
    text-align: center;
}

    .benefits-text h2 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .benefits-text p { font-size: 15px; }

    .collab-globe {
        max-width: 240px;
        margin: 20px auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .benefit-card { padding: 20px 18px; border-radius: 16px; }
    .benefit-card h3 { font-size: 16px; margin-bottom: 8px; }
    .benefit-card p  { font-size: 14px; line-height: 1.7; }

    /* ------------------------------------------------
       WORKFLOW
    ------------------------------------------------ */

    .workflow-section { padding: 80px 0; }

    .workflow-container {
        padding: 0 24px;
        max-width: 100%;
    }

    .workflow-container h2 {
        font-size: 26px;
        margin-bottom: 40px;
        text-align: center;
    }

    .workflow-steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .workflow-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 8px;
        opacity: 1;
        transform: none;
    }

    .workflow-step::after { display: none; }

    .workflow-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        margin: 0 auto 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .workflow-icon img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: block;
}

.workflow-step {
    opacity: 1;
    transform: none;
    transition: none;
}

.workflow-step.show .workflow-icon {
    border-color: #009999;
    box-shadow: 0 0 0 4px #00999915;
}

    .workflow-step h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
    .workflow-step p  { font-size: 13px; line-height: 1.6; }

    /* ------------------------------------------------
       CONCEPTION CAD — CAROUSEL
       Reprise fidèle de l'ancienne version qui marchait
    ------------------------------------------------ */

    .design-section { padding: 80px 0 0 0; }

    .design-header {
    padding: 0 24px;
    margin-bottom: 32px;
    text-align: center;
}

    .design-header h2 { font-size: 26px; line-height: 1.25; max-width: 100%; }

    .design-layout {
        display: flex;
        flex-direction: column;
    }

    /* Texte SOUS le carousel */
    .design-text {
        transform: none;
        width: 100%;
        padding: 32px 24px 0;
        margin-top: 0;
        text-align: left;
        order: 2;
        position: relative;
    }

    .design-label { font-size: 12px; }
    .design-text h2 { font-size: 22px; line-height: 1.2; }
    .design-text p  { font-size: 14px; line-height: 1.7; max-width: 100%; }

    /* Carousel AVANT le texte */
    .carousel-wrapper {
        margin: 0;
        padding: 0;
        order: 1;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel {
    display: flex;
    justify-content: center;
    width: 100%;
    transform: none !important;
}

.design-card {
    display: none;
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin: 0 auto;
}

.design-card.active {
    display: flex;
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 1;
    animation: fadeCard 0.4s ease forwards;
    margin: 0 auto;
}

@keyframes fadeCard {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.carousel-btn {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.carousel-btn.left  { left: 4px; }
.carousel-btn.right { right: 4px; }

    /* ------------------------------------------------
       SOFTWARE
    ------------------------------------------------ */

    .software-section { padding: 80px 0; }

    .software-container {
        padding: 0 24px;
        max-width: 100%;
    }

    .software-container h2 { font-size: 22px; }
    .software-container p  { font-size: 14px; }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ------------------------------------------------
       DÉCOUVERTE (CTA)
    ------------------------------------------------ */

    .cta-section {
        padding: 80px 0;
        overflow: hidden;
        margin-top: 0;
    }

    .cta-container {
        padding: 0 24px;
        max-width: 100%;
    }

    .cta-layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin: 28px 0 0 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .cta-right {
        order: 1;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .cta-card {
        padding: 0;
        width: 100%;
    }

    .cta-card-right {
        margin-left: 0;
        padding: 0;
        width: 100%;
    }

    .cta-card-right .box {
    transform: none;
    overflow: hidden;
    border-radius: 24px;
    max-height: 700px;
}

    .cta-card-right .box::before,
    .cta-card-right .box::after { display: none; }

    .cta-card-right .content {
    padding: 20px 20px 0;
    border-radius: 24px;
    background: rgba(255,255,255,0.97);
    position: relative;
    overflow: visible;
}

.laser-svg-mobile {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 180%;
    margin-top: -100px;
    margin-left: -40%;
    margin-bottom: -100px;
    display: block;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

    .cta-card-right h2 {
        font-size: 22px;
        line-height: 1.25;
        text-align: center;
        margin-bottom: 12px;
    }

    .cta-card-right p { font-size: 14px; line-height: 1.7; }

    .cta-left {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .cta-card-left {
        align-items: center;
        justify-content: center;
        padding: 0;
        text-align: center;
    }

    .cta-btn-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        overflow: hidden;
    }

    .cta-card-left .btn-main {
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 320px;
    }

    /* SVG laser : petit et centré, ne déborde pas */
    .laser-svg { display: none; }

    /* ------------------------------------------------
       ÉCHANGE / CONTACT
    ------------------------------------------------ */

    .contact-section {
        padding: 80px 0 60px;
        margin-bottom: 0;
    }

    .contact-wrapper {
        position: relative;
        min-height: auto;
        max-width: 100%;
        width: 100%;
        padding: 50px 20px 0 20px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .contact-tag {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin: 0 auto 8px auto;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 5px 12px;
}

    .contact-title {
    position: relative;
    top: auto;
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

    .contact-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
        padding: 0;
    }

    .contact-card-front {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
        padding: 32px 24px;
        border-radius: 24px;
        z-index: 1;
        cursor: default;
    }

    .contact-card-back {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    transform: none;
    opacity: 1;
    border-radius: 24px;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
    max-height: 70px;
    transition: max-height 0.5s ease;
    padding: 24px;
}

.contact-card-back.open {
    max-height: 2000px;
}

    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }

    .contact-form input,
    .contact-form textarea {
        margin-bottom: 14px;
        font-size: 15px;
        padding: 14px 16px;
        width: 100%;
    }

    .contact-form button {
        width: 100%;
        text-align: center;
        border-radius: 40px;
        padding: 15px;
        font-size: 15px;
    }

    .form-note {
        text-align: center;
        font-size: 13px;
        margin-top: 12px;
    }

    .faq-title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: left;
    font-size: 20px;
    margin-bottom: 20px;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-title::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: #009999;
    flex-shrink: 0;
}

.contact-card-back.open .faq-title::after {
    content: "−";
}

    .faq-content {
        height: auto;
        overflow: visible;
        padding: 0;
    }

    .faq-item {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0,0,0,0.07);
        padding: 0;
    }

    .faq-item:last-child { border-bottom: none; }

    .faq-question {
        padding: 16px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .faq-item h4 {
        font-size: 14px;
        font-weight: 500;
        margin: 0;
        line-height: 1.45;
        padding-right: 10px;
    }

    .faq-arrow { font-size: 20px; flex-shrink: 0; }

    .faq-answer p {
        font-size: 13px;
        line-height: 1.7;
        padding-bottom: 14px;
        margin-top: 4px;
    }

    .faq-cta { display: none; }

    .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-arrow {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

    /* ------------------------------------------------
       POPUP
    ------------------------------------------------ */

    .popup-content {
        width: 94%;
        max-height: 88vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 28px 20px;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .popup-content .form-title { font-size: 18px; }

    .popup-content input,
    .popup-content textarea,
    .popup-content select {
        font-size: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .popup-content button {
        width: 100%;
        padding: 14px;
        font-size: 14px;
        margin-top: 16px;
    }

    /* ------------------------------------------------
       FOOTER
    ------------------------------------------------ */

    .custom-footer { padding: 48px 24px 56px; }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-left   { align-items: center; order: 2; }
    .footer-center { order: 1; }
    .footer-right  { display: none; }

    .footer-title {
        transform: none;
        margin-bottom: 14px;
        font-size: 12px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .social-icons {
        display: flex;
        gap: 24px;
        justify-content: center;
    }

    .social-icons a {
        top: 0;
        margin: 0;
        font-size: 24px;
        position: relative;
    }

    .footer-bottom {
        font-size: 11px;
        line-height: 2.2;
        margin-top: 20px;
        text-align: center;
    }

    .footer-signature { font-size: 16px; }
    .separator { margin: 0 8px; opacity: 0.5; }

    /* ------------------------------------------------
       MENU MOBILE
    ------------------------------------------------ */

    #mobile-menu-btn {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 9999;
        background: rgba(255,255,255,0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: none;
        border-radius: 14px;
        width: 46px;
        height: 46px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        box-shadow: 0 2px 16px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
        transition: opacity 0.25s ease;
    }

    #mobile-menu-btn.hidden { opacity: 0; pointer-events: none; }

    #mobile-menu-btn span {
        display: block;
        width: 18px;
        height: 1.5px;
        background: #1a2535;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
    #mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    #mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

    #mobile-nav {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(244,251,251,0.97);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        z-index: 9998;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-nav.open { opacity: 1; pointer-events: auto; }

    #mobile-nav a {
        font-family: 'Montserrat', sans-serif;
        font-size: 22px;
        font-weight: 300;
        color: #1a2535;
        text-decoration: none;
        padding: 16px 48px;
        border-radius: 16px;
        transition: all 0.18s ease;
        letter-spacing: 0.2px;
    }

    #mobile-nav a:active { background: rgba(0,153,153,0.08); color: #009999; }

    #mobile-nav .mobile-nav-cta {
        margin-top: 28px;
        background: linear-gradient(135deg, #009999, #00bbbb);
        color: white;
        padding: 18px 48px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 16px;
        box-shadow: 0 16px 40px rgba(0,153,153,0.25);
        letter-spacing: 0.4px;
    }

    /* ------------------------------------------------
       NAVIGATION ESPACE CLIENT
    ------------------------------------------------ */

    .client-nav {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100% - 32px);
        margin: 70px auto 0 auto;
        height: auto;
        border-radius: 14px;
        padding: 10px 8px;
        display: none;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        box-sizing: border-box;
    }

    .client-nav-link {
        height: auto;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 30px;
        white-space: nowrap;
    }

    /* ------------------------------------------------
       PAGES ESPACE CLIENT
    ------------------------------------------------ */

    .client-connecte-section { padding: 20px 0 60px 0; }
    .client-connecte-inner   { padding: 0 20px; }
    .welcome-client { font-size: 1.5rem; margin-bottom: 40px; text-align: center; }
.client-connecte-titre { font-size: 1.4rem; margin-bottom: 60px; }

    .client-connecte-wrapper {
    gap: 24px;
    margin-bottom: 60px;
    padding-top: 20px;
    justify-content: center;
}

    .client-connecte-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    padding: 20px 12px;
    border-radius: 14px;
}

    .client-connecte-card img   { width: 40px; }
    .client-connecte-card-title { font-size: 13px; }
    .info-client-wrapper  { padding: 20px; }
    .info-client-mail     { font-size: 13px; }
    .info-client-urgence  { font-size: 13px; }

    /* ------------------------------------------------
       INFORMATIONS
    ------------------------------------------------ */

    .informations-section  { padding: 20px 0 60px 0; }
    .informations-inner    { padding: 0 20px; }
    .info-client-container { padding: 24px 18px; margin-top: 24px; }

    .info-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
    .info-item  { padding: 14px 16px; }
    .info-label { font-size: 10px; }
    .info-value { font-size: 14px; }

    .info-actions { flex-direction: column; gap: 8px; margin-bottom: 24px; }
    .btn-modifier-info { text-align: center; width: 100%; }
    .info-client-box   { padding: 20px; }
    .preferences-grid  { grid-template-columns: 1fr; gap: 12px; }

    /* ------------------------------------------------
       PRÉFÉRENCES
    ------------------------------------------------ */

    .preferences-section { padding: 20px 0 60px 0; }
    .preferences-inner   { padding: 0 20px; }
    .preferences-form    { padding: 24px 18px; margin-top: 24px; }

    .dashboard-grid { gap: 8px; margin-top: 24px; }
    .card-header    { padding: 16px 18px; font-size: 13px; }
    .card-content   { padding: 0 18px; }
    .card-content.open { padding-top: 16px; padding-bottom: 16px; }
    .dashboard-card label { font-size: 13px; }

    .preferences-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-top: 24px;
    }

    .btn-primary { width: 100%; text-align: center; }

    /* ------------------------------------------------
       MODIFIER MES INFORMATIONS
    ------------------------------------------------ */

    .modifier-infos-section { padding: 20px 0 60px 0; }
    .modifier-infos-inner   { padding: 0 20px; }
    .modifier-infos-form    { padding: 24px 18px; margin-top: 24px; }
    .modifier-infos-grid    { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
    .modifier-infos-full    { grid-column: 1; }
    .modifier-infos-actions { flex-direction: column; gap: 10px; }
    .modifier-infos-actions .btn-primary,
    .modifier-infos-actions .btn-modifier-info { width: 100%; text-align: center; }

    /* ------------------------------------------------
       FACTURES
    ------------------------------------------------ */

    .factures-section-page { padding: 20px 0 60px 0; }
    .factures-inner        { padding: 0 20px; }
    .factures-wrapper      { padding: 24px 18px; margin-top: 24px; }
    .factures-annee-titre  { font-size: 16px; }
    .facture-ligne         { padding: 14px 0; gap: 8px; }
    .facture-mois          { font-size: 14px; }
    .facture-annee         { font-size: 13px; }
    .facture-lien          { font-size: 13px; padding: 7px 14px; }

    /* ------------------------------------------------
       SUPPORT
    ------------------------------------------------ */

    .support-section  { padding: 20px 0 60px 0; }
    .support-inner    { padding: 0 20px; }
    .support-title    { font-size: 26px; }
    .support-subtitle { font-size: 14px; margin-bottom: 32px; }

    .support-cards {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 32px;
        align-items: stretch;
    }

    .support-card {
        max-width: 100%;
        padding: 20px 18px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .support-card-icon {
        font-size: 20px;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .support-info-bloc { padding: 24px 20px; }

    /* ------------------------------------------------
       CONTACT CLIENT
    ------------------------------------------------ */

    .contact-client-section { padding: 60px 0 60px 0; }
    .contact-client-inner   { padding: 0 20px; text-align: center; }

    .contact-client-wrapper {
    margin-top: 30px;
}

.contact-client-infos .support-card {
    text-align: left;
}

    .contact-client-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }

    .contact-client-form { padding: 24px 18px; }
    .contact-client-form input,
    .contact-client-form textarea { font-size: 14px; padding: 12px 14px; width: 100%; }
    .contact-client-form button   { padding: 12px 24px; font-size: 14px; }
    .contact-client-infos .support-card { padding: 16px 18px; }

    /* ------------------------------------------------
       MES COMMANDES
    ------------------------------------------------ */

    .mc-section  { padding: 20px 0 60px 0; }
    .mc-inner    { padding: 0 14px; }
    .mc-title    { font-size: 24px; }
    .mc-subtitle { font-size: 13px; }

    .mc-search-form { flex-direction: column; padding: 16px; gap: 14px; }

.mc-search-field.large,
.mc-search-field.medium,
.mc-search-field.small { flex: 1 1 100%; min-width: 0; width: 100%; }

.mc-search-label { display: block; margin-bottom: 6px; }

.mc-search-input,
.mc-search-select { width: 100%; box-sizing: border-box; }

.mc-search-actions { width: 100%; justify-content: stretch; gap: 8px; flex-direction: column; }
.mc-search-btn { width: 100%; text-align: center; }
.mc-reset-btn  { width: 100%; text-align: center; }

    .mc-card-header    { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
    .mc-card-right     { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .mc-patient        { font-size: 15px; }
    .mc-date           { font-size: 12px; }
    .mc-detail-content { padding: 16px; }
    .mc-detail-grid    { grid-template-columns: 1fr; gap: 8px; }
    .mc-fichiers-list  { flex-direction: column; }

    /* ------------------------------------------------
       NOUVELLE COMMANDE
    ------------------------------------------------ */

    .nc-section    { padding: 20px 0 60px 0; }
    .nc-container  { padding: 0 14px; max-width: 100%; }
    .nc-title      { font-size: 20px; }
    .nc-date       { display: none; }
    .nc-header     { margin-bottom: 20px; }
    .nc-layout     { flex-direction: column; gap: 20px; }
    .nc-form-col   { min-width: 0; width: 100%; }
    .nc-white-card { padding: 18px 14px; }

    .dental-svg { max-height: 300px; }
    #tooth-hover-num { display: none; }

    #schema-left-info {
        position: relative;
        top: auto;
        left: auto;
        max-width: 100%;
        margin-bottom: 8px;
    }

    #client-display  { font-size: 13px; }
    #patient-display { font-size: 12px; }

    .nc-options-globales { flex-direction: column; gap: 8px; }

    .nc-submit-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 14px;
    }

    .nc-work-block { padding: 16px 14px; }
    .nc-option-row { flex-wrap: wrap; gap: 6px; }
    .nc-option-btn { font-size: 12px; padding: 5px 10px; }

    .nc-schema-col-hidden {
        display: none !important;
    }

.nc-schema-col {
    display: block;
    position: relative;
    top: auto;
    min-height: auto;
    max-width: 100%;
    padding: 14px 0 0 0;
}

.dental-svg {
    max-height: 380px;
    width: 100%;
    height: auto;
}

.nc-schema-title {
    font-size: 15px;
    margin-bottom: 8px;
}

    /* ------------------------------------------------
       PAGES AUTH
    ------------------------------------------------ */

    .login-wrapper,
.auth-wrapper {
    padding: 120px 16px 40px;
    align-items: flex-start;
    min-height: 100vh;
}

    .login-container,
    .auth-card {
        padding: 28px 18px;
        border-radius: 16px;
    }

    .login-container h2,
    .auth-card h2 { font-size: 22px; margin-bottom: 24px; }

    .register-grid { grid-template-columns: 1fr; gap: 0; }
    .form-group    { margin-bottom: 20px; }

    .form-group input,
    .auth-card input { font-size: 15px; padding: 13px 40px 13px 14px; }

    .login-container button,
    .auth-card button { font-size: 15px; padding: 14px; }

}

/* =====================================================
   TABLETTE 769px — 1024px
   ===================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

    .header-logo     { left: 20px; transform: none; }
    .header-logo img { height: 110px; }
    .custom-header::before { display: none; }
    .hero-svg-overlay { display: none; visibility: hidden; }
    .hero-box { transform: none; padding: 0 40px; }
    .hero h1  { font-size: 42px; max-width: 100%; }
    .hero p   { max-width: 100%; font-size: 16px; }

    .lt-home { padding-left: 20px; padding-right: 20px; }

    .benefits-container { grid-template-columns: 1fr; padding: 0 40px; gap: 40px; }
    .benefits-text      { transform: none; max-width: 100%; }
    .benefits-grid      { grid-template-columns: repeat(2, 1fr); }

    .workflow-steps { grid-template-columns: repeat(2, 1fr); }
    .workflow-step  { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .workflow-step::after { display: none; }
    .workflow-icon     { width: 64px; height: 64px; margin: 0 auto 14px; }
    .workflow-icon img { width: 64px; height: 64px; object-fit: contain; display: block; }

    .design-header h2 { font-size: 32px; }
    .design-header    { padding: 0 40px; }

.design-layout {
    display: flex;
    flex-direction: column;
}

.carousel-wrapper {
    margin: 0;
    padding: 0;
    order: 1;
    max-width: 100%;
    overflow: hidden;
}

.design-text {
    transform: none;
    width: 100%;
    padding: 32px 40px 0;
    order: 2;
    position: relative;
}

.carousel {
    display: flex;
    justify-content: center;
    width: 100%;
    transform: none !important;
}

.design-card {
    display: none !important;
    width: 460px;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    margin: 0 auto;
}

.design-card.active {
    display: flex !important;
    width: 460px;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 1;
    animation: fadeCard 0.4s ease forwards;
    margin: 0 auto;
}

    .software-grid { grid-template-columns: repeat(3, 1fr); }

    .cta-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding: 0 40px;
    margin: 32px 0 0 0;
    align-items: center;
}

.cta-left {
    flex: 1;
    order: 1;
    text-align: center;
}

.cta-right {
    flex: 1;
    order: 2;
}

.cta-card-right { margin-left: 0; }

.laser-svg {
    display: block;
    position: relative;
    width: 80%;
    max-width: 300px;
    margin: 24px auto 0;
    opacity: 0.7;
}

    .contact-section { padding: 80px 0; margin-bottom: 0; }
    .contact-wrapper { padding-top: 80px; padding-left: 40px; padding-right: 40px; }
    .contact-card    { width: 100%; position: relative; transform: none; height: auto; }
    .contact-card-back { display: none; }

    .footer-title   { transform: none; }
    .social-icons a { top: 0; position: relative; }

    .client-nav {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100% - 80px);
        margin: 80px auto 0 auto;
        height: auto;
        padding: 10px 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .client-nav-link { font-size: 13px; padding: 8px 16px; }

    .nc-layout     { flex-direction: column; gap: 24px; }
    .nc-schema-col { position: relative; top: auto; min-height: auto; max-width: 100%; }

    .mc-card-header { grid-template-columns: 1fr; }
    .mc-detail-grid { grid-template-columns: 1fr 1fr; }

    .modifier-infos-grid    { grid-template-columns: 1fr 1fr; }
    .contact-client-wrapper { grid-template-columns: 1fr; }
    .info-grid              { grid-template-columns: 1fr 1fr; }
    .preferences-grid       { grid-template-columns: 1fr; }
}

/* ===== TOAST PRÉFÉRENCES — MOBILE ===== */

@media (max-width: 600px) {
    .pref-toast {
        left: 16px;
        right: 16px;
        top: 16px;
        width: auto;
    }
}
