/* ------------------------------------------------------------------
   Look & feel inspiré de ucopia.com
   Couleurs : navy #272c43 · accent #fe0b49 · deep blue #080059
   Polices  : Montserrat (titres) · Open Sans (texte)
------------------------------------------------------------------- */

:root {
    --navy:       #272c43;
    --accent:     #fe0b49;
    --deep-blue:  #080059;
    --grey-bg:    #f6f6f6;
    --grey-line:  #e5e5e5;
    --text:       #454156;
    --white:      #ffffff;
    --radius:     14px;
    --shadow:     0 6px 24px rgba(39, 44, 67, .10);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    color: var(--navy);
    line-height: 1.25;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------ topbar */

.topbar {
    background: var(--navy);
    color: var(--white);
    font-size: .85rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 12px;
}

/* Sélecteur de langue (élément <details> natif, aucun JS requis) */

.lang-menu { position: relative; }

.lang-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    user-select: none;
    white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu[open] summary { background: rgba(255, 255, 255, .12); }
.lang-menu .caret { font-size: .7em; opacity: .8; }

.lang-menu ul {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 170px;
    list-style: none;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--grey-line);
}

.lang-menu ul a {
    display: block;
    padding: 9px 16px;
    color: var(--navy);
    text-decoration: none;
    font-size: .9rem;
}
.lang-menu ul a:hover { background: var(--grey-bg); }
.lang-menu ul a.active {
    color: var(--accent);
    font-weight: 700;
}

/* ------------------------------------------------------------ header */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo { height: 52px; width: auto; }

.badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 999px;
    padding: 6px 16px;
}

/* -------------------------------------------------------------- hero */

.hero {
    background: linear-gradient(120deg, var(--deep-blue) 0%, var(--navy) 70%);
    color: var(--white);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    /* touche graphique façon ucopia.com : oblique accent */
    content: '';
    position: absolute;
    right: -120px;
    top: -60px;
    width: 340px;
    height: 340px;
    background: var(--accent);
    opacity: .12;
    transform: rotate(25deg);
    border-radius: 60px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1::after {
    content: '';
    display: block;
    width: 72px;
    height: 5px;
    margin-top: 16px;
    background: var(--accent);
    border-radius: 3px;
}

.hero .lead {
    max-width: 720px;
    font-size: 1.12rem;
    opacity: .92;
}

/* ----------------------------------------------------------- explain */

.explain {
    padding: 56px 0 8px;
}

.explain h2, .cards h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.explain p { max-width: 820px; }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--grey-bg);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.step-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step p { font-size: .95rem; }

/* ------------------------------------------------------------- cards */

.cards { padding: 48px 0 8px; }

.cards-intro { max-width: 820px; margin-bottom: 28px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 44, 67, .16);
}

.card-highlight { border: 2px solid var(--accent); }

.card-flag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

.card-icon { font-size: 1.9rem; margin-bottom: 10px; }

.card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc { font-size: .93rem; margin-bottom: 14px; }

.card-steps {
    margin: 0 0 18px 20px;
    font-size: .92rem;
    display: grid;
    gap: 8px;
    flex-grow: 1;
}

.card-steps li::marker {
    color: var(--accent);
    font-weight: 700;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ----------------------------------------------------------- buttons */

.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 22px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    font-size: 1rem;
    padding: 14px 34px;
    box-shadow: 0 6px 18px rgba(254, 11, 73, .35);
}
.btn-primary:hover { background: #d70940; }

.btn-outline {
    color: var(--navy);
    border: 2px solid var(--grey-line);
    background: var(--white);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.retry {
    text-align: center;
    padding: 40px 0 12px;
}

/* ------------------------------------------------------------- notes */

.notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    padding: 40px 0 64px;
}

.note {
    background: var(--grey-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 24px;
}

.note h3 { font-size: 1rem; margin-bottom: 8px; }
.note p { font-size: .93rem; }

/* ------------------------------------------------------------ footer */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .85);
    padding: 40px 0;
    font-size: .9rem;
}

.footer-inner { text-align: center; }

.logo-footer {
    height: 40px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.site-footer a { color: var(--white); }

.copyright {
    margin-top: 8px;
    font-size: .8rem;
    opacity: .65;
}

/* ------------------------------------------------------------ mobile */

@media (max-width: 560px) {
    .hero { padding: 44px 0 52px; }
    .header-inner { flex-direction: column; gap: 12px; }
    .topbar-inner { font-size: .78rem; }
}
