/*
Theme Name: CARE Organisationnel
Theme URI: https://care-org.fr
Author: Olivier
Author URI: https://care-org.fr
Description: Thème sur-mesure pour le Collectif de Recherche en Care Organisationnel
Version: 1.0
Text Domain: care-org
*/

:root {
    /* Palette de base */
    --sand: #f8f5f0;
    --sand-dark: #eee4d8;
    --ink: #1e1a14;
    --ink-soft: #4a4035;
    
    /* Couleurs : Vert, Bordeaux, Corail */
    --moss: #4a6741;          /* Vert Mousse */
    --moss-light: #e8f0e6;
    --bordeaux: #800020;       /* Rouge Bordeaux */
    --corail: #ff7f50;         /* Corail */
    --corail-light: #fff0eb;
    
    --cream: #faf7f2;
    --footer-brown: #2d2822; 
}

* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--sand);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .serif { font-family: 'Playfair Display', serif; }

nav {
    background: rgba(248,245,240,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--moss-light);
}

.nav-link {
    position: relative;
    color: var(--moss); 
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px 0;
    text-decoration: none;
}
.nav-link:hover { color: var(--bordeaux); text-decoration: none; }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 6px; left: 0;
    background: var(--corail);
    transition: width 0.3s;
}
.nav-link.active { color: var(--bordeaux); }
.nav-link.active::after { width: 100%; background: var(--bordeaux); }

.nav-contact {
    color: var(--moss);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px 0;
    margin-left: 2rem;
    text-decoration: none;
}
.nav-contact:hover { color: var(--bordeaux); text-decoration: underline; }

.dropdown { 
    position: relative; 
    display: inline-block;
    padding-bottom: 20px; 
    margin-bottom: -20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream);
    min-width: 180px;
    box-shadow: 0 20px 40px rgba(74,103,65,0.1);
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    border: 1px solid var(--moss-light);
    margin-top: -10px;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-item {
    display: block;
    padding: 9px 16px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.dropdown-item:hover { background: var(--moss-light); color: var(--moss); text-decoration: none; }

.card {
    background: var(--cream);
    border-radius: 20px;
    border: 1px solid rgba(74,64,53,0.07);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(74,103,65,0.1);
    border-color: var(--corail-light);
}

.hero-section {
    background-color: var(--sand);
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 100px;
    text-align: center;
}

.logo-placeholder {
    width: 120px; height: 120px;
    background: var(--cream);
    border-radius: 24px;
    border: 2px dashed var(--moss);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--moss);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    gap: 4px;
    margin: 0 auto 2rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bordeaux);
    margin-bottom: 16px;
}
.section-tag::before, .section-tag::after {
    content: '';
    width: 24px; height: 2px;
    background: var(--corail);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--moss);
    color: white !important;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(74,103,65,0.2);
}
.btn-primary:hover { 
    background: var(--bordeaux); 
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--moss) !important;
    border: 2px solid var(--moss);
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-secondary:hover {
    background: var(--moss-light);
    border-color: var(--corail);
    color: var(--corail) !important;
}

footer { 
    background: var(--footer-brown); 
    color: rgba(255,255,255,0.6); 
    padding: 60px 0;
    border-top: 4px solid var(--moss);
    margin-top: auto;
}

#history-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 26, 20, 0.6);
    backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#history-content {
    background: var(--cream);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    border-top: 8px solid var(--moss);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--moss-light);
    padding-bottom: 3rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--moss);
    border: 4px solid var(--sand);
}
.event-icon-box {
    width: 60px;
    height: 60px;
    background: var(--corail-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--corail);
    flex-shrink: 0;
}
