/* =========================

   VARIABLES & ROOT

========================= */

:root {

    --primary-color: #FFB603;

    --secondary-color: #79C5DD;

    --light-orange: rgba(255, 107, 0, 0.1);

    --light-blue: rgba(0, 102, 204, 0.1);

}



/* =========================

   BASE / RESET

========================= */

/* Ajoute ici tes resets éventuels */



/* =========================

   LAYOUT & CONTAINERS

========================= */

.container {

    max-width: 1140px;

    margin-left: auto;

    margin-right: auto;

    padding: 0 15px;

    width: 100%;

}



.alignwide {

    max-width: 1300px;

    margin-left: auto;

    margin-right: auto;

    width: 100%;

    position: relative;

}



.alignfull {

    width: 100vw;

    margin-left: calc(50% - 50vw);

    margin-right: calc(50% - 50vw);

    left: 0;

    right: 0;

    position: relative;

}



.page-body {

    overflow-x: hidden;

    width: 100%;

    position: relative;

}



.wp-block {

    margin-bottom: 2rem;

}



.wp-block-media-text {

    margin: 2rem 0;

    grid-template-columns: 50% 1fr;

    gap: 2rem;

}



/* =========================

   HERO BANNER

========================= */

.hero-banner {

    min-height: 80vh;

    position: relative;

    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),

                url('../images/hero-bg-2.jpg');

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    display: flex;

    align-items: center;

    overflow: hidden;

}



.hero-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(

        135deg,

        rgba(0, 0, 0, 0.35) 0%,

        rgba(0, 0, 0, 0.08) 100%

    );

    z-index: 1;

}



.hero-content {

    position: relative;

    z-index: 2;

    color: white;

    text-align: center;

    max-width: 800px;

    margin: 0 auto;

    padding: 2rem;

}



.hero-title {

    position: relative;

    z-index: 3;

    font-size: 3.5rem;

    font-weight: 700;

    margin-bottom: 1.5rem;

    opacity: 0;

    transform: translateY(-30px);

    animation: slideIn 0.8s ease forwards;

}



.hero-description {

    position: relative;

    z-index: 3;

    font-size: 1.25rem;

    margin-bottom: 2rem;

    line-height: 1.6;

    opacity: 0;

    will-change: transform, opacity;

    animation: heroDescription 0.8s ease 0.3s forwards;

}



/* =========================

   SECTIONS

========================= */

/* Services */

.services-section {

    padding: 5rem 0;

}



.services-section .row {

    display: flex;

    flex-wrap: wrap;

    align-items: stretch;

    justify-content: center;

    gap: 1rem;

}



.service-card {

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    text-align: center;

    padding: 2rem;

    border-radius: 10px;

    transition: transform 0.3s ease;

    background: white;

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);

    margin-bottom: 1rem;

}



.service-card:hover {

    transform: translateY(-10px);

}



.service-card i {

    font-size: 3rem;

    margin-bottom: 1rem;

    color: var(--primary-color);

}



.service-card:hover,

.service-card:hover h3,

.service-card:hover p {

    color: var(--secondary-color);

}



.services-section .row > div {

    flex: 0 0 32%;

    max-width: 32%;

    margin-bottom: 1rem;

}



@media (max-width: 992px) {

    .services-section .row > div {

        flex: 0 0 48%;

        max-width: 48%;

    }

}



@media (max-width: 600px) {

    .services-section .row > div {

        flex: 0 0 100%;

        max-width: 100%;

    }

}



/* About */

.about-section {

    padding: 60px 0 50px 0;

    background: #f7fafc;

    border-radius: 16px;

    margin: 40px 0;

    box-shadow: 0 4px 24px rgba(0,0,0,0.04);

}



.about-section .section-title {

    font-size: 2rem;

    font-weight: 700;

    margin-bottom: 1.5rem;

    letter-spacing: 1px;

}



.about-list {

    list-style: none;

    padding: 0;

    margin: 0 0 1.5rem 0;

}



.about-list li {

    display: flex;

    align-items: center;

    margin-bottom: 0.8rem;

    font-size: 1.08rem;

    color: #333;

}



.about-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 28px;

    height: 28px;

    background: #fffbe6;

    color: #FFB603;

    border-radius: 50%;

    margin-right: 0.7rem;

    font-size: 1.2rem;

    box-shadow: 0 2px 8px rgba(255,182,3,0.06);

}



.about-section .lead {

    font-size: 1.15rem;

    color: #222;

}



/* Advantages */

