:root {
    --color-navy: #1e2345;
    --color-navy-2: #2c3363;
    --color-coral: #ff6f5a;
    --color-coral-dark: #e95d49;
    --color-ink: #1d2433;
    --color-muted: #5f6674;
    --color-cloud: #f4f6f8;
    --color-band: #eef2ff;
    --color-line: #dfe4ee;
    --color-white: #ffffff;
    --shadow-soft: 0 14px 35px rgba(30, 35, 69, 0.11);
    --radius: 8px;
    --site-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    background-color: var(--color-cloud);
    color: var(--color-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.container,
.section-inner {
    width: min(var(--site-width), calc(100% - 40px));
    margin: 0 auto;
}

header {
    z-index: 20;
    width: 100%;
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 18px 0;
    font-size: 1.15em;
}

.header-container {
    max-width: 50%;
    margin: 0 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span {
    margin: 5px 0;
}

header.nav-open .menu-toggle::before {
    transform: translateY(7px) rotate(45deg);
}

header.nav-open .menu-toggle span {
    opacity: 0;
}

header.nav-open .menu-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 23px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    position: relative;
    padding: 0 0 5px;
    font-size: inherit;
    transition: color 0.3s ease-in-out;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.btn-proposal,
.btn-primary,
.btn-invoice,
.btn-contact,
.btn-next,
.btn-prev,
.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-proposal {
    background-color: var(--color-coral);
    color: var(--color-white);
    padding: 11.5px 17.25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: inherit;
    white-space: nowrap;
    transition: 0.3s ease-in-out;
}

.btn-proposal:hover {
    background-color: var(--color-navy);
    color: var(--color-coral);
    transform: none;
}

.btn-proposal::after {
    display: none;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    font-size: 0.72em;
    line-height: 1;
}

.language-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 7px;
    border-radius: 4px;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.72;
}

.language-option.active {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.language-switch::after,
.language-option::after {
    display: none;
}

.flag {
    width: 17px;
    height: 12px;
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.flag-en {
    background:
        linear-gradient(90deg, transparent 0 42%, #c8102e 42% 58%, transparent 58%),
        linear-gradient(180deg, #ffffff 0 40%, #c8102e 40% 60%, #ffffff 60% 100%);
}

.flag-fr {
    background: linear-gradient(90deg, #244aa5 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.btn-primary:hover,
.btn-invoice:hover {
    background-color: var(--color-coral-dark);
    transform: translateY(-1px);
}

.btn-primary,
.btn-invoice {
    background-color: var(--color-coral);
    color: var(--color-white);
    padding: 14px 28px;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-contact {
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
    padding: 12px 22px;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-contact:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn-next,
.btn-prev {
    color: var(--color-white);
    padding: 12px 30px;
    font-size: 1.1rem;
    margin: 20px 8px 0 0;
}

.btn-next {
    background: var(--color-coral);
}

.btn-prev {
    background: var(--color-navy);
}

.btn-next:hover,
.btn-prev:hover {
    transform: translateY(-1px);
}

.btn-next:disabled,
.btn-prev:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.eyebrow {
    color: var(--color-coral);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
    color: var(--color-white);
    padding: 72px 0;
}

.page-hero .section-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
    gap: 42px;
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 12px 0 18px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 650px;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 24px;
}

.hero-panel strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero-panel ul {
    list-style: none;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.section-block {
    padding: 72px 0;
}

.section-block h2 {
    color: var(--color-navy);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-lead {
    color: var(--color-muted);
    max-width: 720px;
    margin-bottom: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 20px rgba(30, 35, 69, 0.07);
}

.info-card h3 {
    color: var(--color-navy);
    margin-bottom: 10px;
}

.info-card p,
.info-card li {
    color: var(--color-muted);
}

.info-card ul {
    padding-left: 18px;
}

.cta-band {
    background: var(--color-white);
    padding: 54px 0;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.cta-band .section-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-band h2 {
    color: var(--color-navy);
    margin-bottom: 8px;
}

.cta-band p {
    color: var(--color-muted);
    max-width: 640px;
}

footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 50px 20px;
    font-size: 1.15em;
}

footer a {
    color: var(--color-white) !important;
    text-decoration: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 50%;
    margin: 0 25%;
    text-align: left;
}

.footer-logo img {
    width: 180px;
    height: auto;
    display: block;
    margin-bottom: 14px;
}

.footer-logo p,
.footer-column p,
.footer-legal {
    color: var(--color-white);
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.footer-column li {
    margin-bottom: 8px;
}

.social-icons {
    margin-top: 0;
}

.social-icons a,
.social-icons .social-icon-placeholder {
    display: inline-block;
}

.social-icons i {
    font-size: 1.4em;
    margin: 0 10px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.95em;
    color: #cccccc;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    margin-top: 10px;
}

.footer-legal-links a {
    color: #cccccc !important;
    font-size: 0.95em;
    opacity: 0.86;
}

.footer-legal-links a:hover {
    color: var(--color-white) !important;
    opacity: 1;
}

@media (max-width: 1700px) and (min-width: 961px) {
    .header-container,
    .footer-container {
        width: min(1024px, calc(100% - 40px));
        max-width: none;
        margin: 0 auto;
    }
}

@media (max-width: 960px) {
    .header-container {
        width: min(var(--site-width), calc(100% - 40px));
        max-width: none;
        margin: 0 auto;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 86px;
        display: none;
    }

    header.nav-open nav {
        display: block;
    }

    nav ul {
        background: var(--color-navy-2);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: var(--radius);
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        box-shadow: var(--shadow-soft);
    }

    nav ul li a,
    .btn-proposal,
    .language-switch {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 10px;
    }

    .language-switch {
        width: max-content;
        justify-content: flex-start;
    }

    .language-switch .language-option {
        width: auto;
        justify-content: center;
        padding: 6px 7px;
    }

    .btn-proposal {
        justify-content: center;
        margin-top: 8px;
    }

    .page-hero .section-inner,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-container {
        max-width: none;
        width: min(var(--site-width), calc(100% - 40px));
        margin: 0 auto;
        gap: 26px;
    }

    .cta-band .section-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container,
    .section-inner,
    .header-container,
    .footer-container,
    .footer-bottom {
        width: min(100% - 28px, var(--site-width));
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .header-container {
        min-height: 76px;
    }

    .logo img {
        height: 48px;
    }

    .footer-logo img {
        width: 150px;
    }

    nav {
        top: 76px;
        left: 14px;
        right: 14px;
    }

    .page-hero {
        padding: 52px 0;
    }

    .section-block {
        padding: 52px 0;
    }

    .btn-primary,
    .btn-invoice,
    .btn-contact {
        width: 100%;
    }
}
