/* ==========================================================================
   ASSOCIATION PRINCESSE ILONA — Feuille de style unique
   Palette, typographies et composants centralisés (une seule source de vérité)
   ========================================================================== */

/* --- VARIABLES & IDENTITÉ VISUELLE --- */
:root {
    /* Rose (couleur historique de l'association, contraste renforcé pour l'accessibilité) */
    --rose-900: #7a0f3d;
    --rose-700: #b3195c;
    --rose-600: #d81b60;
    --rose-500: #ec407a;
    --rose-300: #ff8fb5;
    --rose-100: #ffe3ee;
    --rose-50:  #fff5f9;

    /* Or (clin d'œil à la couronne du logo, utilisé avec parcimonie) */
    --gold-500: #d8a53d;
    --gold-300: #f0cf85;

    /* Neutres chauds */
    --cream: #fffaf7;
    --white: #ffffff;
    --ink-900: #2a2233;
    --ink-600: #6b6273;
    --border-soft: #f3dce6;

    --gradient: linear-gradient(135deg, var(--rose-700) 0%, var(--rose-500) 100%);
    --gradient-soft: linear-gradient(135deg, var(--rose-50) 0%, var(--white) 100%);

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;

    --shadow-soft: 0 10px 30px rgba(122, 15, 61, 0.07);
    --shadow-hover: 0 18px 40px rgba(179, 25, 92, 0.16);

    --font-heading: 'Fraunces', 'Georgia', serif;
    --font-body: 'Poppins', sans-serif;
}

/* --- RESET & BASES --- */
* {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    color: var(--ink-900);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* --- ACCESSIBILITÉ TRANSVERSALE --- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 10px;
    background: var(--rose-700);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 0 0 12px 12px;
    z-index: 3000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- NAVIGATION & MENU DÉROULANT --- */
header {
    background: var(--white);
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-link {
    display: inline-flex;
    text-decoration: none;
}

.site-logo {
    height: 64px;
    transition: transform 0.3s ease;
}

.logo-link:hover .site-logo {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav a,
.dropdown-toggle {
    text-decoration: none;
    color: var(--ink-900);
    font-weight: 600;
    font-size: 0.93rem;
    font-family: inherit;
    padding: 10px 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active,
nav a[aria-current="page"],
.dropdown-toggle:hover,
.has-dropdown.open > .dropdown-toggle,
.has-dropdown.active > .dropdown-toggle {
    color: var(--rose-700);
}

.chevron {
    font-size: 0.75em;
    transition: transform 0.25s ease;
}

.has-dropdown.open .chevron {
    transform: rotate(180deg);
}

.nav-cta {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(179, 25, 92, 0.25);
}

.nav-cta:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Menu déroulant */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 190px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid var(--border-soft);
    list-style: none;
    margin: 0;
}

.dropdown li { width: 100%; padding: 0; }

.dropdown li a {
    color: var(--ink-900) !important;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 400;
}

.dropdown li a:hover,
.dropdown li a[aria-current="page"] {
    background: var(--rose-50);
    color: var(--rose-700) !important;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Bouton hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--rose-50);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--rose-700);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- STRUCTURE DES PAGES --- */
.glass-container {
    max-width: 1000px;
    margin: 50px auto;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* --- TITRES --- */
h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 3.2rem;
    color: var(--rose-700);
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-align: center;
}

h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--rose-700);
    margin-top: 40px;
}

h3 { font-family: var(--font-heading); font-weight: 600; }

/* --- BOUTONS --- */
.btn-primary {
    background: var(--gradient);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(179, 25, 92, 0.25);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(179, 25, 92, 0.35);
}

.btn-outline {
    border: 2px solid var(--rose-700);
    color: var(--rose-700);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--rose-700);
    color: var(--white);
}

/* --- HERO SECTION & CARDS --- */
.hero-section {
    padding: 90px 10% 60px;
    background: radial-gradient(circle at top right, var(--rose-100), var(--cream));
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

.hero-content { text-align: left; }
.hero-content h1 { text-align: left; }

.hero-photo-wrap {
    position: relative;
    justify-self: center;
}

.hero-photo {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 10px solid var(--white);
    box-shadow: var(--shadow-hover);
}

.hero-photo-badge {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--rose-700);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    border: 1px solid var(--border-soft);
}

.badge {
    background: var(--rose-100);
    color: var(--rose-700);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-btns {
    margin-top: 40px;
}

.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 10% 80px;
}

.card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon {
    font-size: 3.2rem;
    margin-bottom: 22px;
    display: block;
}

/* Section aperçu (accueil) */
.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-heading h2 { margin-top: 0; }

.preview-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10% 90px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.preview-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.preview-grid a:hover img {
    transform: scale(1.03);
}

.preview-cta { text-align: center; margin-top: 30px; }

/* Bandeau d'appel à l'action (accueil) */
.closing-cta {
    background: var(--gradient);
    padding: 70px 10%;
    text-align: center;
    margin-top: 20px;
}

.closing-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.closing-cta h2 { color: var(--white); margin-top: 0; }
.closing-cta p { color: var(--white); opacity: 0.95; }

.closing-cta .btn-primary {
    background: var(--white);
    color: var(--rose-700);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.closing-cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.closing-cta .btn-outline:hover {
    background: var(--white);
    color: var(--rose-700);
}

/* --- HISTOIRE & CONTENU --- */
.story-header {
    text-align: center;
    margin-bottom: 60px;
}

.devise {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--rose-600);
    text-align: center;
}

