/* ==========================================================================
   Project: Auprès2Vous - Architecture de Décision
   Version: 5.0
   Design: Premium, Minimalist, Breathing Space
   ========================================================================== */

:root {
    --primary: #1a2a44;      /* Deep Midnight Blue - Security, Depth */
    --secondary: #c5a059;    /* Refined Gold - Premium, Guidance */
    --accent: #e8f1f2;       /* Soft Mist - Clarity, Breathing */
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --header-height: 110px;
    --container-width: 1200px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 1.5rem auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-rows: var(--header-height) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    background: var(--primary);
}

/* Le container devient l'enfant de la 2e ligne de la grille */
.hero > .container {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.hero-content {
    color: var(--white);
    max-width: 900px;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 4rem);
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.hero-main-title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-main-title span {
    color: var(--white) !important;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
}

.dot {
    color: var(--secondary);
}

.hero-subtitle {
    display: block;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: 400;
    color: var(--secondary);
    margin-top: clamp(0.5rem, 1vw, 1rem);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
    opacity: 0.9;
    font-weight: 300;
    padding: 0 1rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Hero Background & Frame --- */
.hero-bg-single {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url("assets/images/fondhero.png") center/cover no-repeat;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 68, 0.15);
    z-index: 2;
}

.hero-frame {
    position: absolute;
    top: calc(var(--header-height) + 20px);
    left: 40px;
    right: 40px;
    bottom: 40px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 4;
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE — 4 paliers : large (1600+), desktop (≤1200), tablet (≤1024/768), phone (≤480)
   ========================================================================== */

/* --- Très grands écrans (≥ 1600px) --- */
@media (min-width: 1600px) {
    .hero-content {
        max-width: 1000px;
    }
    .hero-content p {
        max-width: 800px;
    }
}

/* --- Écrans moyens (≤ 1200px) --- */
@media (max-width: 1200px) {
    h1 { font-size: clamp(2rem, 4vw, 3rem); }
}

/* --- Petits laptops / tablettes paysage (≤ 1024px) --- */
@media (max-width: 1024px) {
    .nav-links { display: none; }

    .hero-frame {
        top: calc(var(--header-height) + 10px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .hero-main-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-main-title span {
        font-size: clamp(1.8rem, 8vw, 3rem) !important;
    }

    .dot { display: none; }

    .hero-subtitle {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
    }

    .hero-content p {
        font-size: clamp(0.85rem, 2vw, 1.1rem);
    }

    .activities-container {
        margin-top: 4rem;
        padding: 1.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- Tablettes (≤ 768px) --- */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero > .container {
        padding: 1rem;
    }

    .hero-frame {
        top: calc(var(--header-height) + 10px);
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-content p {
        font-size: clamp(0.85rem, 3vw, 1rem);
        margin-bottom: 1.5rem;
    }

    .hero-btns .btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* --- Smartphones (≤ 480px) --- */
@media (max-width: 480px) {
    .hero {
        grid-template-rows: 60px 1fr;
    }

    .hero > .container {
        padding: 0.75rem;
    }

    .hero-frame {
        top: 70px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
        margin-bottom: 0.75rem;
    }

    .hero-main-title span {
        font-size: clamp(1.6rem, 10vw, 2.2rem) !important;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .hero-btns {
        gap: 0.75rem;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* --- Sections Styles --- */
#vision .section-title {
    margin-top: 20px;
}

.activities-container {
    margin-top: 8rem;
    padding: 4rem;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 30px;
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.rcd-section {
    background: var(--accent);
}

.step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-image {
    flex: 1;
}

.step-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.step-content {
    flex: 1;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(197, 160, 89, 0.2);
    margin-bottom: -1rem;
}

.about {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 40px;
}

.about-content {
    flex: 1;
}

footer {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}
