/* =============================================================
   CABINET.CSS — pages cabinets
   ============================================================= */

body {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
    background: #fff;
    color: var(--neutral-700, #4a5568);
}

h2 {
    font-size: 1.1rem;
    padding: .8em 0;
    font-weight: 700;
    color: var(--primary, #156082);
}

.iml img {
    float: left;
    margin: 4px 16px 8px 0;
    width: auto !important;
    border-radius: var(--radius-sm, 6px);
}

#min { text-align: center; margin: 24px 0; }

#min img:hover {
    border-color: var(--accent, #54c1d8);
    transform: scale(1.03);
}

#min img {
    display: inline-block;
    width: 20% !important;
    cursor: pointer;
    border: 2px solid var(--neutral-200, #d4ecf3);
    margin: 1%;
    border-radius: var(--radius-sm, 6px);
    transition: border-color var(--transition, .25s ease), transform var(--transition, .25s ease);
}

#tb tr th {
    background: var(--accent-pale, #eaf4f8);
    color: var(--primary, #156082);
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#tb tr td {
    background: #fff;
    border-bottom: 1px solid var(--neutral-100, #eaf4f8);
}

#divs2 { display: flex; gap: 32px; align-items: flex-start; }
.div2 { flex: 1; }
.div2 img { width: 100%; border-radius: var(--radius-sm, 6px); }
.div2 h3 { padding: 12px 0; color: var(--primary-mid, #1c7fa8); }
#texte a { text-decoration: underline; }

.tb { margin: 12px 0; }
.tb tr td { padding: 6px; }

#rdv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent, #54c1d8);
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 24px;
    margin: 16px 0;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(84,193,216,.3);
    transition: background var(--transition, .25s ease);
    text-decoration: none;
}

#rdv:hover {
    background: var(--primary, #156082);
    color: #fff !important;
}

@media (max-width: 1000px) {
    .div2 * { margin: 0 auto; }
    .div2 iframe { text-align: center; display: block; max-width: 100%; }
    .tb { margin: 0 auto; }
    #divs2 { flex-direction: column; }
    .div2 { flex: none; }
}

@media (max-width: 640px) {
    #min img { width: 45% !important; }
}

/* =============================================================
   DIAPORAMA CABINETS — fondu automatique 4s (CSS natif)
   ============================================================= */
.cab-slider {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: var(--radius-sm, 6px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(21,96,130,.08));
    background: var(--accent-pale, #eaf4f8);
}

.cab-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: cabFade 16s infinite;
    will-change: opacity;
}

.cab-slider img:nth-child(1) { animation-delay: 0s; }
.cab-slider img:nth-child(2) { animation-delay: 4s; }
.cab-slider img:nth-child(3) { animation-delay: 8s; }
.cab-slider img:nth-child(4) { animation-delay: 12s; }

@keyframes cabFade {
    0%      { opacity: 0; }
    3.125%  { opacity: 1; }
    25%     { opacity: 1; }
    28.125% { opacity: 0; }
    100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cab-slider img {
        animation: none;
        opacity: 1;
    }
    .cab-slider img:nth-child(n+2) { display: none; }
}

@media (max-width: 640px) {
    .cab-slider { max-width: 100%; aspect-ratio: 4 / 3; }
}

/* =============================================================
   BLOC AUTRE CABINET — texte + photo côte à côte
   ============================================================= */
.cab-lien {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 16px 0;
}
.cab-lien-txt { flex: 1; }
.cab-lien-img {
    width: 240px;
    max-width: 40%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm, 6px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(21,96,130,.08));
    flex-shrink: 0;
}
@media (max-width: 750px) {
    .cab-lien { flex-direction: column-reverse; gap: 12px; }
    .cab-lien-img { width: 100%; max-width: 320px; }
}
