/* ========================================================= */
/* RESET + VARIABLES */
/* ========================================================= */

/* Empêche tout dépassement horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.6;
    padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

[class^="ph-"],
[class*=" ph-"] {
    color: #2a3f5f !important;
}

/* ========================================================= */
/* TYPOGRAPHIE */
/* ========================================================= */

.section {
    padding-top: 30px;
    padding-bottom: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin: 10px 20px;
    line-height: 1.2;
}

.section-text,
.section-text-blanc {
    max-width: 900px;
    margin: 10px auto;
    padding: 0 20px;
    text-align: justify;
    text-align-last: left;
    color: #222;
    line-height: 1.6;
}

.title-left {
    text-align: left;
    max-width: 900px;
    font-size: 24px;
    margin: 20px auto;
}



/* Variante en blanc */
.section-text-blanc {
    color: #fff;
}

.section-cta {
    text-align: center;
    margin: 20px 0;
}


#contact-section {
    background: #f5f5f5; /* ton gris doux */
    padding: 60px 0; /* pour respirer */
}


/* ========================================================= */
/* HEADER */
/* ========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.logo-img {
    height: 70px;
}

.main-nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
}

.main-nav a.active {
    position: relative;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1500;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #2a3f5f;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    padding: 40px;
    transition: 0.3s;
    z-index: 2000;
    color: #2a3f5f;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.close-menu {
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-end;
}

/* ========================================================= */
/* HERO */
/* ========================================================= */

.hero {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: 0 !important;
    padding: 0 !important;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.55)
    );
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 55vh;
    object-fit: cover;
}

.hero-content {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
    backdrop-filter: blur(2px);
    width: 100%;
}

.hero-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


.hero-text {
    font-size: 22px;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}




/* ========================================================= */
/* BUTTONS */
/* ========================================================= */

.btn-dark {
    padding: 14px 30px;
    background: #2a3f5f;
    color: #fff;
    border-radius: 8px;
    border: 2px solid #2a3f5f;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
    margin: 0 auto;

}

.btn-dark:hover {
    background: transparent;
    color: #2a3f5f;
}


.btn-text {
    color: #2a3f5f;
    cursor: pointer;
   }
   
.btn-text:hover {
    color: #2a3f5f;
}

/* Bouton WhatsApp */
.whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
}

/* Centrage des boutons CTA */
.contact-btn-center {
    text-align: center;
}

/* ========================================================= */
/* ABOUT */
/* ========================================================= */

.about-content {
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
    background: #f8f8f8;
    padding: 60px 40px;
    border-radius: 12px;
}

.about-quote {
    font-size: 26px;
    font-style: italic;
    font-weight: 500;
    color: #222;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.4;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    margin: 40px 0 50px;
}

.stat i {
    font-size: 40px;
    color: #0d1b2a;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 46px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================================= */
/* EXPERTISE */
/* ========================================================= */

.expertise-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.expertise-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 340px;
}

/* ========================================================= */
/* PORTFOLIO */
/* ========================================================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-item img {
    transition: 0.3s;
    filter: grayscale(100%);
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: 0.3s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 30px 20px 10px;
}

.portfolio-filters button {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #2a3f5f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
    background: #2a3f5f;
    color: #fff;
    border-color: #2a3f5f;
}

/* ========================================================= */
/* BLOG */
/* ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 20px;
}

.blog-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.article-date {
    font-size: 14px;
    color: #777;
    margin: 10px 0 20px;
}

.blog-readmore {
    background: none;
    border: none;
    padding: 0;
    color: #2a3f5f;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
}

.blog-readmore:hover {
    opacity: 0.7;
}




/* ========================================================= */
/* CONTACT */
/* ========================================================= */

#contact {
    background: #f2f2f2;
    color: #111;
    text-align: center;
    padding: 80px 20px 100px;
}

/* Wrapper général */
.contact-wrapper {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Grid 2 colonnes */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* Colonne gauche */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Titre */
.contact-title {
    margin-bottom: 10px;
}

/* Infos */
.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-infos p {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-infos i {
    font-size: 22px;
    color: #2a3f5f;
}

/* CTA */
.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

/* Formulaire */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.contact-form button {
    display: block;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

textarea {
    height: 150px;
    resize: none;
}

/* Carte Google Maps */
.contact-map {
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* ========================================================= */
/* FOOTER */
/* ========================================================= */

.footer {
    background: #6b7691;
    color: #fff;
    padding: 60px 20px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: auto;
}

.footer-logo {
    margin-bottom: 45px;
    height: 70px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-text {
    max-width: 320px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links li {
    margin-bottom: 8px;
    margin-left: 0px;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-btn {
    margin-top: 15px;
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    opacity: 0.6;
    font-size: 14px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col i {
    color: #fff;
}




/* ========================================================= */
/* ARTICLE — AUTEUR */
/* ========================================================= */

.article-author {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #eee;
}

.article-author .contact-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #111;
}

.author-info {
    flex: 1;
}

.author-role {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #555;
    text-transform: uppercase;
}

.author-name {
    font-size: 24px;
    margin: 8px 0 15px;
    font-weight: 700;
}

/* ========================================================= */
/* GALERIE */
/* ========================================================= */

.gallery {
    width: 100%;
    display: grid !important;
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 900px) {
    .gallery {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}

/* ========================================================= */
/* VIDEO RESPONSIVE */
/* ========================================================= */

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ========================================================= */
/* ANIMATION FADE */
/* ========================================================= */

.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* ========================================================= */
/* RESPONSIVE MOBILE (< 600px) */
/* ========================================================= */

@media (max-width: 600px) {

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-img {
        height: 45vh;
    }

    body {
        padding-top: 70px;
    }

    .header {
        padding: 0 20px;
        height: 70px;
    }

    .logo-img {
        height: 55px;
    }

    .main-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .btn-dark {
        padding: 12px 24px;
        font-size: 14px;
    }

    .about-quote {
        font-size: 18px;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 26px;
    }

    .expertise-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .footer-bottom {
        text-align: left;
    }

    .article-author {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .article-author .contact-photo {
        width: 120px;
        height: 120px;
    }
    
      .gallery {
        grid-template-columns: 1fr;
    }

}
/* ========================================================= */
/* RESPONSIVE TABLETTE (600px → 1024px) */
/* ========================================================= */

@media (max-width: 1024px) and (min-width: 601px) {

    /* HERO */
    .hero-img {
        height: 45vh;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-text {
        font-size: 18px;
    }

    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr; /* 1 colonne sur tablette */
        gap: 50px;
    }

    .contact-left {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }

    .contact-form {
        max-width: 600px;
        margin: 0 auto;
        padding: 30px;
    }

    .contact-map {
        margin-top: 40px;
    }

    /* TITRES */
    .section-title {
        font-size: 30px;
    }

    /* ABOUT */
    .stats {
        gap: 40px;
    }

    /* EXPERTISE */
    .expertise-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* BLOG */
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* PORTFOLIO */
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* FOOTER */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
       .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}