:root {
    --color-primary: #0f4c5c;
    --color-primary-dark: #083844;
    --color-secondary: #2c7a7b;
    --color-accent: #7fc9d0;
    --color-surface: #f4f7f8;
    --color-surface-strong: #e7eef0;
    --color-text: #16323a;
    --color-text-soft: #4e6770;
    --color-white: #ffffff;
    --color-border: rgba(15, 76, 92, 0.12);
    --shadow-soft: 0 18px 40px rgba(9, 35, 43, 0.08);
    --shadow-card: 0 14px 30px rgba(9, 35, 43, 0.1);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1200px;
    --container-narrow: 840px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    line-height: 1.65;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    background: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.container.narrow {
    width: min(calc(100% - 2rem), var(--container-narrow));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 56, 68, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    text-decoration: none;
    min-width: 0;
    max-width: 235px;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-mark img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.brand-mark svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 4;
}

.brand-mark svg path {
    fill: rgba(255, 255, 255, 0.88);
    stroke: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
}

.brand-text strong {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-white);
    white-space: nowrap;
    font-weight: 700;
}

.brand-text span {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.74);
}

.brand-signature {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 0.12rem;
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.main-nav {
    justify-self: center;
    min-width: 0;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--color-white);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.84);
    padding: 0.75rem 0.8rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    text-decoration: none;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.header-cta:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(circle at 20% 20%, rgba(127, 201, 208, 0.18), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(127, 201, 208, 0.15), transparent 28%),
        linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 52%, #146272 100%);
    color: var(--color-white);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    left: -8%;
    width: 116%;
    height: 150px;
    opacity: 0.9;
}

.wave::before,
.wave::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: rotate(-2deg);
}

.wave-top {
    top: -42px;
}

.wave-top::before {
    background: rgba(255, 255, 255, 0.14);
    height: 90px;
}

.wave-top::after {
    background: rgba(255, 255, 255, 0.08);
    top: 42px;
    height: 70px;
}

.wave-bottom {
    bottom: -44px;
    transform: rotate(180deg);
}

.wave-bottom::before {
    background: rgba(255, 255, 255, 0.14);
    height: 90px;
}

.wave-bottom::after {
    background: rgba(255, 255, 255, 0.08);
    top: 42px;
    height: 70px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    min-height: 720px;
    padding: 7rem 0 6rem;
}

.eyebrow {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.hero h1,
.page-banner h1,
.page-introduction h2,
.section h2,
.site-footer h2 {
    line-height: 1.15;
}

.hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    max-width: 14ch;
}

.hero-text {
    max-width: 58ch;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.button-primary {
    background: var(--color-white);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-soft);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.hero-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0;
    margin: 2.2rem 0 0;
}

.hero-highlights li {
    position: relative;
    padding: 1rem 1rem 1rem 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.hero-highlights li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: var(--color-accent);
    box-shadow: 0 0 0 6px rgba(127, 201, 208, 0.15);
}

.hero-highlights a {
    color: var(--color-white);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.justice-card {
    width: min(100%, 460px);
    padding: 2rem;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
}

.justice-symbol {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 1rem;
}

.justice-symbol svg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 10;
}

.justice-symbol svg path {
    fill: rgba(255, 255, 255, 0.92);
    stroke: none;
}

.justice-card p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
}

.page-banner {
    padding: 7rem 0 4rem;
    background:
        radial-gradient(circle at top right, rgba(127, 201, 208, 0.2), transparent 25%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
}

.page-banner .page-intro {
    color: rgba(255, 255, 255, 0.86);
    max-width: 68ch;
}

.page-introduction {
    padding: 4rem 0 1rem;
}

.page-introduction h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.section {
    padding: 2.25rem 0;
}

.section-surface {
    background: var(--color-surface);
}

.section h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    color: var(--color-primary-dark);
}

.section p {
    margin: 0 0 1rem;
    color: var(--color-text-soft);
    font-size: 1.03rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(9, 35, 43, 0.12);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, var(--color-accent), #2e96a7 60%, var(--color-secondary) 100%);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.65);
}

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.18rem;
    color: var(--color-primary-dark);
}

.card h3 a {
    color: inherit;
}

.text-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
}

