/* ============================================
   UNITBASSE — Hero de l'accueil Mac : MacBook en situation
   Chargé uniquement par index.html / index-en.html.
   Créé le 01/10/2026 (pendant de .ipad-device sur ipad.html).
   ============================================ */

.macbook {
    position: relative;
    padding: 0 4%;
}

/* Écran (couvercle) */
.macbook__lid {
    position: relative;
    padding: 18px 14px 14px;
    border-radius: 18px 18px 6px 6px;
    background: linear-gradient(160deg, #1c1c1c 0%, #080808 100%);
    border: 2px solid #3a3a3a;
    box-shadow:
        var(--shadow-xl),
        0 0 80px rgba(201, 162, 39, 0.15);
    transition: box-shadow var(--duration-slow) var(--ease-out);
}

.macbook:hover .macbook__lid {
    box-shadow:
        var(--shadow-xl),
        0 0 100px rgba(201, 162, 39, 0.3);
}

.macbook__camera {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #2c2c2c;
}

.macbook__screen {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    background: var(--dark);
}

/* La capture (bouton .hero__image) remplit l'écran, sans son propre cadre.
   Le !important neutralise la parallaxe de main.js, qui ferait pivoter
   la capture à l'intérieur de l'écran. */
.macbook .hero__image {
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
}

.macbook .hero__image:hover {
    box-shadow: none;
}

.macbook .hero__image::after {
    display: none;
}

/* Base en aluminium foncé, plus large que l'écran */
.macbook__base {
    position: relative;
    height: 16px;
    margin: 0 -4.2%;
    border-radius: 2px 2px 14px 14px / 2px 2px 10px 10px;
    background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 35%, #1e1e1e 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

/* Encoche d'ouverture */
.macbook__notch {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15%;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 0 0 8px 8px;
    background: #222;
}

@media (max-width: 480px) {
    .macbook__lid {
        padding: 10px 8px 8px;
        border-radius: 12px 12px 4px 4px;
    }
    .macbook__base {
        height: 10px;
    }
}

/* Sélecteur de plateforme Mac | iPad (05/10/2026), identique à celui de la page iPad */
.platform-switch {
    display: inline-flex;
    padding: 4px;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-full);
    background: var(--dark);
    border: 1px solid var(--gray-800);
    font-size: var(--text-sm);
    font-weight: 600;
}

.platform-switch a,
.platform-switch span {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    text-decoration: none;
}

.platform-switch a {
    color: var(--cream-muted);
    transition: color var(--duration-fast);
}

.platform-switch a:hover,
.platform-switch a:focus-visible {
    color: var(--cream);
}

.platform-switch span[aria-current] {
    background: var(--gradient-gold);
    color: var(--black);
}
