/* ===== HEADER ===== */

.nav .list-link a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -.4vw;
    height: .5px;
    background: var(--warning-color);
    transition: right .35s cubic-bezier(.2, .8, .2, 1);
}
.nav .list-link a.active::after,
.nav .list-link a:hover::after {
    right: 0;
}

.nav .btn-action {
    border: 1px solid var(--warning-color);
    transition: all .5s ease-in-out;
}
.nav .btn-action:hover {
    transition: all .5s ease-in-out;
    color: white;
    background: var(--success-color);
    border: 1px solid var(--warning-color);
}

/* ===== HEADER : responsive (menu burger) ===== */

.nav-bar {
    position: relative;
}

.brand-logo {
    display: inline-flex;
    width: 12vw;
    height: 3vw;
}

/* Bouton burger : cache par defaut, seul le point de rupture ci-dessous l'active */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 20;
    flex-shrink: 0;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform .3s, opacity .3s;
}

/* Transforme les 3 barres en croix quand le panneau est ouvert */
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
    display: none;
}

@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .nav-burger { display: flex; }
    .brand-logo {         
        width: 46vw;
        /* height: -webkit-fill-available;  */
        /* height: auto; */
        height: 11vw;
        max-height: 11vw;
        /* max-height: 50px; */
    }

    .nav-mobile-panel {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--success-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s cubic-bezier(.2, .8, .2, 1);
    }

    .nav-mobile-panel.open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-mobile-panel .list-link {
        gap: 18px !important;
        align-items: flex-start;
        padding: 24px;
    }

    .nav-mobile-panel .list-link a {
        font-size: 15px;
    }

    .nav-mobile-panel .btn-action {
        display: inline-flex;
        margin: 0 24px 24px;
    }
}

/* ===== SECTION FIRST ===== */

.section-first {
    height: 94vh;
    padding-top: 5vw;
    min-height: 100vh;
}

.section-first .hero-foot {
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 3vw;
    align-items: flex-end;
    border-top: 1px solid var(--line-strong);
}

.section-first .hero-visual {
    z-index: 0;
    /* width: 30vw; */
    width: 100%;
    height: -webkit-fill-available;
    top: 0;
    right: 0;
}


.section-first .hero-foot .item .title-section {
    letter-spacing: 0.18em;
    color: var(--success-color);
}

.section-first .hero-foot .item .value {
    font-family: var(--font-name-third);
    /* font-size: var(--h6-size); */
    font-size: 1.6vw;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-first .hero-foot .item .value small {
    font-size: 1.5vw;
    color: var(--success-color);
    font-weight: 500;
    letter-spacing: 0;
}

.section-first .hero-cta {
    display: flex;
    gap: 10px;
}

/* ===== SECTION FIRST : responsive ===== */

@media (max-width: 900px) {
    .section-first {
        height: auto;
        min-height: 100vh;
        padding-top: 99px;
        padding-bottom: 0;
    }

    /* Logo en filigrane : purement decoratif, on l'enleve pour ne pas surcharger un ecran etroit */
    .hero-watermark {
        display: none;
    }

    .section-first .hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .section-first .content-right {
        height: 220px;
    }

    .section-first .hero-visual {
        position: relative;
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
    }

    .section-first .hero-foot {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: flex-start;
    }

    .section-first .hero-foot .item .value small {
        font-size: 18px;
        font-weight: 200;
    }

    .section-first .hero-cta {
        grid-column: 1 / -1;
        flex-direction: column;
    }

    .section-first .hero-cta a {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .scroll-cue {
        display: none;
    }
}

/* =================== Scroll cue =================== */

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: var(--content-margin);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(13, 27, 52, .55);
}

.scroll-cue .bar {
    width: 36px;
    height: 1px;
    background: var(--success-color);
    position: relative;
    overflow: hidden;
}

.scroll-cue .bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--warning-color);
    transform: translateX(-100%);
    animation: scrolly 2.4s ease-in-out infinite;
}

@keyframes scrolly {
    0% {
        transform: translateX(-100%);
    }

    60%,
    100% {
        transform: translateX(100%);
    }
}

/* ===== Marquee ===== */

.marquee {
    white-space: nowrap;
    border-block: 1px solid var(--warning-color);
    background: #f7f8fb;
}

