/* =========================================================
   ANCHISI ASSURANCES — INFORMATIONS LÉGALES
========================================================= */

:root {
    --accent: rgba(237, 181, 112, 1);
    --accent-light: #f6dfc5;
    --accent-dark: #c58d50;

    --anthracite: #606264;
    --anthracite-dark: #4f5153;
    --anthracite-light: #737577;

    --black: #26282b;
    --dark: #34363a;

    --gray-700: #626262;
    --gray-500: #888888;
    --gray-300: #d7d5d1;
    --gray-200: #e8e6e1;

    --white: #ffffff;
    --off-white: #faf9f6;

    --border: #dfddd8;
    --container: 1240px;

    --radius-sm: 4px;
    --transition: 220ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--dark);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button {
    font: inherit;
    cursor: pointer;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* =========================================================
   BOUTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}

.btn-primary:hover {
    background: #efb16b;
}

.btn-small {
    min-height: 45px;
    padding-inline: 19px;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    background: rgba(255, 255, 255, .96);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 86px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-image {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
    margin-right: 42px;
}

.main-nav a {
    position: relative;
    padding: 7px 0;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--accent-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--black);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 145px;
    padding-right: 20px;
    border-right: 1px solid rgba(96, 98, 100, .16);
}

.header-phone-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: var(--gray-700);
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.phone-status {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(237, 181, 112, .13);
}

.header-phone-number {
    color: var(--anthracite);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.header-phone-number:hover {
    color: var(--accent-dark);
    transform: translateX(2px);
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 5px auto;
    background: var(--black);
}

/* =========================================================
   BANDEAU LÉGAL
========================================================= */

.legal-hero {
    padding: 42px 0 38px;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}

.legal-hero .eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.legal-hero h1 {
    margin: 0;
    color: var(--anthracite);
    font-size: clamp(30px, 3.3vw, 42px);
    line-height: 1.15;
    letter-spacing: -.03em;
}

.legal-hero h1 em {
    color: var(--accent-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.legal-hero p {
    margin: 12px 0 0;
    font-size: 13px;
}

/* =========================================================
   CONTENU LÉGAL
========================================================= */

.legal-page {
    padding: 68px 0 100px;
}

.legal-content {
    max-width: 900px;
}

.source-content>strong:first-child,
.source-content>p:first-child strong {
    color: var(--accent-dark);
}

.source-content h2 {
    margin: 54px 0 20px;
    padding-top: 3px;
    color: var(--anthracite);
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.source-content h2:first-child {
    margin-top: 0;
}

.source-content h3 {
    margin: 32px 0 12px;
    color: var(--anthracite-dark);
    font-size: 17px;
    line-height: 1.4;
}

.source-content p {
    margin: 0 0 16px;
    font-size: 14px;
}

.source-content ul {
    margin: 4px 0 20px;
    padding-left: 23px;
}

.source-content li {
    margin-bottom: 9px;
    font-size: 14px;
}

.source-content strong {
    color: var(--anthracite-dark);
}

.source-content a {
    color: var(--anthracite-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 70px 0 25px;
    background: var(--anthracite-dark);
    color: var(--white);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr .7fr .9fr .8fr;
    gap: 70px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.logo-footer .site-logo-image {
    height: 72px;
}

.footer-brand p {
    max-width: 340px;
    margin-top: 25px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.footer-column a,
.footer-column>span {
    margin-bottom: 9px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-cta p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

.footer-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    color: var(--white) !important;
    font-size: 11px !important;
    font-weight: 700;
}

.footer-arrow:hover {
    color: var(--accent) !important;
}

.footer-regulatory {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-top: 28px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-regulatory-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    max-width: 760px;
}

.footer-regulatory-main span {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.55;
}

.footer-regulatory-main strong {
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
}

.footer-credit-warning {
    max-width: 360px;
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
}

.footer-bottom div {
    display: flex;
    gap: 22px;
}

.footer-bottom a {
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent);
}

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

@media (max-width: 1050px) {
    .main-nav {
        gap: 22px;
        margin-right: 22px;
    }

    .footer-main {
        gap: 35px;
    }
}

@media (max-width: 1050px) and (min-width: 801px) {
    .header-phone {
        min-width: auto;
        padding-right: 14px;
    }

    .header-phone-label {
        display: none;
    }

    .header-phone-number {
        font-size: 14px;
        white-space: nowrap;
    }

    .header-actions .btn-small {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 800px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .header-inner {
        min-height: 72px;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 102;
        margin-left: auto;
    }

    .site-logo-image {
        height: 50px;
    }

    .main-nav {
        position: fixed;
        z-index: 101;
        top: 72px;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 15px 18px 25px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 35px rgba(0, 0, 0, .08);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 280ms ease,
            opacity 280ms ease,
            visibility 280ms ease;
    }

    .main-nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav a {
        width: 100%;
        padding: 15px 8px;
        border-bottom: 1px solid var(--gray-200);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .main-nav a::after {
        display: none;
    }

    .site-footer {
        padding: 54px 0 22px;
    }

    .footer-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 38px;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-footer {
        width: 100%;
        justify-content: center;
    }

    .footer-brand p {
        max-width: 330px;
        margin: 18px auto 0;
        text-align: center;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-column h3 {
        margin-bottom: 14px;
    }

    .footer-column a,
    .footer-column>span,
    .footer-column p {
        text-align: center;
    }

    .footer-arrow {
        justify-content: center;
    }

    .footer-regulatory {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 24px;
        padding: 18px 0;
        text-align: left;
    }

    .footer-regulatory-main {
        display: flex;
        flex-direction: column;
        gap: 5px;
        max-width: none;
        text-align: left;
    }

    .footer-regulatory-main span,
    .footer-credit-warning {
        text-align: left;
    }

    .footer-credit-warning {
        max-width: none;
        margin: 0;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding-top: 18px;
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
    }
}

@media (max-width: 600px) {
    .legal-hero {
        padding: 34px 0 30px;
    }

    .legal-hero h1 {
        font-size: 30px;
    }

    .legal-page {
        padding: 48px 0 70px;
    }

    .source-content h2 {
        margin-top: 42px;
        font-size: 21px;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 28px);
    }

    .site-logo-image {
        height: 44px;
    }

    .logo-footer .site-logo-image {
        height: 56px;
    }

    .footer-bottom {
        font-size: 8px;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 3px;
}