/*
 * Charte graphique du Corpus Médical (logo_lcm_projets.pdf)
 * Marine #184159, turquoise #0097B2, sarcelle #03989E, blanc, motif tissé.
 * Chargée après style.css sur tout le site : les variables recolorent aussi
 * les pages qui n'ont pas encore été retravaillées.
 */

:root {
    --primary-color: #184159;
    --accent-color: #0097B2;
    --dark-blue: #11314a;
    --light-gray: #f2f7f9;
    --color-primary: #184159;
    --color-accent: #0097B2;

    --lcm-marine: #184159;
    --lcm-marine-fonce: #11314a;
    --lcm-turquoise: #0097B2;
    --lcm-turquoise-fonce: #007f96;
    --lcm-sarcelle: #03989E;
    --lcm-turquoise-clair: #7fd3e4;
    --lcm-fond: #f2f7f9;
    --lcm-texte: #33424f;
    --lcm-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M8 10h26M8 20h26M8 30h26'/%3E%3Cpath d='M58 6v28M70 8v26M82 6v28'/%3E%3Cpath d='M12 54v28M24 56v26M36 54v28'/%3E%3Cpath d='M56 60h28M56 70h26M56 80h28'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Typographie ---------- */

h1, h2, h3, h4,
.section-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--lcm-marine);
    letter-spacing: -0.01em;
}

.lcm-surtitre {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lcm-turquoise);
}

.lcm-surtitre::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.lcm-surtitre-clair {
    color: var(--lcm-turquoise-clair);
}

.lcm-turquoise {
    color: var(--lcm-turquoise);
}

/* ---------- Boutons ---------- */

.lcm-bouton,
.button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 30px;
    background: var(--lcm-turquoise);
    border: 2px solid var(--lcm-turquoise);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lcm-bouton:hover,
.button-primary:hover {
    background: var(--lcm-turquoise-fonce);
    border-color: var(--lcm-turquoise-fonce);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 151, 178, 0.3);
}

.lcm-bouton svg {
    width: 18px;
    height: 18px;
}

.lcm-bouton-clair {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
}

.lcm-bouton-clair:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    box-shadow: none;
}

.lcm-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- En-tête ---------- */

.site-header {
    background-color: var(--lcm-marine);
    background-image: var(--lcm-motif);
    box-shadow: 0 2px 18px rgba(8, 28, 42, 0.25);
}

