/*
   IPE'26 — STYLESHEET OFFICIEL (version nettoyée, sans duplication)
   Couleurs : Navy #0F2C59 | Gold #C5A059
*/

/* ══════════════════════════════════════════════
   0. VARIABLES & BASE
══════════════════════════════════════════════ */
:root {
    --brand-blue: #0F2C59;
    --brand-gold: #C5A059;
    --text-slate: #475569;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-blue);
    overflow-x: hidden;
}

h1, h2, .font-serif {
    font-family: 'Playfair Display', serif;
}

.font-academic { font-family: 'Cormorant Garamond', serif !important; }
.font-prestige  { font-family: 'Playfair Display', serif !important; }

.hidden { display: none !important; }

/* ══════════════════════════════════════════════
   1. HEADER LOGOS
══════════════════════════════════════════════ */
header img {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: transform 0.4s ease;
}
header img:hover {
    transform: scale(1.05);
}

/* ══════════════════════════════════════════════
   2. NAVBAR LINKS
══════════════════════════════════════════════ */
.nav-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-slate);
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover,
.nav-link-active {
    color: var(--brand-blue);
}
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-gold);
}

/* Nav large (utilisé dans header-nav.html) */
.nav-link-large {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-blue);
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-link-large:hover,
.nav-link-large.active {
    color: var(--brand-gold);
    border-bottom-color: var(--brand-gold);
}

/* ══════════════════════════════════════════════
   3. DROPDOWN MENU
══════════════════════════════════════════════ */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: white;
    border-radius: 0 0 16px 16px;
    padding: 10px 0;
    border-top: 3px solid var(--brand-gold);
    box-shadow: 0 16px 48px rgba(15,44,89,0.13);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu,
.group:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
/* Tailwind group-hover fix */
.group:hover .group-hover\:block {
    display: block !important;
}

.dropdown-item {
    display: block;
    padding: 12px 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-slate);
    text-decoration: none;
    transition: background 0.15s, padding-left 0.2s;
}
.dropdown-item:hover {
    background: #f8fafc;
    padding-left: 30px;
    color: var(--brand-blue);
}

/* ══════════════════════════════════════════════
   4. LANGUAGE SWITCHER
══════════════════════════════════════════════ */
.lang-active,
.lang-pill-active {
    background-color: white !important;
    color: var(--brand-blue) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

.lang-content {
    transition: opacity 0.4s ease;
}

/* ══════════════════════════════════════════════
   5. PARTNERS — p-card & p-card-slim
══════════════════════════════════════════════ */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    justify-items: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-master-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

.partner-card {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    width: 180px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.partner-card:hover { transform: translateY(-5px); }
.partner-card img { max-height: 100%; max-width: 100%; object-fit: contain; }

.p-card {
    background: white;
    width: 130px;
    height: 75px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.p-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

.p-card-slim {
    background: white;
    width: 120px;
    height: 70px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.p-card-slim:hover { transform: translateY(-5px); }
.p-card-slim img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ══════════════════════════════════════════════
   6. THEME CARDS (page index.html)
══════════════════════════════════════════════ */
.theme-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border-top: 5px solid var(--brand-gold);
    box-shadow: 0 10px 30px rgba(15,44,89,0.05);
    transition: all 0.3s ease;
}
.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(15,44,89,0.1);
}
.theme-card h3 {
    color: var(--brand-blue);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.theme-card li {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════
   7. THEME PREMIUM BOX (bloc citation thème)
══════════════════════════════════════════════ */
.theme-premium-box {
    background-color: #fcfdfe;
    border-left: 5px solid var(--brand-gold);
    padding: 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 40px rgba(15,44,89,0.05);
}
.theme-premium-text {
    font-family: 'Playfair Display', serif;
    color: var(--brand-blue);
    font-weight: 800;
    font-style: italic;
    font-size: 1.7rem;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .theme-premium-text { font-size: 1.3rem; }
}

/* ══════════════════════════════════════════════
   8. COMMITTEE (page comites.html)
══════════════════════════════════════════════ */
.committee-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--brand-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--brand-gold);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.committee-column-wrapper {
    column-count: 1;
    column-gap: 40px;
}
.committee-column-wrapper-3 {
    column-count: 1;
    column-gap: 40px;
}

@media (min-width: 768px) {
    .committee-column-wrapper   { column-count: 2; }
    .committee-column-wrapper-3 { column-count: 3; }
}

.name-card-v {
    display: inline-block;
    width: 100%;
    border-left: 4px solid var(--brand-gold);
    padding: 14px 20px;
    background: #fdfdfd;
    margin-bottom: 15px;
    transition: background 0.3s, transform 0.3s;
    break-inside: avoid;
}
.name-card-v:hover {
    background: #f8fafc;
    transform: translateX(8px);
}
.name-card-v strong {
    display: block;
    color: var(--brand-blue);
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.name-card-v p {
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.4;
}

/* ══════════════════════════════════════════════
   9. HEXAGONAL VISUAL (optionnel, page index)
══════════════════════════════════════════════ */
.hex-grid-container {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hex-item {
    position: absolute;
    width: 210px;
    height: 240px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    overflow: hidden;
    background: var(--brand-blue);
    border: 4px solid white;
    transition: all 0.4s ease;
}
.hex-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hex-item:hover img { transform: scale(1.1); }
.h1 { top: 0;     left: 18%; }
.h2 { top: 0;     left: 54%; }
.h3 { top: 115px; left: 36%; z-index: 10; width: 230px; height: 260px; }
.h4 { top: 230px; left: 18%; }

@media (max-width: 768px) {
    .hex-grid-container { height: auto; flex-direction: column; gap: 20px; }
    .hex-item { position: relative; left: auto !important; top: auto !important; width: 100%; max-width: 250px; }
}

/* ══════════════════════════════════════════════
   10. ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }

/* Titres navbar */
#nav-ipe-title    { text-shadow: 0 2px 10px rgba(15,44,89,0.05); }
#nav-main-theme   { letter-spacing: -0.02em; }

/* Hover images (tiles index) */
.img-tile { transition: transform 0.4s ease; }
.img-tile:hover { transform: translateY(-5px); }