/* ==========================================================================
   LW Conseils — Page Accueil
   Design system global + spécifiques à la homepage
   ========================================================================== */

/* ========== VARIABLES GLOBALES ========== */
:root {
    /* Couleurs principales */
    --color-blue:        #113484;
    --color-yellow:      #DAA500;
    --color-grey:        #D9D9D9;
    --color-white:       #FFFFFF;

    /* Couleurs secondaires */
    --color-blue-light:  #4F7BEA;
    --color-grey-dark:   #4B4B4B;
    --color-yellow-light: #F6D55C;

    /* Dimensions */
    --radius:     14px;
    --radius-btn: 8px;
    --max-width:  1180px;
}

/* ========== RESET MINIMAL ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-grey-dark);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========== TYPOGRAPHIE ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-blue);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(32px, 6vw, 56px);
}

h2 {
    font-size: clamp(28px, 5vw, 48px);
}

h3 {
    font-size: 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-yellow);
}

/* ========== CONTENEUR GLOBAL ========== */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 600px) {
    .wrap {
        padding: 0 20px;
    }
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-grey);
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--color-blue);
    letter-spacing: -0.5px;
}

/* ========== HERO ========== */
.hero {
    padding: 160px 0;
    text-align: center;
    background-color: var(--color-blue);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 123, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(218, 165, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero .eyebrow {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--color-white);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-actions {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BOUTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bouton primaire : jaune sur bleu */
.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-blue);
    box-shadow: 0 10px 24px rgba(218, 165, 0, 0.35);
    border: 2px solid var(--color-yellow);
}

.btn-primary:hover {
    background-color: var(--color-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(218, 165, 0, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: 2px solid var(--color-yellow);
    outline-offset: 4px;
}

/* Bouton secondaire : contour blanc sur bleu */
.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    margin-left: 12px;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.35);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-outline:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

/* ========== SECTION ========== */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .eyebrow {
    color: var(--color-yellow);
}

.section h2 {
    margin-top: 16px;
    line-height: 1.2;
}

/* ========== CARTES FONCTIONNALITÉS ========== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.feature-card {
    padding: 48px 32px;
    background-color: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-grey);
    text-align: left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 12px 32px rgba(17, 52, 132, 0.12);
    transform: translateY(-8px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 120px;
}

.footer a {
    color: var(--color-yellow);
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* ========== RESPONSIVE ========== */

/* Tablette (≤920px) */
@media (max-width: 920px) {
    .hero {
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .section {
        padding: 80px 0;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .btn-outline {
        margin-left: 0;
        margin-bottom: 0;
    }

    .section {
        padding: 80px 0;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 32px 24px;
    }
}