/*
Theme Name: Club TIR Maroc
Description: Thème WordPress pour le Club TIR Maroc - communauté d'apprentissage et de développement professionnel
Version: 1.0
Author: Club TIR Maroc
*/

/* ============================================
   Variables de couleurs CTM v2
   ============================================ */
:root {
    --navy: #0b1d3a;
    --navy-2: #12325f;
    --gold: #c8a24a;
    --gold-2: #e0c07a;
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #0e1726;
    --muted: #5b6575;
    --line: rgba(14, 23, 38, .12);
    /* Couleurs avec transparence pour rgba() */
    --navy-rgb: 11, 29, 58;
    --gold-rgb: 200, 162, 74;
    --gold-2-rgb: 224, 192, 122;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background-color: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 50%, var(--navy) 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(11, 29, 58, 0.3);
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-logo img {
    margin-right: 10px;
    height: 65px;
    width: 65px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-2);
    text-shadow: 0 0 10px rgba(224, 192, 122, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--gold-2), var(--gold));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(200, 162, 74, 0.5);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--gold-2) 50%, var(--gold) 100%);
    color: var(--text);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(var(--gold-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(var(--navy-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--gold) 0%, var(--navy-2) 50%, var(--navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(var(--navy-rgb), 0.3);
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, var(--gold), var(--navy-2));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--gold-rgb), 0.6);
    background: linear-gradient(45deg, var(--navy-2), var(--navy));
    color: white;
}

.hero-image {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(var(--navy-rgb), 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    display: block;
}

.hero-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(var(--navy-rgb), 0.5);
}


/* Sections générales */
section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--gold), var(--navy-2));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(var(--gold-rgb), 0.4);
}

/* Valeurs Section */
.valeur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


.valeur-card {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.valeur-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--navy-rgb), 0.2);
    border-color: rgba(var(--gold-rgb), 0.4);
}

.valeur-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--gold), var(--navy-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(var(--navy-rgb), 0.3));
}

.valeur-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.valeur-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Formation Section */
.formation {
    background: linear-gradient(135deg, var(--bg) 0%, var(--gold-2) 100%);
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}



.formation-card {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--navy-rgb), 0.2);
    border-color: rgba(var(--gold-rgb), 0.4);
}

.formation-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--gold), var(--navy-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(var(--navy-rgb), 0.3));
}

.formation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Activités Section */
.activites-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.activites-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--navy-2), var(--navy));
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.3);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--gold), var(--navy-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.4);
    border: 3px solid var(--bg);
}

.timeline-content {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.1);
    margin: 0 2rem;
    flex: 1;
    max-width: 300px;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Galerie Photos Activités */
.activites-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item-combo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 600px;
}

.gallery-item-mosquee {
    position: relative;
    flex: 1;
    min-height: 350px;
}

.gallery-item-piscine {
    position: relative;
    align-self: flex-end;
    width: 80%;
    min-height: 300px;
}

.gallery-item {
    position: relative;
    overflow: visible;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 300px;
}

.gallery-item-large {
    grid-column: span 2;
    min-height: 400px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(var(--navy-rgb), 0.3);
}

.gallery-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: calc(var(--radius) - 5px);
}

.gallery-item-large .gallery-image {
    max-height: 600px;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(var(--navy-rgb), 0.9), rgba(var(--navy-rgb), 0.7), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

/* Responsive Galerie */
@media (max-width: 1024px) {
    .gallery-item-large {
        grid-column: span 1;
        min-height: 300px;
    }
    
    .gallery-item-large .gallery-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .activites-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        min-height: 250px;
        padding: 0.75rem;
    }
    
    .gallery-item-large {
        grid-column: span 1;
        min-height: 250px;
    }
    
    .gallery-item-combo {
        min-height: auto;
        flex-direction: column;
    }
    
    .gallery-item-piscine {
        width: 100%;
        align-self: stretch;
    }
    
    .gallery-image {
        max-height: 400px;
    }
    
    .gallery-item-large .gallery-image {
        max-height: 400px;
    }
    
    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(var(--navy-rgb), 0.85), rgba(var(--navy-rgb), 0.6));
    }
    
    .gallery-caption {
        font-size: 1rem;
    }
}

/* Membres Section */
.membres {
    background: linear-gradient(135deg, var(--bg) 0%, var(--gold-2) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(88, 30, 0, 0.2);
    border-color: rgba(var(--gold-rgb), 0.4);
}

.stat-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gold), var(--navy-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(var(--navy-rgb), 0.3));
}

.stat-card h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gold), var(--navy-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(var(--navy-rgb), 0.3);
}