.marquee-track {
    gap: 7vw;
    animation: marquee 38s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1.7vw;
    font-family: var(--font-name-secund);
    letter-spacing: -0.02em;
}

.marquee-item .star {
    display: inline-block;
    width: 2vw;
    height: 2vw;
    color: var(--success-color);
}

@keyframes marquee {
    to {
        transform: translateX(calc(-50% - 28px));
    }
}

/* ===== ELEMENT SOUS SECTION FOR ALL SECTIONS ===== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .2vw;
    text-transform: uppercase;
    color: var(--success-color);
    margin-bottom: 2vw;
    font-family: var(--font-name-secund);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--warning-color);
}

/* ===== ABOUT ===== */

.section-title {
    font-family: var(--font-name-third);
    letter-spacing: -0.03em;
    color: var(--success-color);
}

.forum-lead,
.forum-lead p {
    font-size: var(--p-size);
    font-weight: 600;
    line-height: 1.5;
    font-family: var(--font-name-secund);
}

.forum-text {
    font-size: var(--p-size-alt);
    color: rgba(13, 27, 52, .68);
    line-height: 1.6;
    width: 100%;
    font-family: var(--font-name-secund);
}

.forum-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f1ece2;
    border: 1px solid rgba(13, 27, 52, .12);
    overflow: hidden;
}

.feature-cell {
    position: relative;
    padding: 2vw 2vw;
    border-right: 1px solid rgba(13, 27, 52, .08);
    border-bottom: 1px solid rgba(13, 27, 52, .08);
    cursor: pointer;
    transition: background .35s;
}

.feature-cell:hover {
    background: rgba(255, 255, 255, .55);
}
.feature-cell:nth-child(2n) {
    border-right: 0;
}
.feature-cell:nth-last-child(-n+2) {
    border-bottom: 0;
}

.feature-num {
    display: block;
    font-size: .8vw;
    letter-spacing: .14em;
    color: rgba(13, 27, 52, .45);
    margin-bottom: 16px;
}

.feature-cell h5 {
    font-family: var(--font-name-third);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Description cachee par defaut : elle ne se deploie qu'au survol de la carte (voir .feature-cell:hover ci-dessous) */
.feature-cell p {
    font-size: var(--p-size-alt);
    color: rgba(13, 27, 52, .68);
    line-height: 1.6;
    font-family: var(--font-name-secund);
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, margin-top .35s ease;
}
.feature-cell:hover p {
    max-height: 180px;
    margin-top: 12px;
    opacity: 1;
}

/* Pastille "+" qui incite au survol : pulse en continu tant que la carte n'est pas survolee */
.feature-hint {
    position: absolute;
    right: clamp(20px, 2.4vw, 36px);
    bottom: 2.4vw;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(13, 27, 52, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    opacity: 1;
    color: rgba(13, 27, 52, .5);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s, color .35s, border-color .35s;
    animation: feature-hint-pulse 2.2s ease-in-out infinite;
}

.feature-cell:hover .feature-hint {
    opacity: 0;
    transform: rotate(135deg);
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--success-color);
    animation: none;
}

@keyframes feature-hint-pulse {
    0%, 100% { transform: scale(1); opacity: .55; }
    50% { transform: scale(1.18); opacity: 1; }
}

@media (max-width: 900px) {
    .forum-lead, .forum-text { font-size: var(--p-size-alt); max-width: none; }
    .forum-features { grid-template-columns: 1fr; }
    .feature-cell { border-right: 0 !important; padding: 4vw 5vw; }
    
    .feature-num {
        display: none;
    }
    /* Pas de survol fiable au toucher : la description reste visible et la pastille disparait */
    .feature-cell p {
        max-height: none;
        opacity: 1;
        margin-top: 12px;
    }
    .feature-hint { display: none; }
}

/* ===== ===== ===== ===== Organisateur ===== ===== ===== ===== ===== */


.cta-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(250, 192, 45, .18), transparent 55%);
    pointer-events: none;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4vw;
    align-items: start;
}

.cta-block .eyebrow { color: rgba(255, 255, 255, .55); }
.cta-block .eyebrow::before { background: var(--warning-color); }
.cta-block .section-title { color: #fff; }

.cta-block .lead {
    font-size: var(--p-size-alt);
    font-family: var(--font-name-secund);
    color: rgba(255, 255, 255, .72);
    max-width: 50ch;
    line-height: 1.6;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 12px 22px;
    transition: background .3s, border-color .3s;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .6);
}

