/* ===============================
   Variables
================================ */

:root {
    --navy: #0b1f33;
    --blue: #1769aa;
    --blue-dark: #0d4f87;
    --blue-light: #eaf4fb;
    --text: #253746;
    --muted: #687987;
    --light: #f6f8fa;
    --white: #ffffff;
    --border: #dce5eb;

    --shadow: 0 18px 45px rgba(11, 31, 51, 0.08);
    --radius: 14px;
    --container: 1180px;
}

/* ===============================
   Reset
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ===============================
   Éléments généraux
================================ */

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--light);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.15;
}

h1 {
    max-width: 760px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--muted);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
}

.button-primary {
    color: var(--white);
    background: var(--blue);
}

.button-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.button-secondary {
    color: var(--navy);
    border-color: var(--border);
    background: var(--white);
}

.button-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.button-light {
    color: var(--navy);
    background: var(--white);
}

.button-light:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

/* ===============================
   Barre supérieure
================================ */

.topbar {
    color: var(--white);
    background: var(--navy);
    font-size: 0.82rem;
}

.topbar-content {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar a {
    font-weight: 700;
}

/* ===============================
   Header
================================ */

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-content {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    color: var(--navy);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
}

.logo-subtitle {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.92rem;
    font-weight: 700;
}

.main-nav a {
    transition: 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue);
}

.nav-button {
    padding: 12px 18px;
    color: var(--white) !important;
    border-radius: 5px;
    background: var(--blue);
}

.nav-button:hover {
    background: var(--blue-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background: var(--navy);
}

/* ===============================
   Hero
================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
    background:
        linear-gradient(110deg, #f6f9fb 0%, #ffffff 64%);
}

.hero::after {
    position: absolute;
    right: -180px;
    bottom: -250px;
    width: 550px;
    height: 550px;
    border: 80px solid rgba(23, 105, 170, 0.06);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 80px;
}

.hero-text {
    max-width: 650px;
    margin-top: 28px;
    font-size: 1.13rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-details {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-details span::before {
    margin-right: 8px;
    color: var(--blue);
    content: "✓";
}

.hero-visual {
    position: relative;
    min-height: 420px;
    border-radius: 25px;
    background:
        linear-gradient(145deg, rgba(23, 105, 170, 0.95), rgba(11, 31, 51, 0.98));
    box-shadow: var(--shadow);
}

.hero-visual::before {
    position: absolute;
    top: 45px;
    right: 45px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 50%;
    content: "";
}

.visual-card {
    position: absolute;
    right: 45px;
    bottom: 45px;
    display: flex;
    min-width: 245px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
}

.visual-card span {
    margin-top: 12px;
    color: #beddf2;
    font-size: 0.85rem;
}

.visual-card strong {
    margin-top: 3px;
    font-size: 1.1rem;
}

.visual-card-small {
    top: 75px;
    right: auto;
    bottom: auto;
    left: 40px;
    min-width: 190px;
}

.visual-icon {
    font-size: 2.4rem;
}

/* ===============================
   Introduction
================================ */

.intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
}

.intro-grid > div:last-child {
    padding-top: 10px;
}

.intro-grid p {
    margin-bottom: 18px;
    font-size: 1.08rem;
}

/* ===============================
   Prestations
================================ */

.section-heading {
    max-width: 730px;
    margin-bottom: 55px;
}

.section-heading > p:last-child {
    margin-top: 22px;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 30px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: 0.3s ease;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 22px;
    color: #c8d8e3;
    font-size: 0.8rem;
    font-weight: 700;
}

.service-icon {
    margin-bottom: 22px;
    color: var(--blue);
    font-size: 2.1rem;
}

.service-card p {
    margin: 16px 0 25px;
    font-size: 0.95rem;
}

.text-link {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ===============================
   Expertise
================================ */

.expertise-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    gap: 90px;
}

.expertise-panel {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: var(--white);
    background: var(--navy);
    box-shadow: var(--shadow);
}

.panel-label {
    color: #8dbdde;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.expertise-panel strong {
    margin: 15px 0 0;
    font-size: 8rem;
    line-height: 1;
}

.expertise-panel > span:last-child {
    color: #c4d9e8;
}

.expertise-content > p:not(.eyebrow) {
    max-width: 650px;
    margin: 24px 0;
    font-size: 1.05rem;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 25px;
    max-width: 650px;
    margin: 25px 0 32px;
    list-style: none;
}

.check-list li {
    color: var(--text);
    font-weight: 700;
}

.check-list li::before {
    margin-right: 8px;
    color: var(--blue);
    content: "✓";
}

/* ===============================
   CEE
================================ */

.cee-section {
    padding-top: 20px;
}

.cee-box {
    display: grid;
    grid-template-columns: 1fr 230px;
    align-items: center;
    gap: 60px;
    padding: 65px;
    border-radius: 20px;
    background: var(--blue);
}

.cee-content h2,
.cee-content p {
    color: var(--white);
}

.cee-content h2 {
    max-width: 760px;
}

.cee-content > p:not(.eyebrow):not(.cee-note) {
    max-width: 780px;
    margin-top: 20px;
    color: #e1f1fc;
}

.cee-note {
    max-width: 780px;
    margin-top: 18px;
    color: #b9dbef !important;
    font-size: 0.88rem;
}

.cee-content .button {
    margin-top: 25px;
}

.cee-badge {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
}

.cee-badge span {
    font-size: 3rem;
    font-weight: 900;
}

