/*
  Design 34: Design 5 modifié — Carte AVANT 2030 bleue
  Reprise intégrale du design 5, seule la carte "accent" (AVANT 2030) change de couleur
  Couleur: #45a6e0 (bleu clair) au lieu de #e04545 (rouge)
*/

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

:root {
    --black: #111;
    --white: #fff;
    --gray-light: #f4f4f4;
    --gray: #888;
    --accent: #e04545;
    --accent-light: #ff6b6b;

    --font-display: 'Arial Black', Impact, sans-serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;

    --space: 1.5rem;
    --space-lg: 4rem;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVIGATION — IDENTIQUE DESIGN 5 */
.nav {
    background: var(--black);
    color: var(--white);
    padding: 1.5rem 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--accent-light);
}

/* HERO — IDENTIQUE DESIGN 5 */
.hero {
    position: relative;
    background: var(--black);
    color: var(--white);
    padding: 10rem var(--space-lg) 8rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 10rem);
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 2rem;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-lead {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-large {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 1.25rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--accent);
    transition: all 0.3s;
}

.btn-large:hover {
    background: transparent;
    color: var(--white);
}

/* SECTIONS — STRICTEMENT IDENTIQUES AU DESIGN 5 SAUF CARTE ACCENT */
.striped-section {
    padding: var(--space-lg) var(--space-lg);
}

.striped-section:nth-child(odd) {
    background: var(--gray-light);
}

.striped-section:nth-child(even) {
    background: var(--white);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -2px;
    margin-bottom: 3rem;
}

.section-title.odd {
    color: var(--black);
}

.section-title.even {
    /*color: var(--white);*/
    color: var(--black);
}

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

.manifeste-card {
    padding: 2.5rem;
    border-left: 6px solid var(--accent);
}

.manifeste-card.odd {
    background: var(--white);
    color: var(--black);
}

.manifeste-card.even {
    background: var(--black);
    color: var(--white);
}

.manifeste-card.accent {
    background: #45a6e0;
    color: var(--white);
}

.card-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Numéro blanc sur carte accent bleue */
.manifeste-card.accent .card-number {
    color: var(--white);
}

.manifeste-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Raison */
.raison-content {
    max-width: 900px;
}

.big-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.4;
    padding: 2rem;
    margin-bottom: 3rem;
}

.big-quote.odd {
    background: var(--black);
    color: var(--white);
}

.big-quote em {
    color: var(--accent);
    font-style: normal;
}

.raison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mini-card {
    padding: 2rem;
}

.mini-card.even {
    background: var(--black);
    color: var(--white);
}

.mini-card.odd {
    background: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
}

.mini-card.odd h3,
.mini-card.odd p {
    color: var(--black);
}

.mini-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.mini-card p {
    font-size: 0.95rem;
}

/* Fix cartes : forcer la couleur du texte dans les cartes (noir/blanc/bleu) */
.manifeste-card h3,
.manifeste-card p,
.mini-card h3,
.mini-card p {
    color: inherit;
}

.manifeste-card.even h3,
.manifeste-card.even p,
.mini-card.even h3,
.mini-card.even p {
    color: var(--white);
}

.manifeste-card.accent h3,
.manifeste-card.accent p {
    color: var(--white);
}

.striped-section.alt h3 {
    color: var(--white);
}

/* Bascule — IDENTIQUE SAUF CARTE ACCENT */
.bascule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.bascule-card {
    padding: 2.5rem;
}

.bascule-card.even {
    background: var(--black);
    color: var(--white);
}

.bascule-card.odd {
    background: var(--white);
    border: 2px solid var(--black);
}

/* MODIFICATION UNIQUE: carte accent en bleu #45a6e0 */
.bascule-card.accent {
    background: #45a6e0;
    color: var(--white);
    border: none;
}

/* Titre simple sur carte accent (pas d'effet) */
.bascule-card.accent h3 {
    color: var(--white);
    text-shadow: none;
}

.bascule-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: inherit;
}

.bascule-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    color: inherit;
}

/* Label box — IDENTIQUE */
.label-box {
    text-align: center;
    padding: 4rem;
}

.label-box.odd {
    background: var(--black);
    color: var(--white);
}

.label-box h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.label-box p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-ghost {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-ghost {
    color: var(--white);
    border-color: var(--white);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--black);
}

/* Footer — IDENTIQUE */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem var(--space-lg);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.footer-meta {
    font-size: 0.75rem;
    color: var(--gray);
    opacity: 0.6;
}