@media (max-width: 900px) {
    .cta-inner { grid-template-columns: 1fr; gap: 32px; padding: 10vw 6vw; }
}

/* ===== LE THEME : tags + bouton de telechargement du PDF ===== */

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Pilule d'un mot-cle du theme (Accessible / Utile / Transactionnel) */
.theme-tag {
    display: inline-flex;
    border: 1px solid var(--warning-color);
    color: var(--success-color);
    padding: .7vw 1.5vw;
    font-size: var(--p-size-alt);
    font-family: var(--font-name-secund);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-family: var(--font-name-secund);
    transition: transform .25s, box-shadow .25s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(13, 27, 52, .35);
}

/* Petite note italique sous le bouton : le PDF n'existe pas encore */
.btn-download-note {
    display: block;
    font-size: 12px;
    font-style: italic;
    color: rgba(13, 27, 52, .5);
    font-family: var(--font-name-secund);
}

/* ===== PROGRAMME : liste "teaser" (le detail complet est sur /programmes) ===== */

.programme-list {
    border: 1px solid rgba(13, 27, 52, .12);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.programme-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 28px clamp(20px, 3vw, 40px);
    border-bottom: 1px solid rgba(13, 27, 52, .1);
    border-right: 1px solid rgba(13, 27, 52, .1);
}

.programme-row:last-child {
    border-bottom: 0;
}
.programme-row:nth-child(2n) {
    border-right: 0;
}

.programme-num {
    font-family: var(--font-name-third);
    font-size: 28px;
    font-weight: 600;
    color: var(--success-color-alt);
    border-right: 1px solid rgba(13, 27, 52, .1);
    padding-right: 20px;
}

.programme-meta {
    letter-spacing: .12em;
    color: rgba(13, 27, 52, .5);
}

.programme-row h3 {
    font-family: var(--font-name-third);
}

.programme-row p {
    color: rgba(13, 27, 52, .68);
    line-height: 1.6;
    font-family: var(--font-name-secund);
}

/* ===== INTERVENANTS : cadre affiche tant qu'aucun intervenant n'est confirme ===== */

.placeholder-box {
    border: 1px dashed rgba(13, 27, 52, .25);
    background: #fbf9f4;
    padding: 4vw 4vw;
    text-align: center;
}

.placeholder-box p {
    font-family: var(--font-name-third);
    font-style: italic;
}

.placeholder-box small {
    color: rgba(13, 27, 52, .55);
    font-family: var(--font-name-secund);
}

/* ===== PARTENAIRES & SPONSORS : bandeau plein-large sombre ===== */


.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: start;
}

.partners-actions {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.btn-dark-primary {
    font-family: var(--font-name-secund);
}

.btn-dark-ghost {
    border: 1px solid rgba(255, 255, 255, .3);
    font-family: var(--font-name-secund);
    transition: background .25s, border-color .25s;
}

.btn-dark-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .6);
}

.partners-categories {
    border: 1px solid rgba(255, 255, 255, .15);
}

/* Une ligne = une categorie de partenaires ; "status" affiche soit le nom du 1er partenaire confirme, soit "A confirmer" */
.partners-cat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--font-name-secund);
}

.partners-cat-row:last-child {
    border-bottom: 0;
}

.partners-cat-row .status {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    white-space: nowrap;
}

.partners-cat-row .status.confirmed {
    color: var(--warning-color);
}

.partners-note {
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, .45);
    font-family: var(--font-name-secund);
}

/* ===== INFORMATIONS PRATIQUES ===== */

.info-label {
    display: block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(13, 27, 52, .5);
    margin-bottom: 8px;
}

.info-value {
    font-family: var(--font-name-secund);
    font-size: var(--p-size);
    color: var(--success-color);
}

/* Emplacement pour le futur visuel de Cotonou : zone pointillee tant que l'image n'est pas fournie */
.practical-visual {
    position: relative;
    /* border: 1px solid rgba(13, 27, 52, .12); */
    overflow: hidden;
}

.practical-visual-placeholder small {
    margin: 0 auto;
    width: 100%;
    height: 12vw;
}


