/*
Theme Name: Colocvaldemarne
Theme URI: 
Author: Kévin BRISSEZ
Author URI: 
Description: Développement par Kévin BRISSEZ pour colocvaldemarne.fr
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: colocvaldemarne
Package: kbrissez
*/

/* ===========================
   TABLE DES MATIÈRES
   ===========================
   1. RESET & BASE
   2. HEADER & NAVIGATION
   3. HERO SECTIONS
   4. PAGES & ARTICLES
   5. COMMENTAIRES
   6. ARCHIVES & LISTE
   7. FORMULAIRES
   8. COMPOSANTS
   9. SECTIONS SPÉCIFIQUES
   10. FOOTER
   11. UTILITAIRES
   12. MEDIA QUERIES
   =========================== */


/* ===========================
   1. RESET & BASE
   =========================== */

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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* ===========================
   2. HEADER & NAVIGATION
   =========================== */

/* Header */
.header {
    background: linear-gradient(90deg, #5B7DB1 0%, #7BA896 100%);
    padding: 10px 0;
    color: white;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Ajustement pour la barre d'administration WordPress */
body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

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

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    position: relative;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* Style pour l'effet porte-clé */
.keychain-logo {
    transform-origin: top center;
}

.keychain-logo img {
    transform-origin: top center;
    will-change: transform;
}

/* Style pour l'effet porte-clé dans le footer */
.footer-logo.keychain-logo,
.footer-logo .site-logo.keychain-logo {
    transform-origin: top center;
}

.footer-logo.keychain-logo img,
.footer-logo .site-logo.keychain-logo img {
    transform-origin: top center;
    will-change: transform;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 600;
}

.logo-text p {
    font-size: 16px;
    opacity: 0.9;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    opacity: 0.8;
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    line-height: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon:active {
    transform: translateY(-1px) scale(1.05);
}

/* Social Icons - Couleurs spécifiques */
.social-icon[aria-label="Facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-icon[aria-label="LinkedIn"]:hover {
    background: #0077B5;
    border-color: #0077B5;
}

.social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-icon[aria-label="Email"]:hover {
    background: #EA4335;
    border-color: #EA4335;
}

.social-icon[aria-label="Twitter"]:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.social-icon[aria-label="YouTube"]:hover {
    background: #FF0000;
    border-color: #FF0000;
}


/* ===========================
   3. HERO SECTIONS
   =========================== */

/* Hero général */
.hero {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
    scroll-margin-top: 120px; /* Offset pour le header fixe */
}

.hero-content {
    flex: 1;
}

.hero h2 {
    font-size: 36px;
    color: #2C3E50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    margin-bottom: 15px;
    color: #555;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Page Hero */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px 80px;
    color: white;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-simple {
    background: linear-gradient(135deg, #5B7DB1 0%, #7BA896 100%);
    padding: 80px 20px 60px;
    color: white;
    text-align: center;
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* Article Hero */
.article-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px 80px;
    color: white;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.article-date {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 25px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.article-excerpt {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.95;
    font-weight: 400;
}

.article-author {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
}


/* ===========================
   4. PAGES & ARTICLES
   =========================== */

/* Page Content */
.page-main {
    background: #fff;
    padding: 0;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-wrapper {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.page-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2C3E50;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.page-wrapper h3 {
    font-size: 26px;
    font-weight: 600;
    color: #2C3E50;
    margin: 35px 0 18px 0;
    line-height: 1.4;
}

.page-wrapper h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    margin: 30px 0 15px 0;
    line-height: 1.4;
}

.page-wrapper p {
    margin-bottom: 20px;
    color: #555;
}

.page-wrapper ul,
.page-wrapper ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #555;
}

.page-wrapper li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.page-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.page-wrapper a {
    color: #5B7DB1;
    text-decoration: none;
    transition: color 0.2s;
}

.page-wrapper a:hover {
    color: #4a6a9a;
    text-decoration: underline;
}

.page-wrapper blockquote {
    border-left: 4px solid #5B7DB1;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.page-wrapper code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 16px;
    color: #d63384;
}

.page-wrapper pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 30px 0;
}

.page-wrapper pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Article Content */
.article-main {
    background: #fff;
    padding: 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 0;
}

.article-wrapper {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2C3E50;
    margin: 50px 0 20px 0;
    line-height: 1.3;
}

.article-wrapper h3 {
    font-size: 26px;
    font-weight: 600;
    color: #2C3E50;
    margin: 40px 0 15px 0;
    line-height: 1.3;
}

.article-wrapper h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    margin: 30px 0 12px 0;
}

.article-wrapper p {
    margin-bottom: 25px;
    color: #555;
}

.article-wrapper ul,
.article-wrapper ol {
    margin: 20px 0 25px 30px;
    color: #555;
}

.article-wrapper li {
    margin-bottom: 10px;
}

.article-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-wrapper blockquote {
    border-left: 4px solid #5B7DB1;
    padding: 20px 30px;
    margin: 30px 0;
    background: #F5F8FC;
    border-radius: 8px;
    font-style: italic;
    color: #555;
    font-size: 20px;
    line-height: 1.6;
}

.article-wrapper a {
    color: #5B7DB1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.article-wrapper a:hover {
    color: #7BA896;
    text-decoration: underline;
}

.article-wrapper code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 16px;
    color: #e83e8c;
}

.article-wrapper pre {
    background: #2C3E50;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-wrapper pre code {
    background: transparent;
    color: #fff;
    padding: 0;
}

/* Article Footer */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-tags .tag {
    background: #F5F8FC;
    color: #5B7DB1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.article-tags .tag:hover {
    background: #5B7DB1;
    color: white;
    border-color: #5B7DB1;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(91, 125, 177, 0.3);
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.nav-previous,
.nav-next {
    position: relative;
}

.nav-link {
    display: block;
    padding: 20px;
    background: #F5F8FC;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: white;
    border-color: #5B7DB1;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-direction {
    display: block;
    font-size: 12px;
    color: #5B7DB1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-size: 16px;
    color: #2C3E50;
    font-weight: 600;
    line-height: 1.4;
}

.nav-next {
    text-align: right;
}

.nav-next .nav-link {
    text-align: right;
}

.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-weight: 600;
    color: #2C3E50;
}

.page-links a {
    color: #5B7DB1;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-links a:hover {
    background: #5B7DB1;
    color: white;
}


/* ===========================
   5. COMMENTAIRES
   =========================== */

.comments-area {
    margin-top: 0;
    padding: 50px 20px;
    background: #f8f9fa;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    box-sizing: border-box;
}

h3#comments {
    margin-top: 30px;
}

.comments-area *,
.comment-respond a,
.commentlist a {
    text-decoration: none;
}

.comments-area a,
.comment-respond a,
.commentlist a {
    text-decoration: none;
    color: #5B7DB1;
}

.comments-area a:hover,
.comment-respond a:hover,
.commentlist a:hover {
    text-decoration: underline;
    color: #4a6a9a;
}

.comments-title {
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 35px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

/* Comment List */
.comment-list,
ol.comment-list,
ul.comment-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.comment-list li,
ol.comment-list li,
ul.comment-list li {
    list-style: none !important;
    counter-increment: none;
    list-style-type: none !important;
}

.comment-list li::before,
.comment-list li::after,
ol.comment-list li::before,
ol.comment-list li::after {
    content: none !important;
    display: none !important;
}

.comment {
    list-style: none !important;
    margin-bottom: 35px;
    padding: 0;
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author .fn {
    font-weight: 600;
    color: #5B7DB1;
    font-size: 16px;
    font-style: normal;
    margin: 0;
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f8;
    border-radius: 20px;
    border: 1px solid #e0e7ef;
    transition: all 0.2s;
    text-decoration: none;
}

.comment-author .fn:hover {
    background: #e8f0f5;
    border-color: #5B7DB1;
    color: #4a6a9a;
    text-decoration: none;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    margin-left: 54px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6c757d;
}

.comment-metadata a {
    color: #5B7DB1;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #4a6a9a;
    text-decoration: underline;
}

.comment footer,
.comment-meta,
.comment footer.comment-meta {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.comment-content {
    margin-left: 54px;
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
}

.comment-content p {
    margin: 0 0 12px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment .reply {
    margin-left: 54px;
    margin-top: 12px;
}

.comment .reply a {
    color: #5B7DB1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.comment .reply a:hover {
    color: #4a6a9a;
    text-decoration: underline;
}

/* Commentaires enfants */
.children {
    list-style: none;
    margin: 25px 0 0 0;
    padding: 0;
}

.children .comment {
    margin-left: 30px;
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Formulaire de commentaire */
.comment-respond {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
    background: white;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 25px 0;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    color: #495057;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: white;
}

.comment-form-comment textarea {
    min-height: 130px;
    resize: vertical;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #5B7DB1;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

.comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    font-weight: 400;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
}

.form-submit {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    background: #5B7DB1;
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Fira Sans', sans-serif;
}

.form-submit input[type="submit"]:hover {
    background: #4a6a9a;
}

.comments-closed {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}


/* ===========================
   6. ARCHIVES & LISTE
   =========================== */

.archive-main {
    background: #fff;
    padding: 0;
}

.archive-section {
    padding: 60px 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 36px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.archive-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.archive-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.archive-card:hover .archive-card-image img {
    transform: scale(1.05);
}

.archive-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.archive-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
}

.archive-category {
    background: #5B7DB1;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 12px;
}

.archive-date {
    color: #6c757d;
}

.archive-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.archive-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.archive-card-title a:hover {
    color: #5B7DB1;
}

.archive-card-excerpt {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.archive-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.archive-card-footer .read-more {
    color: #5B7DB1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.archive-card-footer .read-more:hover {
    color: #4a6a9a;
    text-decoration: underline;
}

.archive-author {
    font-size: 13px;
    color: #6c757d;
}

.archive-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #5B7DB1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #5B7DB1;
    color: white;
    border-color: #5B7DB1;
}

.archive-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: default;
}

.archive-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #6c757d;
}

.archive-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 16px;
}


/* ===========================
   7. FORMULAIRES
   =========================== */

/* Contact Form 7 */
.wpcf7 {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: #2C3E50;
    margin-bottom: 8px;
    font-size: 15px;
}

.wpcf7-form .required {
    color: #e74c3c;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="time"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    color: #495057;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: white;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form input[type="time"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #5B7DB1;
    box-shadow: 0 0 0 3px rgba(91, 125, 177, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.wpcf7-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235B7DB1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
    accent-color: #5B7DB1;
}

.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf7-form .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.wpcf7-form .wpcf7-list-item label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.wpcf7-form input[type="submit"],
.wpcf7-form input[type="button"] {
    background: linear-gradient(135deg, #5B7DB1 0%, #7BA896 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Fira Sans', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 125, 177, 0.3);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form input[type="button"]:active {
    transform: translateY(0);
}

/* Messages de validation */
.wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wpcf7-spam {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.wpcf7-validation-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #e74c3c !important;
}

.wpcf7-not-valid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.wpcf7-spinner {
    visibility: hidden;
    display: none;
    background-color: #5B7DB1;
    opacity: 0.75;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 100%;
    border-top-color: transparent;
    animation: wpcf7-spin 0.6s linear infinite;
    margin-left: 10px;
}

.wpcf7-form.submitting .wpcf7-spinner {
    visibility: visible;
    display: inline-block;
}

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

.wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpcf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.wpcf7-acceptance label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    cursor: pointer;
}



/* ===== PAGE 404 ===== */
.error-404-hero {
    background: linear-gradient(135deg, #5B7DB1 0%, #7BA896 100%);
    padding: 100px 20px 80px;
    color: white;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-404-number {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.error-404-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.error-404-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.error-404-main {
    background: #fff;
    padding: 0;
}

.error-404-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.error-404-actions {
    text-align: center;
    margin-bottom: 60px;
}

.error-404-actions h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
}

.error-404-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.error-404-search {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.error-404-search h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 20px 0;
    text-align: center;
}

.error-404-search form {
    display: flex;
    gap: 10px;
}

.error-404-search input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    color: #495057;
    transition: border-color 0.2s;
}

.error-404-search input[type="search"]:focus {
    outline: none;
    border-color: #5B7DB1;
    box-shadow: 0 0 0 3px rgba(91, 125, 177, 0.1);
}

.error-404-search input[type="submit"] {
    background: #5B7DB1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Fira Sans', sans-serif;
}

.error-404-search input[type="submit"]:hover {
    background: #4a6a9a;
}

.error-404-suggestions {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.error-404-suggestions h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 20px 0;
    text-align: center;
}

.error-404-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.error-404-links li {
    margin: 0;
}

.error-404-links a {
    display: block;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #5B7DB1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.error-404-links a:hover {
    background: #e8f0f5;
    border-color: #5B7DB1;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .error-404-hero {
        padding: 80px 20px 60px;
        min-height: 300px;
    }
    
    .error-404-number {
        font-size: 80px;
    }
    
    .error-404-title {
        font-size: 28px;
    }
    
    .error-404-description {
        font-size: 16px;
    }
    
    .error-404-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .error-404-buttons .btn {
        width: 100%;
    }
    
    .error-404-search form {
        flex-direction: column;
    }
    
    .error-404-search input[type="submit"] {
        width: 100%;
    }
}

/* ===========================
   8. COMPOSANTS
   =========================== */

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cta-buttons a {
    text-decoration: none;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    text-decoration:none;
}

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

.btn-primary {
    background: #7B9FD3;
    color: white;
}
.btn-primary:hover {
    background: #5B7DB1;
}

.btn-secondary {
    background: #8BA8C7;
    color: white;
}
.btn-secondary:hover {
    background: #7B9FD3;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Section générique */
.section {
    padding: 80px 20px;
    scroll-margin-top: 80px; /* Offset pour le header fixe */
}

.section-light {
    background: #E8EEF7;
}

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

h3.section-title {
    font-size: 32px;
    color: #2C3E50;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

h3.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5B7DB1, #7BA896);
    border-radius: 2px;
}


/* ===========================
   9. SECTIONS SPÉCIFIQUES
   =========================== */

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-card h4 {
    color: #5B7DB1;
    font-size: 16px;
    margin-bottom: 10px;
}

.news-card h4 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.news-card h4 a:hover {
    color: #4a6a9a;
}

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

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

.news-thumb img {
    width: 100%;
    height: 204px;
    object-fit: cover;
}

.read-more {
    color: #5B7DB1;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #4a6a9a;
    text-decoration: underline;
}

.center-btn {
    text-align: center;
}

/* Project Section */
/* Section d'introduction du projet */
.project-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
}

.project-intro .intro-text {
    display: flex;
    flex-direction: column;
}

.project-intro .intro-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.project-intro .photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-intro .photos img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.project-intro .photos img:hover {
    transform: scale(1.05);
}

/* Cartes */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(91, 125, 177, 0.08);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #5B7DB1 0%, #7BA896 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(91, 125, 177, 0.15);
    border-color: rgba(91, 125, 177, 0.2);
}

.card:hover::after {
    transform: scaleX(1);
}

.card .icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: #5B7DB1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card .icon svg {
    width: 100%;
    height: 100%;
}

.card .content {
    flex: 1;
}

.card .content h4 {
    color: #2C3E50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.card .content p {
    color: #4a5568;
    line-height: 1.75;
    font-size: 16px;
    margin-bottom: 16px;
}

.card .content p:last-child {
    margin-bottom: 0;
}

.card .content p strong {
    color: #2C3E50;
    font-weight: 600;
}

.card .content ul {
    color: #4a5568;
    line-height: 2;
    font-size: 16px;
    margin-left: 0;
    margin-top: 16px;
    list-style: none;
    padding: 0;
}

.card .content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.card .content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #5B7DB1;
    font-weight: 600;
    font-size: 18px;
}

.coloc-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.coloc-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #555;
}

.coloc-list li:before {
    content: "→ ";
    color: #7B9FD3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.values-section {
    background: #F5F8FC;
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
}

.values-section h4 {
    color: #2C3E50;
    font-size: 20px;
    margin-bottom: 15px;
}

.values-text p {
    color: #555;
    line-height: 1.8;
}

/* Photo Gallery Slider */
.photo-gallery-slider {
    margin-top: 40px;
    position: relative;
}

.gallery-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Réduire la taille de la galerie sur desktop uniquement */
@media (min-width: 769px) {
    .gallery-slider-container {
        max-width: 50%;
    }
    
    .gallery-item {
        max-width: 100%;
        margin: 0 auto;
    }
}

.gallery-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-slide.active {
    display: block;
    opacity: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

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


/* Gallery Navigation */
.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #2C3E50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.gallery-slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-slider-prev {
    left: 20px;
}

.gallery-slider-next {
    right: 20px;
}

/* Gallery Thumbnails */
.gallery-slider-thumbnails {
    position: relative;
    margin-top: 20px;
    padding: 10px 40px;
}

.gallery-thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #5B7DB1 #f0f0f0;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails-wrapper::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.gallery-thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: #5B7DB1;
    border-radius: 3px;
}

.gallery-thumbnails-wrapper::-webkit-scrollbar-thumb:hover {
    background: #4a6a9a;
}

.gallery-thumbnails-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #2C3E50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0;
}

