/* --- DÉCLARATION DES POLICES LOCALES --- */

/* Bebas Neue */
/* Bebas Neue - Titres */
@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/Bebas_Neue/BebasNeue-Regular.woff2') format('woff2'),
    url('../fonts/Bebas_Neue/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

/* Montserrat - Light (300) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Light.woff2') format('woff2'),
    url('../fonts/Montserrat/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Montserrat - Regular (400) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Regular.woff2') format('woff2'),
    url('../fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Montserrat - SemiBold (600) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-SemiBold.woff2') format('woff2'),
    url('../fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Montserrat - ExtraBold (800) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-ExtraBold.woff2') format('woff2'),
    url('../fonts/Montserrat/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* --- RESET & BASES --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
strong {
    font-weight: 800 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* État actif du lien de navigation */
.nav-links a.active {
    color: #2558a2;
    font-weight: 800;
}

/* Optionnel : une petite barre sous le lien actif */
.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ff926b;
    margin-top: 2px;
}

/* --- NAVIGATION --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #2558a2;
}
.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
}

.scroll-progress {
    width: 0%;
    height: 100%;
    background: #2558a2;
    transition: width 0.1s ease-out;
}

/* 1. Style du bouton Burger (caché sur PC) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
}

.burger-menu .bar {
    width: 28px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animation du Burger en "X" quand il est actif */
.burger-menu.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-menu.active .bar:nth-child(2) { opacity: 0; }
.burger-menu.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- HERO SECTION --- */

.finisher-header {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.top-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 5px;
    margin-top: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-content h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.main-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 10px;
    opacity: 0.9;
}

/* --- HERO LOGO --- */

.hero-logo {
    display: block;
    width: 180px;
    margin: 5px auto 0;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}


/* --- SECTION QUI SOMMES-NOUS --- */

.white-section {
    background-color: #ffffff;
    padding: 100px 0 60px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.main-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    line-height: 1;
    color: #1c2431;
}

.divider {
    width: 70px;
    height: 5px;
    background-color: #ff926b;
    margin: 15px 0 25px 0;
}

.about-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}


/* --- EFFET ZOOM IMAGE --- */

.image-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: 0.4s;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    display: block;
    border-radius: 6px;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}


/* --- GRILLE POURQUOI NOUS --- */

.expertises-container {
    padding-bottom: 40px;
}

.sub-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    color: #1c2431;
    margin-bottom: 50px;
    text-align: center;
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #ff926b;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #1c2431;
}

.card p {
    font-size: 0.85rem;
    color: #525252;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* --- SECTION INSTITUTIONNELLE --- */

.product-section.dark-theme {
    background-color: #002358;
    padding: 80px 0;
    color: #ffffff;
}

.intro-block-left {
    text-align: left;
    margin-bottom: 60px;
}

.dark-theme .main-title {
    color: #ffffff;
}

.intro-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 900px;
}


/* --- GRILLE PRODUITS --- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.4s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-family: 'Bebas Neue', cursive;
    color: #002358;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-info p {
    font-family: 'Montserrat', sans-serif;
    color: #555555;
    font-size: 0.85rem;
}

/* Centrage du bloc de pied de section (Texte + Bouton) */
.product-footer-left,
.product-footer-centered {
    margin-top: 60px;
    font-style: italic;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ajustement du paragraphe pour éviter qu'il soit trop large */
.product-footer-left p,
.product-footer-centered p {
    max-width: 830px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.btn-contact-violet {
    margin: 0 auto;
}

/* --- FILTRES PROFESSIONNELS --- */

.filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-btn {
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #555;
}

.filter-btn.active {
    background-color: #002358;
    color: #ffffff;
    border-color: #002358;
}

.filter-btn:hover:not(.active) {
    background-color: #eee;
    border-color: #bbb;
}

.prof-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.prof-card.hide {
    display: none;
}


/* --- SECTION DIGITAL (DARK & COMPACT) --- */

.dark-gray-theme {
    background: #111111;
    padding: 50px 0;
    overflow: hidden;
}

.digital-title {
    color: #ffffff !important;
}

.intro-description {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
}

/* --- CAROUSEL 3D --- */

.container-3d {
    position: relative;
    width: 450px;
    height: 250px;
    margin: 40px auto 20px auto;
    perspective: 1500px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel__face {
    position: absolute;
    width: 450px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    z-index: 1;
}

.carousel__face::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    z-index: 2;
}

.face-1 { background-image: url("../image/car/916-1.webp"); transform: rotateY(0deg) translateZ(400px); }
.face-2 { background-image: url("../image/car/story-2.webp"); transform: rotateY(60deg) translateZ(400px); }
.face-3 { background-image: url("../image/car/planning-3.webp"); transform: rotateY(120deg) translateZ(400px); }
.face-4 { background-image: url("../image/car/captation-4.webp"); transform: rotateY(180deg) translateZ(400px); }
.face-5 { background-image: url("../image/car/boost-5.webp"); transform: rotateY(240deg) translateZ(400px); }
.face-6 { background-image: url("../image/car/veille-6.webp"); transform: rotateY(300deg) translateZ(400px); }

.face-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 15px;
    z-index: 3;
}

.face-content h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    margin-bottom: 5px;
}
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 100px;
}

.nav-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #ff926b;
    color: #ff926b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.nav-btn:hover {
    background: #ff926b;
    color: #111;
}

/* --- FOOTER DE SECTION DIGITAL --- */