/* ===== ACCES SUR INVITATION : formulaire de demande ===== */

.invite-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4vw;
    align-items: start;
}

.invite-info .row {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(13, 27, 52, .1);
}

.invite-card {
    background: #fff;
    border: 1px solid rgba(13, 27, 52, .12);
    padding: clamp(24px, 3vw, 36px);
}

.invite-card h3 {
    font-family: var(--font-name-third);
    font-size: var(--h6-size);
    color: var(--success-color);
    margin-bottom: 6px;
}

/* Bouton de redirection vers le formulaire officiel (remplace l'ancien formulaire local) */
.btn-dark-submit {
    width: 100%;
    background: var(--success-color);
    color: #fff;
    padding: 15px;
    font-weight: 600;
    font-family: var(--font-name-secund);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s;
}

.btn-dark-submit:hover {
    background: #132a52;
}

@media (max-width: 900px) {
    .partners-grid, .invite-grid { grid-template-columns: 1fr; gap: 32px; }
    .programme-row { 
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .programme-list { grid-template-columns: repeat(1, 1fr);}
    .section-title { 
        font-size: 19px;
        font-weight: 500;
    }
}

/* ===== Pages legales (mentions legales / cookies / confidentialite) ===== */

.legal-prose {
    max-width: 70ch;
}

.legal-meta {
    font-size: 12px;
    font-style: italic;
    color: rgba(13, 27, 52, .5);
    font-family: var(--font-name-secund);
}

.legal-section {
    margin-top: clamp(28px, 3vw, 44px);
    padding-top: clamp(28px, 3vw, 44px);
    border-top: 1px solid rgba(13, 27, 52, .1);
}

.legal-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-section h2 {
    font-family: var(--font-name-third);
    font-size: var(--h6-size);
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 14px;
}

.legal-section p,
.legal-section li {
    font-size: var(--p-size-alt);
    color: rgba(13, 27, 52, .68);
    line-height: 1.7;
    font-family: var(--font-name-secund);
}

.legal-section p + p {
    margin-top: 12px;
}

.legal-section ul {
    margin-top: 10px;
    padding-left: 20px;
}

.legal-section li {
    list-style: disc;
    margin-bottom: 8px;
}

.legal-section li::marker {
    color: var(--warning-color);
}

/* ===== FOOTER ===== */

footer .footer-grid {
    gap: 0 5vw;
}
footer .footer-grid li {
    list-style: none;
}


.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 2vw;
    height: 2vw;
    border-radius: 50%;
    color: var(--success-color);
    transition: background .3s, color .3s, border-color .3s;
}

.socials a:hover {
    color: var(--warning-color);
    border-color: var(--success-color);
}

/* ===== FOOTER : responsive ===== */

@media (max-width: 900px) {

    .section-first .hero-foot .item .value {
        font-size: 20px;
    }
    .socials a {
        width: 11vw;
        height: 11vw;
    }


    .footer-grid {
        flex-direction: column;
        gap: 16px !important;
    }

    /* Les largeurs en % sont fixees en inline sur chaque colonne (desktop) : on les neutralise ici. */
    .footer-grid > div {
        width: 100% !important;
    }

    .footer-brand span {
        height: 160px !important;
    }

    .content-newsletter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .wordmark p,
    .wordmark > span {
        width: 100% !important;
    }

    .content-newsletter form {
        width: 100% !important;
    }
}

/* ===== Carte article (macro Default/macros.html.twig : article()) ===== */
/* Composant partage : utilise par la page /actualites ET par la mise en avant "articles recents". */

.one-article {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(13, 27, 52, .12);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}

.one-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(13, 27, 52, .25);
}

.one-article .image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1ece2;
}

.one-article .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.one-article:hover .image img {
    transform: scale(1.05);
}

.one-article .title {
    display: block;
    font-family: var(--font-name-third);
    font-size: 17px;
    font-weight: 600;
    color: var(--success-color);
    line-height: 1.35;
    padding-top: 20px;
}

.one-article .description {
    display: block;
    font-size: 13px;
    color: rgba(13, 27, 52, .6);
    line-height: 1.6;
    font-family: var(--font-name-secund);
    margin-top: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .articles-grid { grid-template-columns: 1fr; }
}