.gallery-thumbnails-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gallery-thumbnails-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.gallery-thumbnails-prev {
    left: 0;
}

.gallery-thumbnails-next {
    right: 0;
}

.gallery-thumbnail {
    width: 80px;
    height: 60px;
    min-width: 80px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    background: none;
    position: relative;
    flex-shrink: 0;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-thumbnail:hover {
    border-color: #5B7DB1;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(91, 125, 177, 0.3);
}

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

.gallery-thumbnail.active {
    border-color: #5B7DB1;
    box-shadow: 0 0 0 2px rgba(91, 125, 177, 0.3), 0 4px 12px rgba(91, 125, 177, 0.4);
}

.gallery-thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(91, 125, 177, 0.2);
    pointer-events: none;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: calc(90% - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 140px;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(80vh - 180px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 50px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
}

.lightbox-thumbnails-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumbnails-wrapper::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lightbox-thumbnails-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lightbox-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    transition: all 0.3s;
    opacity: 0.6;
}

.lightbox-thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-thumbnail.active {
    opacity: 1;
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-thumbnails-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    line-height: 1;
}

.lightbox-thumbnails-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-thumbnails-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(381px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px) !important;
}

.team-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    transition: transform 0.5s;

}

.team-image:hover {
    transform: scale(1.05);
    transition: transform 0.5s;

}

