/* ========================================
   BASE STYLES — Mobile first (≥ 200px portrait)
   ======================================== */

.main-container {
    background-color: #000000;
}

.image-container {
    overflow: hidden;
    background-color: #000000;
}

.bg-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-container:hover .bg-image {
    opacity: 1;
    animation: slideUp 0.6s ease-out forwards;
}

.small-image {
    z-index: 2;
    width: 100px;
    transition: transform 0.3s ease-in-out;
}

.wsv {
    z-index: 2;
    width: 50px;
    transition: transform 0.3s ease-in-out;
}

.small-image:active,
.small-image:focus,
.small-image:hover {
    animation-name: elementor-animation-pop;
    animation-duration: 0.2s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

.img-div {
    z-index: 2;
    display: flex;
}

.bouton-visitez {
    color: #ffffff;
    border: 3px solid #ffffff;
    padding: 3px 5px;
    text-decoration: none;
    font-size: 8px;
    background-color: #00000000;
    font-family: "Montserrat", Sans-serif;
    font-weight: 500;
    border-style: solid;
    border-radius: 50px 50px 50px 50px;
    margin-top: 0.5rem !important;
}

.btn-str {
    position: relative;
    top: 0px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideUp {
    from { transform: translateY(50px); }
    to   { transform: translateY(0); }
}

@keyframes elementor-animation-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========================================
   PORTRAIT — Smartphones
   ======================================== */

/* ≥ 320px — Petits smartphones (ex: iPhone SE) */
@media (min-width: 320px) and (orientation: portrait) {
    .small-image  { width: 200px; }
    .wsv          { width: 100px; }
    .bouton-visitez {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* ≥ 480px — Grands smartphones / phablettes */
@media (min-width: 480px) and (orientation: portrait) {
    .bouton-visitez {
        font-size: 14px;
        padding: 6px 20px;
    }
}

/* ≥ 600px — Petites tablettes */
@media (min-width: 600px) and (orientation: portrait) {
    .main-container {
        height: 100vh;
        overflow: hidden;
    }
    .image-container {
        height: 33.33vh !important;
        min-height: unset !important;
    }
    .bouton-visitez {
        font-size: 12px;
        padding: 2px 10px;
    }
}

/* ≥ 768px — Tablettes moyennes (ex: iPad standard) */
@media (min-width: 768px) and (orientation: portrait) {
    .small-image    { width: 220px; }
    .wsv            { width: 175px; }
    .bouton-visitez {
        font-size: 13px;
        padding: 7px 18px;
    }
}

/* ≥ 1024px — Grandes tablettes portrait (ex: iPad Pro 11") */
/* Aucune règle spécifique dans l'original — placeholder conservé */

/* ========================================
   PAYSAGE — Smartphones
   ======================================== */

/* Base paysage ≥ 200px — structure commune */
@media (min-width: 200px) and (orientation: landscape) {
    .main-container {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: row;
    }
    .image-container {
        height: 100vh !important;
        width: 30.33vw !important;
        min-height: unset !important;
    }
    .small-image    { width: 100px; }
    .wsv            { width: 50px; }
    .bouton-visitez {
        font-size: 8px;
        padding: 3px 5px;
    }
    .btn-str {
        position: relative;
        top: 13px;
    }
}

/* ≥ 480px paysage — petits smartphones */
@media (min-width: 480px) and (orientation: landscape) {
    .small-image    { width: 150px; }
    .wsv            { width: 80px; }
    .bouton-visitez {
        font-size: 10px;
        padding: 2px 8px;
    }
    .btn-str { top: 23px; }
}

/* ≥ 720px paysage — grands smartphones / petites tablettes */
@media (min-width: 720px) and (orientation: landscape) {
    .small-image    { width: 200px; }
    .wsv            { width: 150px; }
    .bouton-visitez {
        font-size: 14px;
        padding: 6px 20px;
    }
    .btn-str { top: 53px; }
}

/* ≥ 900px paysage — tablettes */
/* Aucune règle spécifique dans l'original — placeholder conservé */

/* ≥ 1200px paysage — grandes tablettes (ex: iPad Pro 12.9") */
/* Aucune règle spécifique dans l'original — placeholder conservé */

/* ========================================
   ORDINATEURS (toutes orientations)
   ======================================== */

/* ≥ 1024px — Petits portables */
/* Aucune règle spécifique dans l'original — placeholder conservé */

/* ≥ 1366px — Ordinateurs standards */
@media (min-width: 1366px) {
    .small-image    { width: 300px; }
    .bouton-visitez {
        font-size: 15px;
        padding: 10px 24px;
    }
    .image-container:hover .bg-image {
        animation-duration: 0.9s;
    }
    .small-image:active,
    .small-image:focus,
    .small-image:hover {
        animation-duration: 0.3s;
    }
}

/* ≥ 1920px — Full HD / 4K */
/* Aucune règle spécifique dans l'original — placeholder conservé */

/* ========================================
   CORRECTIONS UNIVERSELLES
   ======================================== */

/* Pas de scroll horizontal */
.row {
    margin-left: 0;
    margin-right: 0;
    height: 100%;
}