.advantages-section {

    background: #f7fafc;

    padding: 60px 0 50px 0;

    border-radius: 16px;

    margin: 40px 0;

    box-shadow: 0 4px 24px rgba(0,0,0,0.04);

}



.advantages-section .section-title {

    font-size: 2.2rem;

    font-weight: 700;

    margin-bottom: 2.5rem;

    letter-spacing: 1px;

}



.advantages-list {

    list-style: none;

    padding: 0;

    margin: 0 0 0 10px;

}



.advantages-list li {

    background: #fff;

    border-left: 4px solid #FFB603;

    margin-bottom: 1.2rem;

    padding: 1rem 1.2rem;

    border-radius: 8px;

    font-size: 1.08rem;

    box-shadow: 0 2px 8px rgba(255,182,3,0.06);

    transition: box-shadow 0.2s;

}



.advantages-list li:hover {

    box-shadow: 0 4px 16px rgba(255,182,3,0.13);

}



.advantages-text p {

    font-size: 1.08rem;

    margin-bottom: 1.1rem;

    color: #333;

}



/* Contact */

.page-template-page-contact .site-main {

    padding: 4rem 0;

    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    min-height: calc(100vh - 100px);

}



.page-template-page-contact .container {

    max-width: 1200px;

    width: 100%;

    margin: 0 auto;

    padding: 0 20px;

}



.page-template-page-contact h1 {

    text-align: center;

    color: #2c3e50;

    margin-bottom: 3rem;

    font-size: 2.8rem;

    position: relative;

    padding-bottom: 1rem;

    opacity: 0;

    transform: translateY(20px);

    animation: fadeInUp 0.8s ease forwards;

}



.page-template-page-contact h1::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 50%;

    transform: translateX(-50%);

    width: 0;

    height: 3px;

    background: var(--primary-color);

    animation: lineGrow 1s ease forwards 0.8s;

}



.page-template-page-contact h2 {

    text-align: center;

    color: #2c3e50;

    margin-bottom: 2.5rem;

    font-size: 2.5rem;

    animation: fadeInUp 0.6s ease forwards;

}



.contact-wrapper {

    opacity: 0;

    transform: translateY(20px);

    animation: fadeInUp 0.8s ease forwards 0.3s;

    background: white;

    padding: 2.5rem;

    border-radius: 15px;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease;

    display: flex;

    gap: 3rem;

    margin: 2rem 0;

}



.contact-map {

    position: relative;

    overflow: hidden;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    flex: 1;

    display: flex;

    flex-direction: column;

}



.map-container {

    opacity: 0;

    transform: translateX(-20px);

    animation: slideInLeft 0.8s ease forwards 0.5s;

    width: 100%;

    border-radius: 10px;

    overflow: hidden;

    margin-bottom: 1.5rem;

}



.map-container iframe {

    width: 100%;

    height: 450px;

    border: none;

}



.map-container small {

    display: block;

    margin-top: 10px;

    text-align: right;

}



.map-container small a {

    color: var(--primary-color);

    text-decoration: none;

    font-size: 0.9rem;

}



.map-container small a:hover {

    text-decoration: underline;

}



.address-info {

    background: var(--light-orange);

    padding: 1.5rem;

    border-radius: 10px;

    margin-top: 1.5rem;

    border-left: 4px solid var(--primary-color);

    opacity: 0;

    transform: translateY(20px);

    animation: fadeInUp 0.8s ease forwards 0.7s;

}



.address-info p {

    margin: 0;

    display: flex;

    align-items: center;

    gap: 0.75rem;

    color: #333;

    font-size: 1.1rem;

}



.address-info i {

    color: var(--primary-color);

    font-size: 1.25rem;

}



.contact-form {

    opacity: 0;

    transform: translateX(20px);

    animation: slideInRight 0.8s ease forwards 0.5s;

    flex: 1;

}



.contact-form form {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

}



.contact-form input:not([type="hidden"]),

.contact-form textarea {

    width: 100%;

    padding: 1rem;

    border: 2px solid #e0e0e0;

    border-radius: 8px;

    transition: all 0.3s ease;

    font-size: 1rem;

    background: #f8f9fa;

}



.contact-form input:focus,

.contact-form textarea:focus {

    border-color: var(--primary-color);

    box-shadow: 0 0 15px rgba(255, 182, 3, 0.1);

    background: white;

    outline: none;

}



.contact-form textarea {

    min-height: 150px;

    resize: vertical;

}