.product-footer-centered {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-subtext {
    color: #ffffff !important;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 0.9rem;
}


/* --- SECTION ÉQUIPE --- */

.team-section {
    background-color: #f4f4f4;
    padding: 80px 0;
}

.team-section .main-title {
    color: #333 !important;
}

.team-section .intro-description {
    color: #000000 !important;
}

.team-section .divider {
    background-color: #fa5b04;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    color: white;
}

.team-card:nth-child(3n+1) { background: #ca2e87; }
.team-card:nth-child(3n+2) { background: #007DB8; }
.team-card:nth-child(3n+3) { background: #038747; }

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.4);
    background: white;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.team-info h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    color: #ffffff;
}

.team-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}


/* --- CONTACT & FOOTER --- */

.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-card-simple {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    border-left: 8px solid #007DB8;
}

.bebas-font {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: #007DB8;
}

.contact-map {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.btn-contact-violet {
    display: inline-block;
    padding: 18px 60px;
    background-color: #ca2e87;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(161, 0, 200, 0.2);
    cursor: pointer;
}

.btn-contact-violet:hover {
    background-color: #c100f0;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(161, 0, 200, 0.4);
    letter-spacing: 1px;
}

.btn-contact-violet:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(161, 0, 200, 0.3);
}
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 0;
    font-family: 'Montserrat', sans-serif;
    border-top: 4px solid #1EB8FF;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1EB8FF;
}

.footer-separator {
    color: #ffffff;
    margin: 0 10px;
    opacity: 0.5;
}

.footer-copy p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.back-to-top a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-to-top a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SECTION CONFIANCE
   ========================================================================== */

.confiance-section {
    background-color: #ffffff;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.confiance-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 5rem;
    color: #007DB8;
    margin-bottom: 60px;
    letter-spacing: 2px;
    line-height: 1;
}

.confiance-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 70px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.slider-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 50px;
    align-items: center;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-item {
    min-width: 250px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: transform 0.3s ease;
}

.logo-item:hover img {
    transform: scale(1.1);
}

.slider-arrow {
    background: none;
    border: none;
    font-size: 3.5rem;
    cursor: pointer;
    color: #0004ff;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 10px;
    z-index: 10;
}

.slider-arrow:hover {
    color: #4db8ff;
    transform: scale(1.2);
}

.confiance-footer {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confiance-footer p {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.7rem;
    color: #000;
    line-height: 1.4;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   PAGES SECONDAIRES (MENTIONS LÉGALES & CONFIDENTIALITÉ)
   ========================================================================== */

.header-small {
    height: 50vh;
    min-height: 300px;
}

.legal-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.legal-box {
    max-width: 900px;
    margin: 0 auto;
}

.legal-box h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: #002358;
    margin: 40px 0 15px 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.legal-box h2:first-child { margin-top: 0; }

.legal-box p, .legal-box li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-box ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-box strong {
    color: #333;
    font-weight: 600;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .confiance-title { font-size: 3.5rem; }
    .logo-item { min-width: 200px; }
}

@media (max-width: 768px) {
    .confiance-title { font-size: 2.8rem; }
    .confiance-footer p { font-size: 1.4rem; padding: 0 10px; }
    .slider-arrow { display: none; }
    .slider-track-container { width: 100%; }
}


/* --- RESPONSIVE GENERAL --- */

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 4rem; }
    .expertises-grid, .products-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .about-flex { flex-direction: column; text-align: center; }
    .container-3d, .carousel__face { width: 350px; height: 220px; }
    .face-1, .face-2, .face-3, .face-4, .face-5, .face-6 { transform: translateZ(320px); }
    .hero-logo { width: 140px; }
}

@media (max-width: 650px) {
    .hero-content h1, .main-title { font-size: 3rem; }
    .expertises-grid, .products-grid, .team-grid { grid-template-columns: 1fr; }
    .container-3d, .carousel__face { width: 260px; height: 180px; }
    .face-1, .face-2, .face-3, .face-4, .face-5, .face-6 { transform: translateZ(240px); }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-logo { width: 110px; margin-top: 25px; }
}
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 9999;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li a {
        display: block;
        padding: 20px 0;
        font-size: 1rem;
    }

    .nav-links.active {
        height: auto;           /* On laisse le menu s'adapter au contenu */
        max-height: 500px;      /* Sécurité pour l'animation si besoin */
        padding-bottom: 10px;   /* Petit espace esthétique en bas */
    }
}

/* --- RESPONSIVE CAROUSEL DIGITAL --- */

@media (max-width: 1024px) {
    .container-3d {
        width: 350px;
        height: 200px;
        perspective: 1200px;
    }
    .carousel__face {
        width: 350px;
        height: 200px;
    }
    .face-1 { transform: rotateY(0deg) translateZ(300px); }
    .face-2 { transform: rotateY(60deg) translateZ(300px); }
    .face-3 { transform: rotateY(120deg) translateZ(300px); }
    .face-4 { transform: rotateY(180deg) translateZ(300px); }
    .face-5 { transform: rotateY(240deg) translateZ(300px); }
    .face-6 { transform: rotateY(300deg) translateZ(300px); }

    .face-content h3 { font-size: 1.8rem; }
}

@media (max-width: 650px) {
    .container-3d {
        width: 280px;
        height: 160px;
        perspective: 800px;
    }
    .carousel__face {
        width: 280px;
        height: 160px;
    }
    .face-1 { transform: rotateY(0deg) translateZ(250px); }
    .face-2 { transform: rotateY(60deg) translateZ(250px); }
    .face-3 { transform: rotateY(120deg) translateZ(250px); }
    .face-4 { transform: rotateY(180deg) translateZ(250px); }
    .face-5 { transform: rotateY(240deg) translateZ(250px); }
    .face-6 { transform: rotateY(300deg) translateZ(250px); }

    .face-content h3 { font-size: 1.4rem; }
    .face-content p { font-size: 0.75rem; }

    .carousel-controls {
        margin-top: 60px;
    }
}