.contact-card a,
.container.narrow a,
.site-footer a,
.check-list a,
.stat-card a,
.stat-card a:hover,
.stat-card a:focus {
    text-decoration: none;
    color: #2e96c6;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 1.1rem;
    justify-content: center;
}

.stats-grid > .stat-card:last-child:nth-child(4) {
    grid-column: 2 / 3;
}

.stat-card {
    padding: 1.6rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.stat-card strong {
    display: block;
    margin-bottom: 0.6rem;
    color: #2e96c6;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
    white-space: nowrap;
}

.stat-card span {
    color: var(--color-text-soft);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.95rem;
}

.check-list li {
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
}

.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    border-radius: 30px;
    color: var(--color-white);
    background:
        radial-gradient(circle at right top, rgba(127, 201, 208, 0.22), transparent 30%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: var(--shadow-card);
}

.cta-panel h2,
.cta-panel p {
    color: var(--color-white);
    margin-top: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
}

.contact-card {
    padding: 1.8rem;
    background: var(--color-white);
    border-radius: 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.contact-card h2,
.contact-card h3 {
    color: var(--color-primary-dark);
}

.contact-card address {
    font-style: normal;
    color: var(--color-text-soft);
    margin-bottom: 1rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 0.45rem;
}

.form-row label {
    font-weight: 700;
    color: var(--color-primary-dark);
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(15, 76, 92, 0.18);
    background: #fdfefe;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--color-text);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid rgba(46, 150, 198, 0.25);
    border-color: #2e96c6;
}

.site-footer {
    margin-top: 3rem;
    background: linear-gradient(180deg, var(--color-primary-dark), #062d37);
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    overflow: hidden;
}

.footer-wave {
    height: 90px;
    background:
        radial-gradient(120% 90px at 50% 100%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.14) 28%, transparent 29%);
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: center;   /* centre horizontalement */
    align-items: center;
    gap: 0.5rem;
    text-align: center;        /* au cas où */
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p + p::before {
    content: "|";
    margin: 0 0.5rem;
    opacity: 0.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
    gap: 2rem;
    padding: 1rem 0 2rem;
}

.site-footer h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--color-white);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.88);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-bottom {
    padding: 1rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

@media (max-width: 1080px) {
    .hero-grid,
    .contact-grid,
    .footer-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .card-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero {
        padding-top: 1rem;
    }

    .hero-grid {
        min-height: auto;
        padding: 6rem 0 5rem;
    }
}

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .main-nav {
        justify-self: end;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        right: 1rem;
        top: 84px;
        width: min(92vw, 360px);
        flex-direction: column;
        padding: 1rem;
        background: rgba(8, 56, 68, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        box-shadow: var(--shadow-card);
    }

    body.nav-open .nav-menu {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .hero-highlights,
    .card-grid,
    .card-grid-3,
    .stats-grid {
        grid-template-columns: 1fr;
    }
	
	.brand {
        max-width: none;
    }

    .brand-text strong {
        font-size: 0.9rem;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
    }

    .brand-signature {
        font-size: 0.66rem;
    }

    .brand-subtitle {
        font-size: 0.56rem;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        max-width: none;
    }

    .section,
    .page-introduction {
        padding: 1.8rem 0;
    }

    .cta-panel,
    .contact-card,
    .card,
    .stat-card {
        padding: 1.3rem;
    }
	
	.brand-subtitle {
		display: none;
	}
}

.card a,
.no-underline {
	text-decoration: none;
	color:inherit;
}

.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline:after {
    background-color: currentcolor;
    bottom: -1px;
    content: "";
    display: block;
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s cubic-bezier(0,0,0,0),visibility 0s .4s;
    visibility: hidden;
    z-index: 1
}

.hover-underline:hover:after {
    transform: scaleX(1);
    transform-origin: left;
    transition: transform .4s cubic-bezier(0,.01,0,1);
    visibility: visible
}

.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert-success {
    color: #0d4a2f;
    background: #eaf8ef;
    border-color: #b8e1c4;
}

.alert-error {
    color: #7a1f1f;
    background: #fdeeee;
    border-color: #efc1c1;
}

.field-error {
    display: block;
    color: #b42318;
    font-size: 0.92rem;
    line-height: 1.4;
}

.form-row-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
    border-color: #d92d20;
    outline: none;
}