.success-message {

    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    color: white;

    padding: 1.5rem;

    border-radius: 10px;

    margin: 2rem 0;

    display: flex;

    align-items: center;

    gap: 1rem;

    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);

    transform: translateY(-20px);

    animation: slideInFadeUp 0.5s ease forwards;

}



.success-message i {

    font-size: 2rem;

    color: white;

}



.success-message p {

    margin: 0;

    font-size: 1.1rem;

    font-weight: 500;

}



/* Footer */

.site-footer a {

    text-decoration: none;

    color: rgba(255, 255, 255, 0.85);

}



.site-footer a:hover {

    color: #ffffff;

}



.footer-slogan {

    font-style: italic;

    opacity: 0.9;

}



.site-footer ul li {

    margin-bottom: 0.5rem;

}



.site-footer i {

    color: var(--secondary-color);

}



/* =========================

   ARCHIVES

========================= */

.archive-container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 2rem;

}



.archive-header {

    text-align: center;

    margin-bottom: 3rem;

}



.archive-title {

    font-size: 2.5rem;

    color: #333;

    position: relative;

    display: inline-block;

}



.archive-title:after {

    content: '';

    position: absolute;

    bottom: -10px;

    left: 50%;

    transform: translateX(-50%);

    width: 50px;

    height: 3px;

    background: var(--primary-color);

}



.archive-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 2rem;

    margin-bottom: 3rem;

}



.archive-card {

    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

    transition: transform 0.3s ease;

}



.archive-card:hover {

    transform: translateY(-5px);

}



.card-link {

    text-decoration: none;

    color: inherit;

}



.card-image {

    height: 200px;

    overflow: hidden;

}



.card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.card-content {

    padding: 1.5rem;

}



.card-title {

    font-size: 1.25rem;

    margin-bottom: 1rem;

    color: #333;

}



.card-meta {

    font-size: 0.9rem;

    color: #666;

    margin-bottom: 1rem;

    display: flex;

    gap: 1rem;

}



.card-excerpt {

    color: #666;

    font-size: 0.95rem;

    line-height: 1.6;

}



.pagination {

    text-align: center;

    margin-top: 3rem;

}



.pagination a,

.pagination span {

    padding: 0.5rem 1rem;

    margin: 0 0.25rem;

    border-radius: 5px;

    background: #f8f9fa;

    color: #333;

    text-decoration: none;

}



.pagination a:hover {

    background: #007bff;

    color: #fff;

}



.fade-in {

    animation: fadeIn 0.8s ease-in;

}



/* =========================

   SECTION TITLES

========================= */

.section-title {

    margin-bottom: 3rem;

    position: relative;

    padding-bottom: 1rem;

}



.section-title::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 0;

    width: 50px;

    height: 3px;

    background: var(--primary-color);

}



/* =========================

   BUTTONS (HARMONISÉS)

========================= */

.btn,

.btn-main,

.btn-primary {

    display: inline-block;

    padding: 1rem 2.5rem;

    font-size: 1.1rem;

    border-radius: 50px;

    font-weight: 600;

    border: 2px solid var(--primary-color);

    background: var(--primary-color);

    color: #fff;

    cursor: pointer;

    transition: all 0.3s cubic-bezier(.4,0,.2,1);

    box-shadow: 0 4px 15px rgba(255, 182, 3, 0.15);

    position: relative;

    overflow: hidden;

    text-align: center;

    text-decoration: none;

}



.btn:hover,

.btn-main:hover,

.btn-primary:hover {

    background: var(--secondary-color);

    border-color: var(--secondary-color);

    color: #fff;

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(121, 197, 221, 0.18);

}



/* Variante OUTLINE */

.btn-outline,

.btn-outline-primary {

    background: transparent;

    color: var(--primary-color);

    border: 2px solid var(--primary-color);

    box-shadow: none;

}



.btn-outline:hover,

.btn-outline-primary:hover {

    background: var(--primary-color);

    color: #fff;

    border-color: var(--primary-color);

    box-shadow: 0 4px 15px rgba(255, 182, 3, 0.15);

    transform: translateY(-2px);

}



/* Désactive les styles hérités pour les liens boutons */

a.btn, a.btn-main, a.btn-primary, a.btn-outline, a.btn-outline-primary {

    text-decoration: none;

    color: inherit;

}



/* =========================

   PAGE TITLES

========================= */

.page-title {

    font-size: 2.5rem;

    color: #333;

    position: relative;

    margin: 2rem 0 3rem;

    padding-bottom: 1rem;

    opacity: 0;

    transform: translateY(20px);

    animation: fadeInUp 0.8s ease forwards;

}



