:root {
    --navy: #0a2f42;
    --red: #c33c38;
    --white: #ffffff;
    --navy-light: #163d55;
    --cream: #f8f5f0;
}

body {
margin: 0;
}

.container {
width: 100%;
margin: auto;
}

em {
color: var(--red);
}

.btn {
padding: 0.85rem 2rem !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.05em !important;
    transition: background 0.2s, color 0.2s, transform 0.2s !important;
}

.btn-red {
    background-color: var(--red);
}

.btn-red:hover {
    background-color: var(--navy) !important;
}

.btn-blue {
    background-color: white;
    border: 2px solid var(--navy) !important;
    color: var(--navy);
}

.btn-blue:hover {
        background-color: var(--navy) !important;
color : white;
}

/* HEADER */
.header-flex {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1140px;
}

.logo img {
max-height: 60px;
width: auto;
}

/* MENU */
.main-nav ul {
display: flex;
gap: 20px;
list-style: none;
margin: 0;
}

.main-nav a {
text-decoration: none;
text-transform: uppercase;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.main-nav .contact a {
text-decoration: none;
text-transform: uppercase;
    color: var(--white);
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.4rem !important;
    transition: background 0.2s !important;
}

/* BURGER */
.burger {
display: none;
font-size: 24px;
background: none;
border: none;
}

/* SUBMENU */
.submenu {
text-align: center;
padding: 20px;
}

/* FOOTER */
.footer-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

.burger {
    display: block;
}

.main-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 100%;
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    flex-direction: column;
    padding: 20px;
}

}


.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.9s 0.3s ease both;
}

.hero-card-stack {
    position: relative;
    width: 320px;
    height: 400px;
}

.hero-card {
    position: absolute;
    border-radius: 4px;
    padding: 1.8rem;
    box-shadow: 0 8px 40px rgba(10,47,66,0.12);

    transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
                box-shadow 0.4s cubic-bezier(.2,.8,.2,1),
                opacity 0.3s ease;

    will-change: transform;
}

/* =========================
   BASE POSITIONS + ANIMATIONS
   ========================= */

.hero-card:nth-child(1) {
    top: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: var(--white);
    animation: float1 5s ease-in-out infinite;
    transform: rotate(-3deg);
    z-index: 1;
}

.hero-card:nth-child(2) {
    top: 80px;
    left: 40px;
    right: -20px;
    background: var(--white);
    animation: float2 5.5s ease-in-out infinite;
    transform: rotate(1.5deg);
    z-index: 2;
}

.hero-card:nth-child(3) {
    top: 160px;
    left: -10px;
    right: 10px;
    background: var(--red);
    color: var(--white);
    animation: float3 6s ease-in-out infinite;
    transform: rotate(-1deg);
    z-index: 3;
}

/* =========================
   FLOAT ANIMATIONS (IMPORTANT)
   -> on garde rotate constant
   ========================= */

@keyframes float1 {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-8px) rotate(-3deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0) rotate(1.5deg);
    }
    50% {
        transform: translateY(-6px) rotate(1.5deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* =========================
   HOVER PREMIUM SMOOTH
   ========================= */

.hero-card:hover {
    z-index: 999;
    transform: translateY(-12px) scale(1.05) rotate(0deg);
    box-shadow: 0 25px 70px rgba(10,47,66,0.18);
}

