/* ============================================================
   Site personnel - Pr. Richard Welter
   Palette bleu pétrole
   ============================================================ */

:root {
    --bp-dark:    #1a4a5a;
    --bp:         #1e5f74;
    --bp-light:   #2a7b8c;
    --bp-pale:    #c9e4ea;
    --bp-turquoise: #62b6cb;
    --bg-1:       #f0f7f9;
    --bg-2:       #d9eaf0;
    --text:       #2c3e44;
    --text-soft:  #5a6b72;
}

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

body {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(30, 95, 116, 0.15);
    padding: 2rem;
}

/* --- En-tête --- */
header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--bp-turquoise);
}

header h1 {
    font-size: 2.2rem;
    color: var(--bp);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

header .subtitle {
    font-size: 1.05rem;
    color: var(--text-soft);
    font-style: italic;
}

/* --- Navigation minimale (page d'accueil) --- */
nav.minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--bp-pale);
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav.minimal a {
    color: var(--bp);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    font-size: 0.95rem;
}

nav.minimal a:hover {
    color: var(--bp-turquoise);
}

.lang-selector {
    font-size: 0.9rem;
    color: var(--text-soft);
    white-space: nowrap;
}

.lang-selector a {
    color: var(--bp);
    text-decoration: none;
    padding: 0.2rem 0.4rem;
}

.lang-selector a.active {
    font-weight: bold;
    color: var(--bp-dark);
}

.lang-selector a:hover {
    color: var(--bp-turquoise);
}

/* --- Navigation complète (pages intérieures) --- */
nav.full {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

nav.full a {
    display: inline-block;
    padding: 0.4rem 1rem;
    text-decoration: none;
    color: var(--bp);
    border: 1.5px solid var(--bp-turquoise);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

nav.full a:hover {
    background: var(--bp-turquoise);
    color: #fff;
}

nav.full a.active {
    background: var(--bp);
    color: #fff;
    border-color: var(--bp);
}

nav.full .lang-selector {
    margin-left: 0.6rem;
    padding-left: 0.8rem;
    border-left: 1px solid var(--bp-pale);
}

/* --- Page d'accueil : cartes en croix --- */
.accueil {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    margin: 2rem 0;
}

.accueil .portrait {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
}

.accueil .portrait img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bp-turquoise);
    box-shadow: 0 6px 20px rgba(30, 95, 116, 0.25);
}

.carte {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.2rem;
    border: 2px solid var(--bp-turquoise);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 260px;
}

.carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 95, 116, 0.2);
    background: #fff;
}

.carte h2 {
    font-size: 1.2rem;
    color: var(--bp);
    margin-bottom: 0.5rem;
}

.carte p {
    font-size: 0.88rem;
    color: var(--text-soft);
}

.carte-cours      { grid-column: 1; grid-row: 2; }
.carte-recherche  { grid-column: 2; grid-row: 1; }
.carte-youtube    { grid-column: 3; grid-row: 2; }
.carte-philosophe { grid-column: 2; grid-row: 3; }

/* --- Contenu des pages intérieures --- */
.page-content h2 {
    color: var(--bp);
    border-bottom: 1.5px solid var(--bp-turquoise);
    padding-bottom: 0.4rem;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.page-content h3 {
    color: var(--bp-light);
    margin: 1.4rem 0 0.6rem;
    font-size: 1.15rem;
}

.page-content p {
    margin-bottom: 0.9rem;
    text-align: justify;
}

.page-content ul, .page-content ol {
    margin: 0.8rem 0 1rem 1.8rem;
}

.page-content li {
    margin-bottom: 0.35rem;
}

/* --- Publications --- */
.year-header {
    color: var(--bp);
    font-size: 1.35rem;
    margin: 2.5rem 0 1rem;
    padding: 0.3rem 0.8rem;
    border-bottom: 2px solid var(--bp-turquoise);
    background: linear-gradient(to right, var(--bp-pale) 0%, transparent 100%);
}

.publication {
    margin-bottom: 0.8rem;
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--bp-pale);
    background: rgba(240, 247, 249, 0.5);
    border-radius: 0 8px 8px 0;
    font-size: 0.94rem;
}

.publication .titre {
    font-weight: bold;
    color: var(--text);
}

.publication .auteurs {
    font-style: italic;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.publication .revue {
    color: var(--bp);
    font-size: 0.9rem;
}

.publication.highlight {
    background: #eaf4f7;
    border-left-color: var(--bp);
    border-left-width: 5px;
}

/* --- Galerie peinture --- */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.galerie img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--bp-turquoise);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.galerie img:hover {
    transform: scale(1.03);
}

/* --- Citation --- */
blockquote {
    margin: 1.5rem 2rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--bp-turquoise);
    font-style: italic;
    color: var(--text-soft);
    background: rgba(240, 247, 249, 0.7);
    border-radius: 0 8px 8px 0;
}

blockquote cite {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: var(--bp);
    margin-top: 0.5rem;
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--bp);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    margin: 0.5rem 0.3rem;
    transition: background 0.25s ease;
}

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

/* --- Pied de page --- */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bp-turquoise);
    font-size: 0.85rem;
    color: var(--text-soft);
}

footer a {
    color: var(--bp);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Vignettes YouTube --- */
.vignettes-youtube {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.vignette {
    text-align: left;
    transition: transform 0.25s ease;
}

.vignette:hover {
    transform: translateY(-4px);
}

.vignette img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--bp-pale);
    display: block;
    margin-bottom: 0.6rem;
}

.vignette .titre-video {
    font-weight: bold;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.vignette .meta {
    font-size: 0.82rem;
    color: var(--text-soft);
}

/* --- Responsive --- */
@media (max-width: 750px) {
    .accueil {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .accueil .portrait,
    .carte-cours, .carte-recherche, .carte-youtube,
    .carte-philosophe {
        grid-column: 1;
        grid-row: auto;
    }
    header h1 {
        font-size: 1.7rem;
    }
    nav.full {
        font-size: 0.85rem;
    }
    nav.full a {
        padding: 0.3rem 0.7rem;
    }
}