.header-content {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-logo {
    display: inline-flex;
    line-height: 0;
}

.site-branding .site-logo img {
    height: 48px;
    max-height: none;
    width: auto;
}

.site-description {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.main-navigation .nav-menu a,
.nav-menu a {
    font-weight: 500;
}

.nav-menu > li > a::after {
    background-color: var(--lcm-turquoise) !important;
}

.nav-menu .sub-menu a:hover {
    color: var(--lcm-turquoise);
}

.button-primary.donate-button {
    background: var(--lcm-turquoise);
    border: 2px solid var(--lcm-turquoise);
    color: #fff;
}

.button-primary.donate-button:hover {
    background: #fff;
    border-color: #fff;
    color: var(--lcm-marine);
}

.button-primary.donate-button .icon-heart {
    fill: currentColor;
}

/* Écrans moyens : la devise prend trop de place à côté du menu. */
@media (min-width: 769px) and (max-width: 1150px) {
    .site-description {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-branding .site-logo img {
        height: 38px;
    }
}

/* ---------- Bandeau d'accueil ---------- */

.lcm-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--lcm-marine);
    background-image:
        var(--lcm-motif),
        radial-gradient(circle at 85% 20%, rgba(0, 151, 178, 0.35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(3, 152, 158, 0.25), transparent 40%);
    padding: 170px 0 130px;
    min-height: 78vh;
    display: flex;
    align-items: center;
}

.lcm-hero-contenu {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.lcm-hero h1 {
    color: #fff;
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.12;
    font-weight: 800;
    max-width: 820px;
    margin: 6px 0 22px;
}

.lcm-hero .lcm-turquoise {
    color: var(--lcm-turquoise-clair);
}

.lcm-hero-texte {
    font-size: 19px;
    line-height: 1.7;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 34px;
}

/* Décor : grande croix médicale (rappel du logo) et halos */
.lcm-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lcm-croix {
    position: absolute;
    right: 7%;
    top: 50%;
    width: 340px;
    height: 340px;
    margin-top: -150px;
    opacity: 0.9;
    animation: lcm-flotte 9s ease-in-out infinite;
}

.lcm-croix::before,
.lcm-croix::after {
    content: "";
    position: absolute;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--lcm-turquoise), var(--lcm-sarcelle));
    background-image: var(--lcm-motif), linear-gradient(135deg, var(--lcm-turquoise), var(--lcm-sarcelle));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.lcm-croix::before {
    left: 34%;
    width: 32%;
    top: 0;
    height: 100%;
}

.lcm-croix::after {
    top: 34%;
    height: 32%;
    left: 0;
    width: 100%;
}

.lcm-halo {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(127, 211, 228, 0.25);
}

.lcm-halo-1 {
    width: 520px;
    height: 520px;
    right: calc(7% - 90px);
    top: 50%;
    margin-top: -240px;
    animation: lcm-tourne 40s linear infinite;
    border-style: dashed;
}

.lcm-halo-2 {
    width: 680px;
    height: 680px;
    right: calc(7% - 170px);
    top: 50%;
    margin-top: -320px;
    border-color: rgba(255, 255, 255, 0.06);
}

@keyframes lcm-flotte {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(3deg); }
}

@keyframes lcm-tourne {
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    .lcm-croix { width: 240px; height: 240px; margin-top: -110px; right: 4%; opacity: 0.35; }
    .lcm-halo-1 { width: 380px; height: 380px; margin-top: -180px; right: calc(4% - 70px); }
    .lcm-halo-2 { display: none; }
}

@media (max-width: 768px) {
    .lcm-hero { padding: 250px 0 80px; min-height: 0; }
    .lcm-hero-texte { font-size: 17px; }
    .lcm-croix { width: 160px; height: 160px; top: auto; bottom: -30px; right: -30px; margin: 0; opacity: 0.25; }
    .lcm-halo-1 { display: none; }
}

/* ---------- À propos ---------- */

.about-section {
    background: #fff;
}

.about-image-wrapper {
    overflow: visible;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(24, 65, 89, 0.18);
}

.about-image-decoration {
    z-index: 0;
    opacity: 1;
    border-radius: 28px;
    width: 160px;
    height: 160px;
    right: -18px;
    bottom: -18px;
    background-color: var(--lcm-turquoise);
    background-image: var(--lcm-motif);
}

.about-section .section-title,
.lcm-projets .section-title {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 24px;
}

.section-title::after {
    display: none;
}

.about-description {
    color: var(--lcm-texte);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.lcm-concepts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 8px;
    padding: 0;
}

.lcm-concepts li {
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 151, 178, 0.1);
    color: var(--lcm-marine);
    font-weight: 600;
    font-size: 14px;
}

.lcm-concepts li::before {
    content: "✦ ";
    color: var(--lcm-turquoise);
}

.stats-grid {
    /* La dernière tuile (+34 000) est plus large que les deux autres. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 14px;
}

.stat-card {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.stat-card {
    border: 0;
    min-height: 0;
    padding: 28px 16px;
    border-radius: 18px;
    background: var(--lcm-marine);
    background-image: var(--lcm-motif);
    box-shadow: 0 10px 24px rgba(24, 65, 89, 0.18);
}

.stat-number,
.stat-card:last-child .stat-number {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 800;
    color: var(--lcm-turquoise-clair);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .stats-grid { max-width: 480px; gap: 10px; }
    .stat-card { padding: 20px 6px !important; }
    .stat-number,
    .stat-card:last-child .stat-number { font-size: 24px; }
    .stat-label { font-size: 11px; letter-spacing: 0.06em; }
}

/* ---------- Nos projets ---------- */

.lcm-projets {
    background: var(--lcm-fond);
    padding: 100px 0;
}

.lcm-projets .container {
    max-width: 1200px;
    text-align: center;
}

.lcm-projets .section-title {
    margin-bottom: 36px;
}

.lcm-projets-grille {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 12px;
}

.lcm-projet {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: var(--lcm-texte);
    box-shadow: 0 6px 20px rgba(24, 65, 89, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lcm-projet:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(24, 65, 89, 0.18);
}

.lcm-projet-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 22px;
    background-color: var(--lcm-marine);
    background-image: var(--lcm-motif);
    transition: background-color 0.3s ease;
}

.lcm-projet:hover .lcm-projet-logo {
    background-color: var(--lcm-marine-fonce);
}

.lcm-projet-logo img {
    width: 100%;
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.lcm-projet:hover .lcm-projet-logo img {
    transform: scale(1.06);
}

.lcm-projet-logo strong {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
}

.lcm-projet-corps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 26px 24px;
}

.lcm-projet-theme {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lcm-turquoise);
}