.team-content {
    padding: 25px;
}

.team-content h4 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 18px;
}

.team-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Partners Section */
.partners-section {
    text-align: center;
    padding: 80px 20px 0px 20px;
    background: white;
    scroll-margin-top: 120px; /* Offset pour le header fixe */
}

.partners-section .section-title {
    margin-bottom: 50px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    justify-content: center;
    align-items: stretch;
    
}

.partner-logo {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2C3E50;
    font-size: 16px;
    font-weight: 600;
    width: 180px;
    flex: 0 0 180px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #5B7DB1;
    text-decoration: none;
    color: #2C3E50;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-logo span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    line-height: 1.4;
}

.partner-logo:only-child img {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 20px;
    max-width: 1200px;
    scroll-margin-top: 120px; /* Offset pour le header fixe */
    margin: 0 auto;
}

.cta-card {
    background: #F5F8FC;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.cta-card:hover {
    transform: translateY(-5px);
}

.cta-card h3 {
    color: #2C3E50;
    margin-bottom: 20px;
    font-size: 22px;
}

.cta-card p {
    color: #666;
    margin-bottom: 25px;
}

.cta-card .btn,
.cta-card a.btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

.cta-card a.btn:hover {
    text-decoration: none;
}


/* ===========================
   10. FOOTER
   =========================== */

