/* ===================================
   Fondation Ledoux — Design System CSS
   Vanilla CSS — Sans Tailwind
   =================================== */

:root {
    /* ============================================================
       PALETTE OFFICIELLE — Fondation Pierre Ledoux Jeunesse Internationale
       5 couleurs extraites des silhouettes du logo
       ============================================================ */

    /* Couleur institutionnelle (texte du logo) */
    --color-primary:        #1A3A6B;  /* Bleu Marine Institutionnel */

    /* Les 5 couleurs des silhouettes humaines du logo */
    --logo-teal:            #008787;  /* Sarcelle — silhouette 1 */
    --logo-orange:          #F08710;  /* Orange Vif — silhouette 2 */
    --logo-red:             #E14B3C;  /* Rouge-Corail — silhouette 3 */
    --logo-yellow:          #F0C30F;  /* Jaune-Or — silhouette 4 */
    --logo-green:           #78B43C;  /* Vert Prairie — silhouette 5 */

    /* Rôles fonctionnels mappés sur la palette logo */
    --color-secondary:      #008787;  /* Sarcelle = couleur secondaire principale */
    --color-accent:         #F08710;  /* Orange = appels à l'action, énergie */
    --color-highlight:      #E14B3C;  /* Rouge-Corail = alertes positives, badges */

    /* Neutres */
    --color-white:          #FFFFFF;
    --color-background:     #F7F8FA;
    --color-text:           #1E2B3C;
    --color-text-muted:     #6B7C93;
    --color-border:         #DDE3EC;

    /* Couleurs Fonctionnelles */
    --color-success:        #78B43C;  /* Vert du logo */
    --color-warning:        #F0C30F;  /* Jaune-Or du logo */
    --color-error:          #E14B3C;  /* Rouge-Corail du logo */
    --color-info:           #008787;  /* Sarcelle du logo */

    /* Dégradés */
    --gradient-hero:        linear-gradient(135deg, #1A3A6B 0%, #1A5C8A 60%, #008787 100%);
    --gradient-cta:         linear-gradient(135deg, #F08710, #E14B3C);
    --gradient-accent:      linear-gradient(90deg, #E14B3C, #F08710);
    --gradient-card-teal:   linear-gradient(90deg, #008787, #00A5A5);
    --gradient-card-orange: linear-gradient(90deg, #F08710, #F0C30F);
    --gradient-card-top:    linear-gradient(90deg, #1A3A6B, #008787);

    /* Typographie */
    --font-primary:         'Playfair Display', serif;
    --font-secondary:       'Inter', sans-serif;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Bordures */
    --border-radius: 4px;
    --border-color:  #DDE3EC;
}



/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

nav a {
    font-weight: 500;
    color: var(--color-text);
}

nav a:hover {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--color-white);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 135, 16, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-cta {
    background: var(--gradient-cta);
    color: var(--color-white);
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===================================
   HOMEPAGE — Hero Premium
   =================================== */
.fl-hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 5rem 0 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.fl-hero__deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fl-hero__deco--1 {
    width: 500px; height: 500px;
    top: -200px; right: -100px;
    background: radial-gradient(circle, rgba(240,135,16,0.15) 0%, transparent 70%);
}

.fl-hero__deco--2 {
    width: 350px; height: 350px;
    bottom: -150px; left: -80px;
    background: radial-gradient(circle, rgba(0,135,135,0.2) 0%, transparent 70%);
}

.fl-hero__inner {
    position: relative;
    z-index: 1;
}

.fl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}

.fl-hero__title {
    color: #fff;
    font-size: 3.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.fl-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.fl-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fl-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fl-hero__btn--primary {
    background: #F08710;
    color: #fff;
    box-shadow: 0 4px 20px rgba(240,135,16,0.4);
}

.fl-hero__btn--primary:hover {
    background: #E07800;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240,135,16,0.5);
    color: #fff;
}

.fl-hero__btn--secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(6px);
}

.fl-hero__btn--secondary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ===================================
   STATS BAND (4 couleurs du logo)
   =================================== */
.fl-stats {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid #DDE3EC;
}

.fl-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fl-stats__item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid #DDE3EC;
    position: relative;
    transition: background 0.3s ease;
}

.fl-stats__item:last-child { border-right: none; }

.fl-stats__item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.fl-stats__item--teal::before  { background: #008787; }
.fl-stats__item--orange::before { background: #F08710; }
.fl-stats__item--red::before   { background: #E14B3C; }
.fl-stats__item--green::before { background: #78B43C; }

.fl-stats__item--teal  .fl-stats__value { color: #008787; }
.fl-stats__item--orange .fl-stats__value { color: #F08710; }
.fl-stats__item--red   .fl-stats__value { color: #E14B3C; }
.fl-stats__item--green .fl-stats__value { color: #78B43C; }

.fl-stats__item:hover { background: #F7F8FA; }

.fl-stats__value {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.fl-stats__label {
    font-size: 0.85rem;
    color: #6B7C93;
    font-weight: 500;
}

@media (max-width: 768px) {
    .fl-stats__grid { grid-template-columns: 1fr 1fr; }
    .fl-stats__item { border-right: none; border-bottom: 1px solid #DDE3EC; }
}

/* ===================================
   SECTION STRUCTURE GÉNÉRALE
   =================================== */
.fl-section {
    padding: 5rem 0;
}

.fl-section--light { background: #F7F8FA; }
.fl-section--white { background: #FFFFFF; }

.fl-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.fl-section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #008787;
    background: rgba(0,135,135,0.08);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.fl-section__title {
    font-size: 2.2rem;
    color: #1A3A6B;
    margin-bottom: 0.75rem;
}

.fl-section__desc {
    font-size: 1.05rem;
    color: #6B7C93;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===================================
   MISSION CARDS (redesign)
   =================================== */
.fl-missions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.fl-mission-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26,58,107,0.06);
    border: 1px solid #EEF2F8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fl-mission-card__bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.fl-mission-card--teal .fl-mission-card__bar  { background: #008787; }
.fl-mission-card--orange .fl-mission-card__bar { background: #F08710; }
.fl-mission-card--red .fl-mission-card__bar   { background: #E14B3C; }
.fl-mission-card--green .fl-mission-card__bar { background: #1A3A6B; }

.fl-mission-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26,58,107,0.12);
}

.fl-mission-card:hover .fl-mission-card__bar { height: 6px; }

.fl-mission-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 1.25rem;
    transition: transform 0.3s ease;
}

.fl-mission-card:hover .fl-mission-card__icon {
    transform: scale(1.08) rotate(-3deg);
}

/* Per-card icon colors (already set via nth-child in existing CSS) */
.fl-mission-card--teal  .fl-mission-card__icon { background: linear-gradient(135deg, #008787, #00A5A5); }
.fl-mission-card--orange .fl-mission-card__icon { background: linear-gradient(135deg, #F08710, #F0C30F); }
.fl-mission-card--red   .fl-mission-card__icon { background: linear-gradient(135deg, #E14B3C, #F08710); }
.fl-mission-card--green .fl-mission-card__icon { background: linear-gradient(135deg, #1A3A6B, #008787); }

.fl-mission-card h3 {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.fl-mission-card--teal  h3 { color: #008787; }
.fl-mission-card--orange h3 { color: #D07000; }
.fl-mission-card--red   h3 { color: #C03025; }
.fl-mission-card--green  h3 { color: #1A3A6B; }

.fl-mission-card p {
    color: #6B7C93;
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .fl-missions__grid { grid-template-columns: 1fr; }
}

/* ===================================
   BIOGRAPHIE
   =================================== */
.fl-bio {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: center;
}

.fl-bio__image-wrap {
    position: relative;
}

.fl-bio__image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26,58,107,0.15);
    display: block;
    position: relative;
    z-index: 1;
}

.fl-bio__image-deco {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 3px solid #008787;
    border-radius: 20px;
    z-index: 0;
}

.fl-bio__title {
    font-size: 2rem;
    color: #1A3A6B;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
}

.fl-bio__text {
    color: #2C3E50;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.fl-bio__quote {
    border-left: 4px solid #F08710;
    padding: 1rem 1.25rem;
    background: rgba(240,135,16,0.05);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #1A3A6B;
    font-size: 1.05rem;
    font-family: 'Playfair Display', serif;
}

.fl-bio__quote .fa-quote-left {
    color: #F08710;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .fl-bio { grid-template-columns: 1fr; }
    .fl-bio__image-wrap { max-width: 300px; margin: 0 auto; }
    .fl-hero__title { font-size: 2.2rem; }
}

/* ===================================
   SECTION / SECTION TITLE (legacy)
   =================================== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.8rem;
    color: #1A3A6B;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: #008787;
    border-radius: 2px;
}

/* ===================================
   ACCESS RAPIDES (kept for compat.)
   =================================== */
.fl-access {
    background: #EDF2F7 !important;
    padding: 3rem 0 !important;
    margin-top: -1.5rem !important;
    position: relative !important;
    z-index: 10 !important;
}

.fl-access__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.fl-access__card {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid transparent !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.fl-access__card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
}

.fl-access__card--pro::before {
    background: linear-gradient(90deg, #F37021, #f8995e) !important;
}

.fl-access__card--cand::before {
    background: linear-gradient(90deg, #38A169, #48BB78) !important;
}

.fl-access__card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.fl-access__card--pro:hover {
    border-color: #F37021 !important;
}

.fl-access__card--cand:hover {
    border-color: #38A169 !important;
}

.fl-access__icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
    flex-shrink: 0 !important;
}

.fl-access__icon--pro {
    background: rgba(243, 112, 33, 0.12) !important;
    color: #F37021 !important;
}

.fl-access__icon--cand {
    background: rgba(56, 161, 105, 0.12) !important;
    color: #38A169 !important;
}

.fl-access__body {
    flex: 1 !important;
    margin-bottom: 1rem !important;
}

.fl-access__title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #007D8A !important;
    margin-bottom: 0.4rem !important;
    font-family: 'Inter', sans-serif !important;
}

.fl-access__desc {
    font-size: 0.95rem !important;
    color: #718096 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.fl-access__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.fl-access__btn i {
    font-size: 0.85rem !important;
    transition: transform 0.3s ease !important;
}

.fl-access__btn:hover i {
    transform: translateX(5px) !important;
}

.fl-access__btn--pro {
    background: #007D8A !important;
    color: #fff !important;
}

.fl-access__btn--pro:hover {
    background: #1E6B7B !important;
    box-shadow: 0 4px 15px rgba(0, 125, 138, 0.35) !important;
}

.fl-access__btn--cand {
    background: #38A169 !important;
    color: #fff !important;
}

.fl-access__btn--cand:hover {
    background: #2F855A !important;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.35) !important;
}

/* Responsive access */
@media (max-width: 768px) {
    .fl-access__grid {
        grid-template-columns: 1fr !important;
    }

    .fl-hero__title {
        font-size: 2.2rem !important;
    }
}

/* ===================================
   MISSION CARDS
   =================================== */
.fl-missions__grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}

.fl-mission-card {
    background: #fff !important;
    border-radius: 14px !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #E2E8F0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.fl-mission-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: #F37021 !important;
}

/* Mission card icons — chaque carte a sa propre couleur du logo */
.fl-mission-card:nth-child(1) .fl-mission-card__icon {
    background: linear-gradient(135deg, #008787, #00A5A5) !important;
}
.fl-mission-card:nth-child(2) .fl-mission-card__icon {
    background: linear-gradient(135deg, #F08710, #F0C30F) !important;
}
.fl-mission-card:nth-child(3) .fl-mission-card__icon {
    background: linear-gradient(135deg, #E14B3C, #F08710) !important;
}
.fl-mission-card:nth-child(4) .fl-mission-card__icon {
    background: linear-gradient(135deg, #1A3A6B, #008787) !important;
}

.fl-mission-card__icon {
    width: 60px !important;
    height: 60px !important;
    color: #fff !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    margin: 0 auto 1rem !important;
    transition: transform 0.3s ease !important;
}

.fl-mission-card:hover .fl-mission-card__icon {
    transform: scale(1.1) rotate(-3deg) !important;
}

.fl-mission-card:nth-child(1) h3 { color: #008787 !important; }
.fl-mission-card:nth-child(2) h3 { color: #E08000 !important; }
.fl-mission-card:nth-child(3) h3 { color: #C83B2E !important; }
.fl-mission-card:nth-child(4) h3 { color: #1A3A6B !important; }

.fl-mission-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
}

.fl-mission-card p {
    color: #718096 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    .fl-missions__grid {
        grid-template-columns: 1fr !important;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1A3A6B 0%, #0E2A52 100%);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

footer a {
    color: #cbd5e0;
}

footer a:hover {
    color: var(--color-secondary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0;
    font-family: var(--font-secondary);
}

/* Specific Section Styles */
.bio-section {
    background-color: var(--color-white);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: var(--spacing-md);
}

.bio-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

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

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.stats-section {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.stats-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-secondary);
}

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 125, 138, 0.1);
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: var(--border-radius);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* ===================================
   AUTHENTICATION FORMS (PREMIUM UI)
   =================================== */
.adm-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 125, 138, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.adm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-card-top);
}

.adm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.adm-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.adm-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.adm-input, .adm-select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background-color: #F8F9FA;
    transition: all 0.3s ease;
    color: var(--color-text);
    box-sizing: border-box;
}

.adm-input:focus, .adm-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 125, 138, 0.1);
}

.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    margin-top: 1rem;
    margin-bottom: 1rem; /* Fixes overlap with 'mot de passe oublié' */
}

.adm-btn-primary {
    background: var(--gradient-cta);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(27, 126, 196, 0.2);
}

.adm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 126, 196, 0.4);
    background: var(--gradient-hero);
}

/* ===================================
   BIO IMAGE — Centrage et cadrage
   =================================== */
.fl-bio__image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 32px 0; /* espace pour la déco */
}

.fl-bio__image {
    width: 100%;
    max-width: 340px;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26,58,107,0.15);
    display: block;
    position: relative;
    z-index: 1;
}

.fl-bio__image-deco {
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    max-width: 340px;
    border: 3px solid #008787;
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   ESPACE CANDIDAT — Page complète
   =================================== */

/* Hero compact */
.ec-hero {
    background: linear-gradient(135deg, #1A3A6B 0%, #008787 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ec-hero__deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ec-hero__deco--1 {
    width: 400px; height: 400px;
    top: -150px; right: -50px;
    background: radial-gradient(circle, rgba(240,135,16,0.15) 0%, transparent 70%);
}

.ec-hero__deco--2 {
    width: 300px; height: 300px;
    bottom: -120px; left: -60px;
    background: radial-gradient(circle, rgba(120,180,60,0.12) 0%, transparent 70%);
}

.ec-hero__inner { position: relative; z-index: 1; }

.ec-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.ec-hero__title {
    font-size: 2.4rem;
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.ec-hero__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Body */
.ec-body {
    background: #F7F8FA;
    padding: 4rem 0 5rem;
}

/* Two-column layout */
.ec-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .ec-layout { grid-template-columns: 1fr; }
}

/* Info panel (left column) */
.ec-info { padding-top: 0.5rem; }

.ec-info__title {
    font-size: 1.5rem;
    color: #1A3A6B;
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #DDE3EC;
}

.ec-info__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}

.ec-info__item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A3A6B;
    margin-bottom: 0.25rem;
}

.ec-info__item p {
    font-size: 0.9rem;
    color: #6B7C93;
    line-height: 1.6;
    margin: 0;
}

.ec-info__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.ec-info__icon--teal   { background: linear-gradient(135deg, #008787, #00A5A5); }
.ec-info__icon--orange { background: linear-gradient(135deg, #F08710, #F0C30F); }
.ec-info__icon--red    { background: linear-gradient(135deg, #E14B3C, #F08710); }
.ec-info__icon--green  { background: linear-gradient(135deg, #78B43C, #A0C850); }

/* Form card (right column) */
.ec-form-wrap {
    position: sticky;
    top: 90px;
}

.ec-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(26,58,107,0.1);
    overflow: hidden;
    border: 1px solid rgba(26,58,107,0.08);
}

.ec-form-card__header {
    background: linear-gradient(135deg, #1A3A6B 0%, #008787 100%);
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.ec-form-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255,255,255,0.3);
}

.ec-form-card__title {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-bottom: 0.25rem;
}

.ec-form-card__subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.ec-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ec-field {
    margin-bottom: 1.25rem;
}

.ec-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A3A6B;
    margin-bottom: 0.4rem;
}

.ec-label i {
    width: 16px;
    color: #008787;
    margin-right: 0.25rem;
}

.ec-input, .ec-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #E8EDF5;
    border-radius: 8px;
    background: #F7F8FA;
    color: #1E2B3C;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.ec-input:focus, .ec-select:focus {
    outline: none;
    border-color: #008787;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,135,135,0.1);
}

.ec-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #F08710, #E14B3C);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240,135,16,0.3);
}

.ec-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240,135,16,0.45);
}

.ec-alert {
    margin: 1rem 2rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ec-alert--error {
    background: rgba(225,75,60,0.08);
    color: #C03025;
    border: 1px solid rgba(225,75,60,0.2);
}

.ec-form-footer {
    background: rgba(0,135,135,0.06);
    border: 1px solid rgba(0,135,135,0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6B7C93;
    line-height: 1.6;
}

.ec-form-footer .fa-info-circle {
    color: #008787;
    margin-right: 0.4rem;
}

/* Onglets Espace Candidat */
.ec-tabs {
    display: flex;
    background: #F0F4F8;
    border-bottom: 2px solid #E8EDF5;
}

.ec-tab {
    flex: 1;
    padding: 1rem 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5A6A85;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ec-tab:hover {
    color: #1A3A6B;
    background: rgba(0, 135, 135, 0.05);
}

.ec-tab--active {
    color: #008787;
    background: #ffffff;
    border-bottom-color: #008787;
    font-weight: 700;
}

/* ==========================================================================
   Consultation Dossier Candidat (Design Premium & Accessibilité RGAA)
   ========================================================================== */
.cd-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Bannière d'en-tête */
.cd-header {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(26, 58, 107, 0.1);
    padding: 1.5rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 20px rgba(26, 58, 107, 0.06);
}

.cd-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cd-header__title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cd-header__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1A3A6B 0%, #008787 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cd-header__title {
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1A3A6B;
    margin: 0;
}

.cd-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cd-header__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E8EDF5;
    font-size: 0.875rem;
    color: #475569;
    flex-wrap: wrap;
}

.cd-header__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cd-header__meta-item i {
    color: #008787;
}

/* Grille principale des cartes */
.cd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

/* Cartes Premium */
.cd-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(26, 58, 107, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 58, 107, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd-card--full {
    grid-column: 1 / -1;
}

.cd-card__header {
    background: linear-gradient(135deg, #1A3A6B 0%, #008787 100%);
    padding: 1rem 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cd-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cd-card__title i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cd-card__body {
    padding: 1.5rem;
}

/* Grille de données Clé-Valeur */
.cd-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem 1rem;
}

.cd-data-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cd-data-item--full {
    grid-column: 1 / -1;
}

.cd-label {
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.cd-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.cd-value--empty {
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
}

/* Badges RGAA haute lisibilité */
.cd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.cd-badge--en_cours {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.cd-badge--soumis {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.cd-badge--valide {
    background: #D1FAE5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.cd-badge--rejet {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.cd-badge--default {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

/* Liste des Pièces Jointes */
.cd-pj-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cd-pj-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    gap: 1rem;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.cd-pj-item--attached {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.cd-pj-item--missing {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cd-pj-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 240px;
    flex: 1;
}

.cd-pj-status-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.cd-pj-status-icon--ok {
    background: #10B981;
}

.cd-pj-status-icon--ko {
    background: #EF4444;
}

.cd-pj-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #1E293B;
}

.cd-pj-sub {
    font-size: 0.85rem;
    margin: 0;
    color: #64748B;
}

.cd-pj-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Boutons RGAA & touch targets (minimum 44px) */
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-height: 44px;
}

.cd-btn--primary {
    background: linear-gradient(135deg, #F08710, #E14B3C);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(240, 135, 16, 0.25);
}

.cd-btn--primary:hover, .cd-btn--primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(240, 135, 16, 0.4);
}

.cd-btn--success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.cd-btn--success:hover, .cd-btn--success:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.cd-btn--outline {
    background: #ffffff;
    border-color: #CBD5E1;
    color: #334155;
}

.cd-btn--outline:hover, .cd-btn--outline:focus {
    border-color: #008787;
    color: #008787;
    background: rgba(0, 135, 135, 0.04);
}

.cd-btn--danger-sm {
    background: #EF4444;
    color: #ffffff;
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
    min-height: 38px;
    border-radius: 6px;
}

.cd-btn--danger-sm:hover, .cd-btn--danger-sm:focus {
    background: #DC2626;
}

/* Adaptabilité Écrans (Tablettes & Mobiles) */
@media (max-width: 768px) {
    .cd-header {
        padding: 1.25rem 1.25rem;
    }
    .cd-header__top {
        flex-direction: column;
        align-items: flex-start;
    }
    .cd-header__actions {
        width: 100%;
    }
    .cd-header__actions .cd-btn {
        flex: 1;
        width: 100%;
    }
    .cd-grid {
        grid-template-columns: 1fr;
    }
    .cd-pj-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cd-pj-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Utility Hidden */
.hidden {
    display: none !important;
}

/* Modales & Overlay global (Espace Candidat & Public) */
.adm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.adm-overlay.active,
.adm-overlay.is-open {
    display: flex !important;
}

.adm-overlay.hidden,
.adm-overlay.adm-hidden {
    display: none !important;
}

.adm-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    animation: admModalAppear 0.25s ease-out forwards;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

@keyframes admModalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.adm-modal-header {
    padding: 1.25rem 1.5rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adm-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1E293B;
}

.adm-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.adm-modal-close:hover {
    color: #0F172A;
}

.adm-modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

.adm-modal-footer {
    padding: 1rem 1.5rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}