.lcm-projet-texte {
    line-height: 1.65;
    flex: 1;
}

.lcm-projet-lien {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--lcm-marine);
}

.lcm-projet-lien svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.lcm-projet:hover .lcm-projet-lien {
    color: var(--lcm-turquoise);
}

.lcm-projet:hover .lcm-projet-lien svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .lcm-projets-grille { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .lcm-projet { grid-template-columns: 1fr; }
    .lcm-projet-logo { padding: 26px; }
    .lcm-projet-logo img { max-width: 150px; max-height: 96px; }
}

/* ---------- Partenaires ---------- */

.lcm-partenaires {
    background: #fff;
    text-align: center;
}

.lcm-partenaires h2 {
    font-size: clamp(30px, 3.6vw, 40px);
    margin-bottom: 36px;
    padding-bottom: 0;
}

.lcm-partenaires h2::after {
    display: none;
}

.lcm-partenaires .partner-logo {
    height: 150px;
    border: 1px solid #e3ecf0;
    box-shadow: none;
    border-radius: 18px;
}

.lcm-partenaires .partner-logo:hover {
    border-color: var(--lcm-turquoise-clair);
}

/* ---------- Actualités et calendrier ---------- */

.news-section h2::after,
.calendar-header h2::after {
    background: var(--lcm-turquoise);
}

.calendar-header {
    text-align: center;
}

.calendar-header .lcm-surtitre {
    color: var(--lcm-turquoise);
    font-size: 13px;
    margin-bottom: 10px;
}

.calendar-date {
    background-color: var(--lcm-marine);
    background-image: var(--lcm-motif);
}

.calendar-card::before {
    background: var(--lcm-turquoise);
}

/* ---------- Pied de page ---------- */

.lcm-pied {
    background-color: var(--lcm-marine);
    background-image: var(--lcm-motif);
    padding-top: 72px;
}

.lcm-pied-grille {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 20px;
}

.lcm-pied .footer-widget {
    padding: 0;
}

.lcm-pied-logo img {
    height: 60px;
    width: auto;
}

.lcm-pied-devise {
    margin: 16px 0 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--lcm-turquoise-clair);
}

.lcm-pied-marque p:last-child {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-size: 15px;
    max-width: 360px;
}

.lcm-pied .widget-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
}

.lcm-pied .footer-widget li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.lcm-pied .footer-widget a {
    color: rgba(255, 255, 255, 0.85);
}

.lcm-pied .footer-widget a:hover {
    color: var(--lcm-turquoise-clair);
}

.lcm-pied .contact-info .icon {
    fill: var(--lcm-turquoise-clair);
}

.lcm-pied-don {
    margin-top: 8px;
    padding: 10px 22px;
}

.lcm-pied .footer-bottom {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 28px;
    padding: 26px 0 30px;
}

.lcm-pied .social-link:hover {
    background-color: var(--lcm-turquoise);
}

@media (max-width: 1024px) {
    .lcm-pied-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .lcm-pied-grille { grid-template-columns: 1fr; text-align: left; }
    .lcm-pied .footer-widget li { justify-content: flex-start; }
}

/* ---------- Animations réduites ---------- */

@media (prefers-reduced-motion: reduce) {
    .lcm-croix,
    .lcm-halo-1 { animation: none; }
    .lcm-projet,
    .lcm-projet-logo img,
    .lcm-bouton,
    .button-primary { transition: none; }
}