.timeline-box, .daily-life {
    border-left: 5px solid var(--rose-100);
    padding: 10px 0 10px 40px;
    margin-bottom: 50px;
}

.quote-box {
    background: var(--gradient);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    font-style: italic;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.8;
    box-shadow: 0 20px 40px rgba(179, 25, 92, 0.2);
}

.highlight-box {
    background: var(--rose-50);
    border-left: 5px solid var(--rose-600);
    padding: 25px 30px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

/* --- PAGE AIDER --- */
.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
}

.event-card {
    border: 3px dashed var(--rose-100);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

.event-card:hover { border-color: var(--rose-700); }

.event-icon { font-size: 2.6rem; margin-bottom: 12px; }

.don-discret {
    margin-top: 60px;
    padding: 40px;
    background: var(--rose-50);
    border-radius: var(--radius-md);
    text-align: center;
}

/* --- FORMULAIRES & LIVRE D'OR --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: -12px;
}

.contact-form input, .contact-form textarea {
    padding: 18px;
    border: 2px solid #eee;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--rose-700);
}

.separator {
    border: none;
    border-top: 2px dashed var(--rose-100);
    margin: 50px 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ink-600);
    background: var(--rose-50);
    border-radius: var(--radius-md);
}

.empty-state .icon { font-size: 2.4rem; margin-bottom: 10px; }

/* --- RESSOURCES --- */
.resource-container { max-width: 1000px; margin: 20px auto 0; }

.resource-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--rose-600);
}

.resource-section h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
}

.info-card {
    background: var(--rose-50);
    border-radius: var(--radius-sm);
    padding: 20px;
    border-left: 5px solid var(--rose-500);
    margin-top: 15px;
}

.info-card h3 { color: var(--rose-700); margin-top: 0; }

.resource-list { padding-left: 20px; line-height: 1.8; }
.resource-list li { margin-bottom: 10px; }

/* --- GALERIE PHOTOS --- */
.gallery-container {
    max-width: 1100px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.gallery-intro { text-align: center; margin-bottom: 40px; }

.gallery-subheading {
    text-align: center;
    margin: 60px 0 10px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 330px;
    background: #eee;
    border: 8px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-item:hover { transform: scale(1.03) rotate(1deg); z-index: 2; box-shadow: var(--shadow-hover); }
.photo-item:hover img { transform: scale(1.1); }

.photo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(122, 15, 61, 0.85));
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.photo-item:hover .photo-overlay,
.photo-item:focus-within .photo-overlay { opacity: 1; }

.photo-text { font-weight: 600; font-size: 1rem; display: block; }

/* --- VIDÉOS --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-soft);
}

.video-card:hover { transform: translateY(-5px); }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-wrapper video, .video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.video-info { padding: 20px; }
.video-info h3 { margin: 0 0 10px 0; font-size: 1.15rem; }
.video-info p { font-size: 0.9rem; color: var(--ink-600); margin: 0; }

.category-tag {
    display: inline-block;
    background: var(--rose-50);
    color: var(--rose-700);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* --- BLOG / ACTUALITÉS --- */
.events-highlight { text-align: center; margin-bottom: 40px; }

.badge-event {
    background: var(--gradient);
    color: var(--white);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-post {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.blog-post:hover { transform: translateY(-6px); }

.post-img { width: 100%; height: 190px; object-fit: cover; }

.post-body { padding: 22px; }

.post-date {
    display: inline-block;
    background: var(--rose-100);
    color: var(--rose-700);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* --- FOOTER --- */
footer {
    background: var(--white);
    border-top: 1px solid var(--border-soft);
    margin-top: 40px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 10% 30px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.footer-col address { font-style: normal; }

.footer-brand p { color: var(--ink-600); font-size: 0.9rem; max-width: 320px; }

.footer-logo { height: 50px; margin-bottom: 14px; }

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--rose-700);
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-600); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--rose-700); }

.footer-bottom .credit {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--ink-600);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding: 20px 10% 30px;
    color: var(--ink-600);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-soft);
    max-width: 1100px;
    margin: 0 auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }

    .nav-toggle { display: flex; }

    nav#mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 15px 25px rgba(0,0,0,0.08);
        padding: 10px 0;
    }

    nav#mainNav.nav-open { display: block; }

    nav#mainNav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5%;
    }

    nav#mainNav ul li { width: 100%; }
    nav#mainNav a, nav#mainNav .dropdown-toggle { padding: 14px 0; width: 100%; justify-content: space-between; }
    .nav-cta { text-align: center; justify-content: center !important; margin: 10px 0; }

    .dropdown {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--rose-50);
    }

    .has-dropdown.open .dropdown,
    .has-dropdown:focus-within .dropdown { display: block; }

    .glass-container { padding: 30px; margin: 20px; }
    .hero-section { padding: 50px 5% 40px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; }
    .hero-content h1 { text-align: center; }
    .hero-photo-wrap { order: -1; }

    .stats-section { grid-template-columns: repeat(2, 1fr); padding: 0 5% 20px; }
    .quick-info { padding: 40px 5% 60px; }
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; padding: 40px 8% 20px; }
    .footer-brand p { margin: 0 auto; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.1rem; }
    .event-grid { grid-template-columns: 1fr; }
    .stats-section { grid-template-columns: repeat(2, 1fr); }
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
    .btn-outline, .btn-primary { width: 100%; margin-left: 0; margin-top: 10px; text-align: center; }
}
