/* ========================================
   RESPONSIVE TABLET - GESTION PAR ORIENTATION
   ======================================== */

/* ========================================
   LANDING TABLETTE (768px - 1024px)
   Affiche uniquement la landing 3D
   ======================================== */

/* Par défaut : landing tablette cachée */
.tablet-landing {
    display: none;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Cacher le contenu principal */
    .container {
        display: none !important;
    }

    /* Afficher la landing tablette */
    .tablet-landing {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    /* Canvas 3D en arrière-plan */
    #canvas-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    #canvas-container canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }

    /* ---- CONTENU PRINCIPAL ---- */
    .tablet-content {
        position: relative;
        z-index: 10;
        height: 100%;
        width: 100%;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        pointer-events: none;
    }

    /* ---- HEADER - GRILLE 4 COLONNES ---- */
    .tablet-header {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        align-items: start;
        pointer-events: auto;
    }

    .tablet-name {
        grid-column: 1;
        font-size: 18px;
    }

    .tablet-message {
        grid-column: 3 / 5;
    }

    .tablet-message p {
        font-size: 18px;
        line-height: 1.4;
        color: rgb(166, 166, 166);
        margin: 0;
    }

    /* ---- FOOTER - GRILLE 4 COLONNES ---- */
    .tablet-footer {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        align-items: end;
        pointer-events: auto;
    }

    /* Colonne 1 - Copyright */
    .tablet-copyright {
        grid-column: 1;
        display: flex;
        flex-direction: column;
    }

    .tablet-copyright span {
        font-size: 18px;
        line-height: 1.4;
        color: rgb(166, 166, 166);
    }

    /* Colonne 3 - CV + Instagram */
    .tablet-links {
        grid-column: 3;
        display: flex;
        flex-direction: column;
    }

    .tablet-links a {
        font-size: 18px;
        line-height: 1.4;
        color: #000000;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

    .tablet-links a:hover {
        color: rgb(166, 166, 166);
    }

    /* Colonne 4 - LinkedIn + Email */
    .tablet-contact {
        grid-column: 4;
        display: flex;
        flex-direction: column;
    }

    .tablet-contact a {
        font-size: 18px;
        line-height: 1.4;
        color: #000000;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .tablet-contact a:first-child {
        text-decoration: underline;
    }

    .tablet-contact a:hover {
        color: rgb(166, 166, 166);
    }
}

/* ========================================
   TABLETTE PORTRAIT (768px - 1024px)
   Même comportement que ci-dessus
   ======================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* La landing tablette s'affiche déjà via la règle générale */
}

/* ========================================
   TABLETTE PAYSAGE (768px - 1024px)
   Même comportement que ci-dessus
   ======================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* La landing tablette s'affiche déjà via la règle générale */
}