footer {
    background: linear-gradient(90deg, #5B7DB1 0%, #7BA896 100%);
    color: white;
    padding: 50px 20px 25px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

/* Social Icons dans le Footer */
.footer-section .social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    flex-wrap: wrap;
}

.footer-section .social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    color: white !important;
}

.footer-section .social-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.footer-section .social-icon:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-section .social-icon[aria-label="Facebook"]:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
}

.footer-section .social-icon[aria-label="LinkedIn"]:hover {
    background: #0077B5 !important;
    border-color: #0077B5 !important;
}

.footer-section .social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
}

.footer-section .social-icon[aria-label="Email"]:hover {
    background: #EA4335 !important;
    border-color: #EA4335 !important;
}

.footer-section .social-icon[aria-label="Twitter"]:hover {
    background: #1DA1F2 !important;
    border-color: #1DA1F2 !important;
}

.footer-section .social-icon[aria-label="YouTube"]:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
}

.footer-section .social-icon:hover svg {
    transform: scale(1.1) !important;
}

/* Footer - Logo styling */
.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo .site-logo img,
.footer-logo .site-logo img.footer-logo-img,
.footer-logo .site-logo img.custom-logo {
    width: 120px;
    height: auto;
    display: block;
}

.footer-logo .site-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
    text-align: center;
}