.page-title::after {

    content: '';

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 3px;

    background: var(--primary-color);

    animation: lineGrow 1s ease forwards 0.8s;

}



/* =========================

   FORM

========================= */

form {

    display: flex;

    flex-direction: column;

    gap: 1rem;

    max-width: 600px;

}



form input,

form textarea {

    padding: 0.8rem;

    border: 1px solid #ccc;

    border-radius: 4px;

    font-family: "Roboto", sans-serif;

    width: 100%;

}



.msg-success {

    color: green;

    margin-top: 1rem;

}



/* =========================

   ANIMATIONS

========================= */

@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateY(-30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes fadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}



@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes heroDescription {

    0% {

        opacity: 0;

        transform: translateY(20px);

    }

    100% {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes slideInFadeUp {

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes slideInLeft {

    from {

        opacity: 0;

        transform: translateX(-20px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}



@keyframes slideInRight {

    from {

        opacity: 0;

        transform: translateX(20px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}



@keyframes lineGrow {

    to {

        width: 100px;

    }

}



/* =========================

   RESPONSIVE (MEDIA QUERIES)

========================= */

@media (max-width: 992px) {

    .contact-wrapper {

        flex-direction: column;

        padding: 1.5rem;

    }



    .map-container iframe {

        height: 350px;

    }



    .page-template-page-contact .container {

        padding: 0 15px;

    }

    

    .page-template-page-contact h1 {

        font-size: 2.2rem;

    }

    

    .page-template-page-contact h2 {

        font-size: 2rem;

    }



    .contact-map,

    .contact-form {

        width: 100%;

    }



    .about-section .row {

        flex-direction: column;

    }



    .about-section .col-md-6 {

        margin-bottom: 2rem;

    }



    .advantages-section .row {

        flex-direction: column;

    }



    .advantages-list,

    .advantages-text {

        margin-bottom: 2rem;

    }

}



@media (max-width: 768px) {

    .hero-title {

        font-size: 2.5rem;

    }

    

    .hero-description {

        font-size: 1.1rem;

    }

    

    .hero-content {

        padding: 1rem;

    }



    .page-template-page-contact .container {

        padding: 0 15px;

    }

    

    .page-template-page-contact form {

        padding: 2rem;

    }

    

    .page-template-page-contact h1 {

        font-size: 2.2rem;

    }

    

    .page-template-page-contact h2 {

        font-size: 2rem;

    }



    .archive-grid {

        grid-template-columns: 1fr;

    }

    

    .archive-title {

        font-size: 2rem;

    }



    .page-title {

        font-size: 2rem;

        margin: 1.5rem 0 2rem;

    }

}



@media (max-width: 576px) {

    .contact-wrapper {

        padding: 1rem;

    }



    .map-container iframe {

        height: 300px;

    }

    

    .page-template-page-contact h1 {

        font-size: 1.8rem;

    }

    

    .address-info {

        padding: 1rem;

    }

}



@media (max-width: 480px) {

    .hero-title {

        font-size: 2rem;

    }

    

    .hero-banner {

        min-height: 70vh;

    }

}

/* Archive Filters */
.archive-filters {
    margin: 2rem 0;
    padding: 1rem;
}

.filter-categories {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-categories select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    min-width: 200px;
}

.filter-categories select:hover {
    border-color: var(--secondary-color);
}

.filter-categories select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(121, 197, 221, 0.25);
}

/* Category Description */
.category-description {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Archive Cards Improvements */
.archive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 182, 3, 0.15);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.card-meta span {
    display: flex;
    align-items: center;
}

.card-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.card-meta .categories {
    background-color: var(--light-orange);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Pagination Improvements */
.navigation.pagination {
    margin: 3rem 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links .page-numbers.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.nav-links .page-numbers:hover:not(.current) {
    background-color: var(--light-orange);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--light-blue);
    border-radius: 8px;
    margin: 2rem 0;
}

.no-posts p:first-child {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.no-posts p:last-child {
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .archive-filters {
        margin: 1rem 0;
        padding: 0.8rem;
    }

    .filter-categories select {
        width: 100%;
        max-width: none;
    }

    .card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Articles Similaires */
.related-posts {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-blue);
    border-radius: 10px;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 182, 3, 0.15);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-card h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
}

/* Responsive pour Articles Similaires */
@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-posts {
        padding: 1.5rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-post-card img {
        height: 200px;
    }
}