/*
Theme Name: CSE Desjoyaux Theme New
Theme URI: https://cse-desjoyaux.fr
Author: CSE Desjoyaux
Author URI: https://cse-desjoyaux.fr
Description: Thème personnalisé pour le CSE Desjoyaux avec design moderne et fonctionnalités sur mesure
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cse-desjoyaux
*/

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #004999;
    --accent-color: #00aaff;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);


	/* Couleurs du CSE Desjoyaux (basées sur le logo) */
    --cse-bleu-principal: #0078BE;
    --cse-bleu-fonce: #003D6B;
    --cse-jaune: #FFD100;
    --cse-gris-clair: #F5F5F5;
    --cse-texte: #333333;
    
    /* Remplacer les couleurs WordPress par défaut */
    --wp--preset--color--primary: #0078BE;
    --wp--preset--color--secondary: #FFD100;
    --wp--preset--color--contrast: #003D6B;
	--wp--preset--font-family--body: "Cardo", Georgia, serif;
    --wp--preset--font-family--heading: "Cardo", Georgia, serif;
    --wp--preset--font-size--medium: 1rem;
    --wp--preset--font-size--large: 1.125rem;
}
/* === FONTS === */
@font-face {
    font-family: 'Cardo';
    src: url('assets/fonts/cardo/Cardo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cardo';
    src: url('assets/fonts/cardo/Cardo-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cardo';
    src: url('assets/fonts/cardo/Cardo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Personnaliser la typographie */
body {
    color: var(--cse-texte);
	font-family: "Cardo", Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.6;
	 line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cse-bleu-fonce); 
	font-weight: 400;
	font-family: "Cardo", Georgia, serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* === HEADER === */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.site-logo img {
    height: 100px;
    width: auto;
}

.login-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* === Bouton Espace Adhérent === */
.header-cta {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-adherent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--cse-bleu-principal);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-adherent:hover {
	color: #ffffff;
    background-color: var(--cse-bleu-fonce);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 120, 190, 0.3);
}

/* === Variante bouton home (vert ou couleur alternative) === */
.btn-home {
    background-color: var(--cse-jaune);
    color: var(--cse-bleu-fonce);
}

.btn-home:hover {
    background-color: #E6BC00;
    color: var(--cse-bleu-fonce);
}

/* === Bouton Se déconnecter === */
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #dc3545;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
	color: #ffffff;
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.icon-user,
.icon-home,
.icon-logout {
    font-size: 18px;
}


/* === HERO SECTION === */
.hero-section {
	background: linear-gradient(135deg, #0078BE 0%, #003D6B 100%);
    color: #ffffff;
    /*background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);*/
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: url('images/hero-image.jpg') center/cover;*/
    opacity: 0.15;
    z-index: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
	padding: 20px 0;
    position: relative;
    z-index: 1;
}
.hero-content h1{
    color: var(--white);
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
/* Boutons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #FFD100;
    color: #003D6B;
}

.btn-primary:hover {
    background-color: #E6BC00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0078BE;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-cta {
    background-color: #FFD100;
    color: #003D6B;
}


/*
.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}
*/
/* === PRESENTATION SECTION === */
.presentation-section {
    padding: 2rem 2rem;
    background: var(--bg-light);
}

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

.presentation-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.presentation-section p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.8;
}

/*.presentation-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}
*/
.section-title {
    font-size: 36px;
    color: #003D6B;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}
/*
.presentation-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}

.presentation-content p {
    margin-bottom: 20px;
}
*/
/* === Section Actualites === */
.actualites-section {
    padding: 20px 20px;
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.actualites-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.actualites-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 120, 190, 0.2);
}

.actualites-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.actualites-card h3 {
    color: #0078BE;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.actualites-card p {
    color: #666;
    line-height: 1.6;
}

/* === Actualités récentes === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card h3 a {
    color: #003D6B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card h3 a:hover {
    color: #0078BE;
}

.news-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.read-more {
    color: #0078BE;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

.view-all-news {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all {
    display: inline-block;
    background-color: #0078BE;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
	color: #ffffff;
	text-decoration: none;
    background-color: #003D6B;
    transform: translateY(-2px);
}

.no-news {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* === Section Avantages === */
.avantages-section {
    padding: 20px 20px;
	background-color: #f8f9fa;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.avantage-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 120, 190, 0.2);
}

.avantage-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.avantage-card h3 {
    color: #0078BE;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.avantage-card p {
    color: #666;
    line-height: 1.6;
}

/* === Section Info === */
.info-section {
    padding: 20px 20px;
    /*background-color: #f8f9fa;*/
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.info-box {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.info-box h3 {
    color: #0078BE;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-box p {
    color: #666;
    margin: 8px 0;
    line-height: 1.6;
}


/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* === FOOTER === */
.site-footer {
    background: var(--cse-bleu-fonce);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--cse-jaune);
}

.footer-section p,
.footer-section ul {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
	font-size: 0.7rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    margin: 0 0.5rem;
	font-size: 0.7rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
	.hero-container {
		grid-template-columns: 1fr;
		gap: 40px;
    }
    
	.hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .presentation-section h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
	.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--cse-jaune);
	}    
    .header-container {
        padding: 0 1rem;
    }
	
	.hero-section {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .avantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
	
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
	
	.main-navigation {
		display: flex;
		flex-direction: column;
		gap: 0.4rem;
	}
	
}
	