.footer-logo .site-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    max-width: 240px;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .footer-logo .site-logo img,
    .footer-logo .site-logo img.footer-logo-img,
    .footer-logo .site-logo img.custom-logo {
        width: 100px;
    }

    .footer-content {
        gap: 20px;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}


/* ===========================
   11. UTILITAIRES
   =========================== */

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5B7DB1 0%, #7BA896 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #7BA896 0%, #5B7DB1 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

.scroll-to-top.scrolling {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(91, 125, 177, 0.6);
    }
}


/* ===========================
   12. MEDIA QUERIES
   =========================== */

/* Tablette et Desktop small (max-width: 968px) */
@media (max-width: 968px) {
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-intro .photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-intro .photos img {
        height: 240px;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/** Cacher les icones sociales max-width 1000px */
@media (max-width: 1111px) {
    .header .social-icons {
        display: none;
    }
}

/* Mobile et Tablette (max-width: 768px) */
@media (max-width: 860px) {
    /* Header & Navigation */
    .header {
        position: -webkit-sticky;
        position: sticky;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 15px 0;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    body.admin-bar .header {
        top: 0 !important;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Cacher les icônes sociales dans le header sur mobile */
    .header .social-icons {
        display: none;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #5B7DB1 0%, #7BA896 100%);
        padding: 20px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 999;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: background-color 0.3s;
        border-radius: 4px;
    }

    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }

    nav ul li a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hero Sections */
    .hero {
        flex-direction: column;
        margin: 40px auto;
    }

    .hero h2 {
        font-size: 28px;
    }

    .page-hero {
        padding: 80px 20px 60px;
        min-height: 300px;
        background-attachment: scroll;
    }
    
    .page-hero-simple {
        padding: 60px 20px 40px;
    }
    
    .page-title {
        font-size: 28px;
    }

    .article-hero {
        padding: 80px 20px 60px;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-excerpt {
        font-size: 18px;
    }

    /* Pages & Articles */
    .page-content {
        padding: 40px 20px;
    }
    
    .page-wrapper {
        font-size: 16px;
    }
    
    .page-wrapper h2 {
        font-size: 24px;
    }
    
    .page-wrapper h3 {
        font-size: 20px;
    }
    
    .page-wrapper h4 {
        font-size: 18px;
    }

    .article-content {
        padding: 40px 20px;
    }
    
    .article-wrapper {
        font-size: 16px;
    }
    
    .article-wrapper h2 {
        font-size: 26px;
    }
    
    .article-wrapper h3 {
        font-size: 22px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-link {
        text-align: left;
    }

    /* Commentaires */
    .comment-content,
    .comment-metadata,
    .comment .reply {
        margin-left: 0;
    }
    
    .children .comment {
        margin-left: 15px;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-respond {
        padding: 20px;
    }

    /* Archives */
    .archive-title {
        font-size: 28px;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .archive-card-content {
        padding: 20px;
    }
    
    .archive-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .archive-pagination .nav-links {
        flex-wrap: wrap;
    }
    
    .archive-pagination .page-numbers {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Formulaires */
    .wpcf7 {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .wpcf7-form {
        gap: 20px;
    }
    
    .wpcf7-form input[type="submit"],
    .wpcf7-form input[type="button"] {
        width: 100%;
        padding: 12px 24px;
    }

    /* Sections */
    h3.section-title {
        font-size: 26px;
    }

    .section {
        padding: 60px 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .project-intro {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .project-intro .photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .project-intro .photos img {
        height: 200px;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .cta-section {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .gallery-slider-prev {
        left: 10px;
    }
    
    .gallery-slider-next {
        right: 10px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 45px;
        min-width: 60px;
    }
    
    .gallery-slider-thumbnails {
        padding: 10px 35px;
    }
    
    .gallery-thumbnails-nav {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-thumbnails {
        width: 95%;
        bottom: 10px;
    }
    
    .lightbox-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .lightbox-thumbnails-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .partner-logo {
        min-height: 80px;
        padding: 15px;
        font-size: 14px;
    }
    
    .partner-logo img {
        max-height: 60px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
        align-items: center;
    }
    
    .footer-section h4 {
        margin-bottom: 15px;
    }
    
    .footer-section a:hover {
        transform: none;
    }
    
    .footer-section .social-icons {
        justify-content: center;
    }
    
    .footer-section .social-icon:hover {
        transform: translateY(-3px) scale(1.1) !important;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
    }

    /* Scroll to Top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}