:root {
    --navy: #003366;
    --navy-light: #004080;
    --navy-dark: #002244;
    --accent-orange: #FF7F50;
    --accent-orange-hover: #e56a3b;
    --accent-cyan: #00d4ff;
}

* { box-sizing: border-box; }

html,
body {
    overflow-x: clip;
    max-width: 100%;
    margin: 0;
}

body {
    font-family: 'Barlow', sans-serif;
    background: #f8fafc;
    color: #475569;
}

h1, h2, h3, h4 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}

p {
    margin: 0;
    line-height: 1.65;
}

.bg-navy { background-color: var(--navy); }
.text-navy { color: var(--navy); }
.text-orange-brand { color: var(--accent-orange); }

.btn-primary {
    background: var(--accent-orange);
    color: #fff;
    border-radius: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 8px 18px rgba(255, 127, 80, 0.22);
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 127, 80, 0.32);
}

.btn-ghost {
    border: 2px solid #fff;
    color: #fff;
    border-radius: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--navy);
}

.rosam-hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--navy-dark);
}

.rosam-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rosam-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 34, 68, 0.25) 0%, rgba(0, 34, 68, 0.82) 100%);
}

.rosam-hero.is-brand {
    background: #000;
}

.rosam-hero.is-brand img {
    object-fit: contain;
    width: min(70%, 28rem);
    height: auto;
    max-height: 38%;
    inset: auto;
    top: 26%;
    left: 50%;
    transform: translateX(-50%);
}

.rosam-hero.is-brand .rosam-hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 34, 68, 0.88) 100%);
}

.rosam-wrap {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.fiche-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.fiche-row {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.fiche-row:nth-child(odd) {
    background: #f8fafc;
}

.fiche-row:last-child {
    border-bottom: 0;
}

.fiche-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.fiche-value {
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

@media (min-width: 768px) {
    .fiche-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fiche-row {
        border-right: 1px solid #f1f5f9;
    }

    .fiche-row:nth-child(2n) {
        border-right: 0;
    }
}

.volet-card,
.defi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.volet-card p,
.defi-card p,
.result-card p:last-child {
    color: #64748b;
    font-size: 0.95rem;
}

.volet-index {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
}

.result-card {
    background: #fff;
    border-top: 4px solid var(--accent-orange);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.35);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    background: #0f172a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.8));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.88);
    padding: 1rem;
}

#lightbox.is-open {
    display: flex;
}

#lightbox img {
    max-width: min(96vw, 1100px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 0.75rem;
}

.cta-band {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
}

.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 34, 68, 0.18);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.btn-langue-fiche {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-langue-fiche:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ff9a72;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

.site-nav a {
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ff9a72;
}

.menu-btn {
    display: inline-flex;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 0.4rem;
}

.mobile-panel {
    display: none;
    background: #002244;
    padding: 0.75rem 1rem 1rem;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel a {
    display: block;
    color: #fff;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

@media (min-width: 768px) {
    .site-nav { display: flex; }
    .menu-btn,
    .mobile-panel,
    .mobile-panel.is-open { display: none !important; }
}

.section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.section-lead {
    color: #64748b;
    margin-bottom: 1.75rem;
    max-width: 42rem;
}

.cards-2,
.cards-3,
.cards-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.volet-card ul {
    margin: 0.55rem 0 0;
    padding-left: 1.15rem;
    color: #64748b;
    font-size: 0.95rem;
}

.volet-card li {
    margin: 0.35rem 0;
}

@media (min-width: 1024px) {
    .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cards-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cards-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.result-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .result-list { grid-template-columns: 1fr 1fr; }
}

.result-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.95rem 1rem;
}

.result-item span {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--accent-orange);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.cta-actions a {
    min-height: 3.25rem;
    padding: 0.85rem 1.4rem;
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.crumb {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.crumb a { color: #7dd3fc; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