.footer-col nav {
    display: flex;
    gap: 1.5rem;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

/* Content enhancements — added for interior pages */
.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Programme hero image — larger display */
.content-image.program-hero-image img {
    max-width: 1275px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

.intro-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    /*border-bottom: 2px solid var(--accent);*/
}

/* Anchor links in content */
.striped-section a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(224, 69, 69, 0.3);
    transition: text-decoration-color 0.2s, color 0.2s;
}

.striped-section a:hover {
    text-decoration-color: var(--accent);
    color: var(--black);
}

.red-divider {
    border: none;
    height: 3px;
    background: #e74c3c;
    margin: 2rem 0;
}

.triple-cartouches {
    margin-bottom: 3rem;
}

/* Typography for interior page content */
.striped-section h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    letter-spacing: -1px;
    color: var(--black);
}

.striped-section.alt h3 {
    color: var(--white);
}

/* Fix: override .striped-section h3 pour les cartes Bascule */
.striped-section .bascule-card h3 {
    color: inherit;
}
.striped-section .bascule-card p {
    color: inherit;
}

.striped-section h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: var(--black);
}

.striped-section.alt h4 {
    color: var(--white);
}

/* Prioriser les couleurs des cartes par rapport à striped-section.alt */
.striped-section.alt .manifeste-card h3,
.striped-section.alt .manifeste-card p,
.striped-section.alt .mini-card h3,
.striped-section.alt .mini-card p {
    color: inherit;
}

.striped-section.alt .manifeste-card.even h3,
.striped-section.alt .manifeste-card.even p,
.striped-section.alt .mini-card.even h3,
.striped-section.alt .mini-card.even p {
    color: var(--white);
}

.striped-section.alt .manifeste-card.accent h3,
.striped-section.alt .manifeste-card.accent p {
    color: var(--white);
}

/* Lists used in interior pages */
.feature-list,
.committee-list,
.gov-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.feature-list li,
.committee-list li,
.gov-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.committee-list,
.gov-list {
    list-style: disc;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.feature-list li::before {
    content: "►";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
    top: 0.4rem;
}

/* Form styles for Rejoindre page */
.join-form {
    max-width: 600px;
    margin: 2rem 0;
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.btn-submit {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-light);
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.join-intro {
    max-width: 800px;
    margin-bottom: 2rem;
}

.join-intro p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Reasons grid — participer page */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0 2.5rem;
}

.reason-card {
    background: var(--black);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.reason-card:nth-child(even) {
    background: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
}

.reason-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.reason-card:nth-child(even) .reason-icon {
    color: var(--black);
}

.reason-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: inherit;
}

.reason-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: inherit;
}

.participer-divider {
    border: none;
    height: 3px;
    background: var(--accent);
    margin: 2rem 0;
}

.join-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
}

/* Expert cards for governance page */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0 2.5rem;
}

.expert-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 8px;
}

.expert-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-name {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.expert-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Sessions accordion on Programme page — version finale */
.sessions-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
}

.session-details {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.session-details[open] {
    border-color: var(--accent);
}

.session-summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    user-select: none;
    list-style: none;
    position: relative;
}

.session-summary::-webkit-details-marker {
    display: none;
}

.session-summary::before {
    content: "▶";
    font-size: 0.8rem;
    transition: transform 0.2s;
    color: var(--accent);
}

.session-details[open] > .session-summary::before {
    transform: rotate(90deg);
}

.session-number {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent);
    min-width: 5rem;
}

.session-theme {
    font-size: 1.1rem;
    color: var(--black);
}

.session-summary .session-intro {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
}

.session-content .session-dates {
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.session-content {
    padding: 1.25rem;
    border-top: 1px solid #eee;
    line-height: 1.7;
}

.session-dates {
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.schedule-table thead .day-header {
    background: var(--accent);
    color: var(--white);
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    letter-spacing: 1px;
}

.schedule-table tbody tr:nth-child(odd) {
    background: var(--gray-light);
}

.schedule-table td {
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.schedule-table td.time {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    width: 12%;
    padding-right: 1rem;
    vertical-align: top;
}

.schedule-table tr.no-time td {
    padding-left: 0;
    padding-top: 0.5rem;
    color: var(--gray);
    font-style: italic;
    text-align: center;
}

.schedule-table td strong {
    color: var(--black);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

/* Responsive adjustments for accordion + global */
@media (max-width: 768px) {
    .session-summary {
        padding: 0.85rem 1rem;
    }
    .session-number {
        min-width: 4rem;
    }
    .session-content {
        padding: 1rem;
    }
    .schedule-table td {
        display: block;
        padding: 0.5rem 0;
    }
    .schedule-table td.time {
        margin-bottom: 0.25rem;
        width: auto;
    }

    .nav-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero {
        padding: 8rem 1rem 4rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col nav {
        justify-content: center;
    }
}