/* Formulaire d'inscription */
.inscription {
    background: linear-gradient(135deg, var(--bg) 0%, var(--gold-2) 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(var(--navy-rgb), 0.15);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.3);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.submit-button {
    background: linear-gradient(45deg, var(--gold), var(--navy-2));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--gold-rgb), 0.6);
    background: linear-gradient(45deg, var(--navy-2), var(--navy));
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--bg) 0%, var(--gold-2) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold), var(--navy-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 1rem;
    width: 50px;
    filter: drop-shadow(0 2px 4px rgba(var(--navy-rgb), 0.3));
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--gold), var(--navy-2));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.4);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(176, 119, 97, 0.6);
    background: linear-gradient(45deg, var(--navy-2), var(--navy));
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, #2c2c2c 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(var(--gold-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--gold-2);
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold-2);
    text-shadow: 0 0 10px rgba(var(--gold-2-rgb), 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--gold-rgb), 0.3);
    color: var(--gold-2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-photo {
        max-width: 875px;
    }
    
    
    .activites-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-icon {
        position: absolute;
        left: 0;
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .formation-grid,
    .valeur-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.formation-card,
.valeur-card,
.timeline-item,
.stat-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Bulles de pensée décoratives */
.thinking-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.thinking-bubbles::before,
.thinking-bubbles::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.2), rgba(var(--navy-rgb), 0.3));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(var(--navy-rgb), 0.2);
}

.thinking-bubbles::before {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.thinking-bubbles::after {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Amélioration des polices */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

p, span, div, label, input, textarea, select {
    font-family: 'Open Sans', sans-serif;
}

/* Effets de brillance métallique */
.metallic-shine {
    position: relative;
    overflow: hidden;
}

.metallic-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.metallic-shine:hover::before {
    left: 100%;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Styles WordPress spécifiques */
.wp-block-group {
    margin: 0;
}

.alignwide {
    max-width: 1200px;
    margin: 0 auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Navigation WordPress */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-block;
    margin: 0 1rem;
}

.main-navigation a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--gold-2) !important;
}

/* Styles spécifiques pour la navigation WordPress */
.nav-menu a,
.nav-menu li a,
.navbar .nav-menu a,
.navbar .nav-menu li a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu li a:hover,
.navbar .nav-menu a:hover,
.navbar .nav-menu li a:hover {
    color: var(--gold-2) !important;
    text-shadow: 0 0 10px rgba(var(--gold-2-rgb), 0.8);
}

/* Styles pour les liens de navigation avec !important pour surcharger WordPress */
.navbar a,
.navbar .nav-link,
.navbar .nav-menu a,
.navbar .nav-menu .nav-link {
    color: white !important;
}

.navbar a:hover,
.navbar .nav-link:hover,
.navbar .nav-menu a:hover,
.navbar .nav-menu .nav-link:hover {
    color: var(--gold-2) !important;
}

/* Content WordPress */
.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.entry-title {
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-bottom: 1rem;
}

/* Widgets */
.widget {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.widget-title {
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.comment-author {
    font-weight: bold;
    color: var(--gold);
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Search form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
}

.search-submit {
    background: linear-gradient(45deg, var(--gold), var(--navy-2));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: linear-gradient(45deg, var(--navy-2), var(--navy));
}

/* Section Mot du fondateur */
.fondateur {
    padding: 80px 0;
    background: radial-gradient(1400px 600px at 15% -10%, rgba(200, 162, 74, .20), transparent 60%),
                radial-gradient(900px 500px at 95% 0%, rgba(18, 50, 95, .20), transparent 55%),
                var(--bg);
    position: relative;
}

.fondateur-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.fondateur-image {
    position: sticky;
    top: 100px;
    text-align: center;
}

.fondateur-photo {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--line);
    background: var(--card);
    padding: 15px;
    object-fit: contain;
}

.fondateur-text {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.fondateur-title {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
    text-align: left;
    letter-spacing: 0.3px;
    position: relative;
    line-height: 1.4;
}

.fondateur-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), rgba(var(--gold-rgb), 0.4), transparent);
}

.fondateur-title sup {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--gold);
    font-weight: 800;
    font-family: "Montserrat", system-ui, sans-serif;
}

.fondateur-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.15), rgba(var(--gold-2-rgb), 0.15));
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(var(--gold-rgb), 0.1);
}

.fondateur-badge i {
    color: var(--gold);
}

.fondateur-message {
    color: var(--text);
    line-height: 1.85;
    font-size: 1.05rem;
    font-family: 'Open Sans', sans-serif;
}

.fondateur-message p {
    margin-bottom: 1.2rem;
    color: var(--text);
}

.fondateur-list {
    list-style: disc;
    padding-left: 4.5rem;
    margin: 3rem 0;
}