.cee-badge small {
    color: #c9e5f6;
}

/* ===============================
   CTA
================================ */

.cta-section {
    padding: 80px 0;
    background: var(--navy);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cta-content h2,
.cta-content p {
    color: var(--white);
}

.cta-content p:last-child {
    margin-top: 14px;
    color: #b8cbd8;
}

/* ===============================
   Contact
================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.contact-intro h2 {
    margin-bottom: 24px;
}

.contact-intro > p:not(.eyebrow) {
    max-width: 420px;
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.contact-details div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-details span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-details a,
.contact-details strong {
    color: var(--navy);
    font-size: 1.08rem;
}

.contact-form {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: 0.2s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 5px 0 22px;
    color: var(--muted);
    font-size: 0.82rem;
}

.form-checkbox input {
    margin-top: 5px;
}

.form-notice {
    margin-top: 14px;
    font-size: 0.8rem;
}

/* ===============================
   Footer
================================ */

.site-footer {
    color: #b9cad6;
    background: var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding: 70px 0;
}

.footer-logo {
    display: inline-block;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.07em;
}

.footer-grid p {
    max-width: 300px;
    margin-top: 15px;
    color: #a8bfce;
}

.footer-grid h3 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: 1rem;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #8fa8b8;
    font-size: 0.8rem;
}

.footer-bottom div {
    display: flex;
    gap: 20px;
}

/* ===============================
   Responsive
================================ */

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid,
    .intro-grid,
    .expertise-grid,
    .contact-grid {
        gap: 50px;
    }

    .main-nav {
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 30px, var(--container));
    }

    .section {
        padding: 70px 0;
    }

    .topbar-content {
        justify-content: center;
        text-align: center;
    }

    .topbar-content span {
        display: none;
    }

    .header-content {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 15px;
        left: 15px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 13px 10px;
    }

    .nav-button {
        text-align: center;
    }

    .hero {
        padding: 75px 0;
    }

    .hero-grid,
    .intro-grid,
    .expertise-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 330px;
    }

    .intro-grid {
        gap: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .expertise-panel {
        min-height: 280px;
    }

    .expertise-panel strong {
        font-size: 6rem;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .cee-box {
        grid-template-columns: 1fr;
        padding: 35px 25px;
    }

    .cee-badge {
        width: 170px;
        min-height: 170px;
        margin: 0 auto;
    }

    .cta-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 25px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom div {
        flex-direction: column;
        gap: 6px;
    }
}

/* ============================================================
 * 11. Logo image (pages juridiques : mentions légales,
 *     politique de confidentialité) — taille légèrement réduite
 * ============================================================ */
.logo-img {
    display: block;
    height: auto;
    width: clamp(150px, 22vw, 200px);
}

.footer-logo-img {
    display: block;
    height: auto;
    width: clamp(130px, 18vw, 180px);
}

/* ============================================================
 * 12. Mise en page commune des pages juridiques
 * ============================================================ */
.legal-page {
    background: var(--white);
}

.legal-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

.legal-container h1 {
    margin: 0 0 0.5rem;
    color: var(--navy);
}

.legal-container h2 {
    margin: 1.5rem 0 0.75rem;
    color: var(--navy);
}

.lead {
    color: var(--muted);
    margin: 0 0 2rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 1.25rem;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover { color: var(--blue); }

dl.faq, dl.defs {
    margin: 0;
    display: grid;
    gap: 0.6rem 1rem;
}

dt {
    font-weight: 700;
    color: var(--blue-dark);
}

.note {
    background: var(--blue-light);
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--blue);
    color: var(--text);
    margin: 0 0 1rem;
}

.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}

.page-nav a {
    color: var(--blue);
}

.page-nav a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .logo-img { width: clamp(130px, 38vw, 180px); }
    .footer-logo-img { width: clamp(110px, 32vw, 160px); }
}

/* ===============================
   Pages légales
   (mentions & politique)
================================ */

.legal-main {
    padding: 60px 0 80px;
    background: var(--bg);
}

.legal-header {
    margin-bottom: 35px;
}

.legal-header .eyebrow {
    margin-bottom: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.legal-header h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.legal-header p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.legal-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 32px 36px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
}

.legal-content section {
    margin-bottom: 28px;
}

.legal-content h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.legal-content p {
    margin: 0 0 10px;
    font-size: 0.98rem;
}

.legal-content ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.legal-content li {
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.legal-content dl {
    margin: 8px 0 10px;
}

.legal-content dt {
    font-weight: 600;
    margin-bottom: 2px;
}

.legal-content dd {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.96rem;
}

.legal-note {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--blue-light);
    color: var(--navy);
    font-size: 0.95rem;
}

.legal-nav {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.95rem;
}

.legal-nav a {
    color: var(--blue);
    text-decoration: none;
}

.legal-nav a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 640px) {
    .legal-main {
        padding: 40px 0 60px;
    }

    .legal-content {
        padding: 22px 18px 26px;
        border-radius: 10px;
    }
}
/* ============================================================
   Clients
   ============================================================ */

.clients-section {
    background: #ffffff;
}

.clients-heading {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 1.5rem;
}

.client-logo {
    min-height: 110px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.10);
}

.client-logo img {
    display: block;
    max-width: 100%;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .clients-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .clients-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .client-logo {
        min-height: 90px;
        padding: 1rem;
    }

    .client-logo img {
        max-height: 50px;
    }
}