:root {
    --primary: #235c4b;
    --primary-dark: #194337;
    --primary-light: #32836b;
    --accent: #235c4b;
    --bg-main: #f8faf9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(35, 92, 75, 0.08), 0 8px 10px -6px rgba(35, 92, 75, 0.08);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

.animate-up {
    animation: fadeInUp 0.7s ease forwards;
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(35, 92, 75, 0.2);
}

.logo-texts {
    display: flex;
    flex-direction: column;
}

.logo-brand .logo-img {
    height: 80px; /* Taille réduite (vous pouvez ajuster à 30px si c'est encore trop grand) */
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.pronote-nav {
    background: rgba(35, 92, 75, 0.1);
    color: var(--primary) !important;
    padding: 8px 16px;
    border-radius: 20px;
}

.pronote-nav:hover {
    background: var(--primary);
    color: var(--white) !important;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-admin, .btn-client {
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-admin:hover, .btn-client:hover {
    background: var(--primary-dark);
}

.btn-logout {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 8px;
    transition: var(--transition);
}

.btn-logout:hover {
    color: #ef4444;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.mobile-nav a {
    padding: 10px 0;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid #f1f5f9;
}

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-background-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    z-index: 1;
    opacity: 0.15;
}

.mosaic-item {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 250, 249, 0.92) 0%, rgba(255, 255, 255, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.badge-pill {
    display: inline-block;
    background: rgba(35, 92, 75, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-box {
    background: var(--primary);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 8px;
    display: inline-block;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(35, 92, 75, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    border: 2px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(35, 92, 75, 0.05);
}

.full-width {
    width: 100%;
    justify-content: center;
}

.impact-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.impact-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.impact-icon {
    width: 60px;
    height: 60px;
    background: rgba(35, 92, 75, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.impact-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.impact-card p {
    color: var(--text-muted);
    font-weight: 600;
}

.services-preview-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.service-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.service-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.service-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.service-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.service-icon.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.badge-free {
    background: rgba(35, 92, 75, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.link-arrow {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 10px;
}

.news-section {
    padding: 80px 0;
    background: var(--white);
}

.empty-notice {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: var(--bg-main);
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
}

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

.news-card {
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.news-img-wrap {
    position: relative;
    height: 220px;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-read-more:hover {
    gap: 12px;
}

.page-header-banner {
    background: linear-gradient(135deg, rgba(35, 92, 75, 0.08) 0%, rgba(35, 92, 75, 0.02) 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.article-page-wrapper {
    padding: 60px 0;
}

.article-container {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 30px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.article-header-content {
    margin-bottom: 30px;
}

.article-header-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0;
    line-height: 1.25;
}

.article-meta-info {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-featured-image {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 50px;
}

.article-share-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.share-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.team-page-container {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.team-img {
    height: 250px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-role {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.team-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.services-page-container {
    padding: 60px 0;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.service-detail-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-detail-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.pronote-hero-section {
    padding: 60px 0;
}

.pronote-container {
    max-width: 1000px;
}

.pronote-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(35, 92, 75, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.pronote-container h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.pronote-container > p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.pronote-portals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.portal-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    text-align: center;
    transition: var(--transition);
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.portal-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.portal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portal-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pronote-help-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius);
}

.pronote-help-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pronote-help-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.admin-page-wrapper, .setup-body {
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setup-card, .auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
}

.setup-header, .auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.setup-header h1, .auth-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 10px 0;
}

.setup-header p, .auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-main);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(35, 92, 75, 0.1);
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.alert-info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer-link a {
    color: var(--primary);
    font-weight: 700;
}

.admin-dashboard {
    width: 100%;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.dashboard-topbar h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 5px;
}

.btn-logout-dash {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-logout-dash:hover {
    background: #ef4444;
    color: var(--white);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.dash-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.dash-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.news-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.news-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.news-admin-item span {
    font-size: 0.9rem;
}

.btn-delete {
    color: #ef4444;
    padding: 8px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    transition: var(--transition);
}

.btn-delete:hover {
    background: #ef4444;
    color: var(--white);
}

.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 70px 0 30px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.brand-col p {
    font-size: 0.95rem;
    margin: 15px 0 20px 0;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a, .footer-col p {
    font-size: 0.95rem;
    color: #9ca3af;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ext-link-p a {
    color: #34d399;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: #9ca3af;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .impact-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid, .pronote-portals-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-grid, .footer-container, .services-grid, .services-detailed-grid {
        grid-template-columns: 1fr;
    }
    .main-nav, .header-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}