.fondateur-list li {
    margin-bottom: 0.8rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

.fondateur-list li::marker {
    color: var(--gold);
}

.fondateur-intro {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.5rem !important;
}

.fondateur-intro strong {
    color: var(--gold);
    font-weight: 700;
}

.fondateur-highlight {
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.18), rgba(var(--gold-2-rgb), 0.18));
    padding: 1.3rem 1.6rem;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    margin: 1.8rem 0 !important;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.1);
}

.fondateur-highlight strong {
    color: var(--navy);
    font-weight: 700;
}

.fondateur-quote {
    background: rgba(var(--navy-rgb), 0.06);
    padding: 1.6rem;
    border-left: 4px solid var(--navy);
    border-radius: 10px;
    font-style: italic;
    margin: 1.8rem 0 !important;
    color: var(--navy);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--navy-rgb), 0.08);
}

.fondateur-closing {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    text-align: center;
}

.fondateur-closing strong {
    color: var(--gold);
    font-weight: 700;
}

.fondateur-signature {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 3px solid var(--line);
    text-align: right;
    position: relative;
}

.fondateur-signature::before {
    content: '';
    position: absolute;
    top: -3px;
    right: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.signature-line {
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2));
    margin: 0 0 1.2rem auto;
    border-radius: 2px;
}

.signature-name {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.signature-title {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 500;
    font-style: italic;
}

/* Responsive pour la section fondateur */
@media (max-width: 980px) {
    .fondateur-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fondateur-image {
        position: static;
        text-align: center;
    }
    
    .fondateur-photo {
        max-width: 500px;
    }
    
    .fondateur-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .fondateur {
        padding: 60px 0;
    }
    
    .fondateur-text {
        padding: 1.5rem;
    }
    
    .fondateur-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        padding-bottom: 1.2rem;
        letter-spacing: 0.3px;
    }
    
    .fondateur-title::before {
        width: 80px;
    }
    
    .fondateur-message {
        font-size: 1rem;
        text-align: left;
    }
    
    .fondateur-intro {
        font-size: 1.05rem;
    }
    
    .fondateur-highlight,
    .fondateur-quote {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .fondateur-closing {
        font-size: 1.1rem;
    }
    
    .signature-name {
        font-size: 1.3rem;
    }
    
    .signature-line {
        width: 180px;
    }
}

/* Section À propos */
.apropos {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--gold-2) 100%);
    position: relative;
    z-index: 1;
}

.apropos p {
    font-size: 1.3rem !important;
    line-height: 1.7 !important;
    color: #581e00 !important;
    margin-bottom: 2rem !important;
    text-indent: 2rem !important;
    font-weight: 600 !important;
    text-align: justify !important;
}

.apropos p:first-of-type {
    text-indent: 0 !important;
    font-weight: 700 !important;
}

.apropos p:last-of-type {
    margin-bottom: 0 !important;
}

.apropos h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #2c2c2c !important;
}

/* Style spécifique pour tous les éléments de texte dans la section À propos */
.apropos * {
    color: inherit;
}

.apropos p, .apropos div, .apropos span {
    color: #4a4a4a !important;
}

/* Section Valeur */

.valeur {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    position: relative;
    z-index: 1;
}

.valeur h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

.valeur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.valeur-card {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.1);
    text-align: center;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valeur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(var(--navy-rgb), 0.15);
}

.valeur-card i {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 1rem;
    display: block;
}

.valeur-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.valeur-card p {
    font-size: 1.1rem !important;
    color: #581e00 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    text-align: center !important;
}

/* Style pour le bouton CTA "Rejoindre" - Style moderne CTM v2 */
.nav-item-cta {
    margin-left: 0.9rem;
}

.nav-link-cta {
    background: linear-gradient(135deg, #a6893c, var(--gold), #b89646) !important;
    color: var(--navy) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease !important;
    box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.4) !important;
    border: 1px solid rgba(var(--gold-rgb), 0.4) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, #957a34, var(--gold), #c8a24a) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 40px rgba(var(--gold-rgb), 0.5) !important;
    color: var(--navy) !important;
    border-color: rgba(var(--gold-rgb), 0.6) !important;
}

.nav-link-cta:active {
    transform: translateY(1px) !important;
    box-shadow: 0 8px 25px rgba(var(--gold-rgb), 0.25) !important;
}

/* Responsive pour le bouton CTA */
@media (max-width: 768px) {
    .nav-item-cta {
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
    }
    
    .nav-link-cta {
        display: inline-block;
        width: auto;
        min-width: 120px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .apropos h2,
    .valeurs h2 {
        font-size: 2rem;
    }
    
    .valeurs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .valeur-card {
        padding: 1.5rem;
    }
}
