/* ===========================
   Variables et Couleurs
   =========================== */
:root {
    /* Couleurs principales */
    --color-brand: #0073e6;
    --color-text-title: #00004b;
    --color-text-default: #2f313c;
    --color-text-subtle: #494e5f;
    --color-text-on-color: white;
    
    /* Couleurs de fond */
    --color-bg-default: #f3f5f7;
    --color-bg-white: white;
    --color-bg-card: white;
    
    /* Couleurs des bordures */
    --color-border-default: #e7eaef;
    --color-border-white: white;
    
    /* Ombres */
    --shadow-xs: 0px 1px 2px 0px rgba(20, 34, 38, 0.05);
    --shadow-subtle: 0px 1px 1px rgba(20, 34, 38, 0.05);
    
    /* Espacements */
    --spacing-sm: 6px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 48px;
    --spacing-5xl: 120px;
    
    /* Polices */
    --font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Border radius */
    --radius-md: 6px;
    --radius-lg: 8px;
}

/* ===========================
   Réinitialisation globale
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-default);
    color: var(--color-text-default);
    line-height: 1.5;
    overflow-x: hidden;
    font-optical-sizing: auto;
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-default);
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.header-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-5xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo {
    height: 32px;
    display: block;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.language-switcher {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 550;
    color: var(--color-text-title);
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.language-switcher:hover {
    background-color: var(--color-bg-default);
}

.language-switcher svg {
    width: 16px;
    height: 16px;
    color: var(--color-text-title);
}

/* ===========================
   Language Dropdown
   =========================== */
.lang-selector {
    position: relative;
}

.lang-selector.open .language-switcher {
    border-color: var(--color-border-default);
    color: var(--color-text-title);
    background-color: var(--color-bg-white);
}

.lang-selector.open .language-switcher svg {
    color: var(--color-text-title);
}

.lang-chevron {
    transition: transform 0.2s ease;
}

.lang-selector.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 156px;
    padding: 8px;
    background-color: #f5f7fa;
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-lg);
    box-shadow: 0px 4px 12px rgba(20, 34, 38, 0.12);
    z-index: 200;
}

.lang-selector.open .lang-dropdown {
    display: block;
}

.lang-option {
    width: 100%;
    padding: 9px 12px;
    text-align: left;
    white-space: nowrap;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 475;
    color: var(--color-text-default);
    transition: background-color 0.15s ease;
}

.lang-option + .lang-option {
    margin-top: 4px;
}

.lang-option:hover {
    background-color: var(--color-bg-default);
}

.lang-option.active {
    background-color: var(--color-brand);
    color: var(--color-text-on-color);
    font-weight: 550;
}

/* ===========================
   Background Decoration
   =========================== */
.background-decoration {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 159.092px;
    z-index: 0;
    overflow: hidden;
}

.background-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   Main Content
   =========================== */
.main-content {
    position: relative;
    z-index: 10;
    padding-top: 72px;
    min-height: 100vh;
    display: block;
}

.hero-section {
    width: 1200px;
    margin: 58px auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4xl);
}

/* Hero Text */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 851px;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 675;
    line-height: 40px;
    color: var(--color-text-title);
    letter-spacing: 0;
}

.hero-text p {
    width: 733px;
    font-size: 16px;
    font-weight: 550;
    line-height: 24px;
    color: var(--color-text-default);
    letter-spacing: 0;
}

/* ===========================
   Cards Container
   =========================== */
.cards-container {
    display: flex;
    gap: var(--spacing-2xl);
    width: 1200px;
}

.card {
    width: 588px;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-xs);
}

.tools-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 1200px;
}

.commitment {
    width: 1200px;
    padding: 16px;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.commitment-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.commitment-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-title);
}

.commitment-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.commitment-title-row h3 {
    font-size: 16px;
    font-weight: 550;
    line-height: 24px;
    color: var(--color-text-title);
}

.commitment-text {
    width: 1168px;
    font-size: 14px;
    font-weight: 475;
    line-height: 20px;
    color: var(--color-text-default);
    white-space: pre-line;
}

/* Card Icon */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.icon-wrapper {
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(189, 213, 245, 0.6), rgba(189, 213, 245, 0));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    width: 48px;
    height: 48px;
}

.icon-wrapper img {
    object-fit: contain;
}

/* Card Content */
.card-content {
    width: 524px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.card-content h2 {
    font-size: 20px;
    font-weight: 675;
    line-height: 32px;
    color: var(--color-text-title);
    letter-spacing: 0;
}

.card-content p {
    font-size: 16px;
    font-weight: 475;
    line-height: 24px;
    color: var(--color-text-subtle);
    letter-spacing: 0;
}

.assessment-maintenance-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    color: var(--color-text-title);
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 475;
    font-size: 12px;
    line-height: 16px;
    font-feature-settings: 'pnum' on, 'lnum' on;
}

.assessment-maintenance-notice img {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.assessment-maintenance-notice span {
    flex: 1 1 auto;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 550;
    line-height: 20px;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-xs);
    letter-spacing: 0;
    align-self: flex-start;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-brand);
    color: var(--color-text-on-color);
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background-color: #0066cc;
    box-shadow: 0px 4px 8px 0px rgba(0, 115, 230, 0.15);
}

.btn-primary:active {
    background-color: #0059a8;
    transform: translateY(0);
}

.btn-disabled,
.btn-disabled:hover,
.btn-disabled:active {
    background-color: #a7b0c7;
    border-color: #a7b0c7;
    color: var(--color-text-on-color);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .header-content {
        padding: var(--spacing-lg) var(--spacing-3xl);
    }

    .hero-section {
        width: 100%;
        margin-top: 40px;
        padding: 0 var(--spacing-3xl);
    }

    .cards-container {
        flex-direction: column;
        width: 100%;
    }

    .card {
        width: 100%;
    }

    .tools-section {
        width: 100%;
    }

    .commitment {
        width: 100%;
    }

    .commitment-text {
        width: 100%;
    }

    .hero-text p {
        width: 100%;
    }

    .card-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-5xl: 24px;
    }

    .header {
        height: 64px;
    }

    .header-content {
        padding: var(--spacing-lg) var(--spacing-lg);
    }

    .background-decoration {
        height: 100px;
    }

    .hero-section {
        padding: 0 var(--spacing-lg);
        margin-top: 24px;
    }

    .hero-text h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .hero-text p {
        font-size: 14px;
        line-height: 20px;
    }

    .card {
        padding: var(--spacing-xl);
    }

    .card-content h2 {
        font-size: 18px;
        line-height: 28px;
    }

    .cards-container {
        gap: var(--spacing-lg);
    }

    .commitment {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 24px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .card {
        width: 100%;
    }
}
