:root {
    --primary: #0056a6;
    --primary-dark: #003d7a;
    --secondary: #ff6600;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.contact-info span a {
    color: white;
    text-decoration-line: none;
}

.contact-info span a:hover {
    color: var(--secondary);
}

.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--secondary);
}

.main-header {
    transition: all 0.3s ease;
    padding: 8px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== HEADER SHRINK (EFFET DALLAYMR) ===== */
header.shrink .main-header {
    padding: 8px 0;
}

header.shrink .logo-img {
    height: 65px;
    width: auto;
}

header.shrink .top-bar {
    padding: 4px 0;
    font-size: 0.75rem;
}

/* ===== LOGO TAGLINE (comme sur l'image) ===== */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-tagline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid var(--secondary);
    padding-left: 15px;
}

.logo-tagline .tagline-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.3;
    margin: 0;
}

/* Version réduite du tagline - juste plus petit */
header.shrink .logo-tagline .tagline-main
{
    font-size: 0.85rem;
}

/* Responsive pour le tagline */
@media (max-width: 992px) {
    .logo-tagline {
        display: none;
    }
}

/* ===== LOGO IMAGE ===== */
.logo-img {
    height: 100px;
    width: 120px;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Desktop moyen */
@media (max-width: 1200px) {
    .logo-img {
        height: 100px;
    }
}

/* Tablette */
@media (max-width: 992px) {
    .logo-img {
        height: 50px;
    }
}

/* Petit mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }
    header.shrink .logo-img {
        height: 40px;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-menu a:hover:after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--secondary);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/headerphoto.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 300px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.text-content {
    flex-grow: 1;
}

.short-text {
    margin-bottom: 15px;
}

.full-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
}

.full-text.active {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
}

.full-text ul {
    list-style: none;
    margin: 15px 0;
    padding-left: 20px;
}

.full-text li {
    padding: 5px 0;
    position: relative;
}

.full-text li:before {
    content: '✓';
    position: absolute;
    left: -20px;
    color: var(--secondary);
    font-weight: bold;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 15px;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.read-more-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

.all-services-btn {
    text-align: center;
    margin-top: 50px;
}

/* ===== TÉMOIGNAGES CLIENTS ===== */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf0 100%);
    position: relative;
}

.testimonials .section-title h2 {
    color: var(--primary);
}

.testimonials .section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.testimonial-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 86, 166, 0.15);
    border-color: var(--primary);
}

.testimonial-card:hover .quote-icon {
    color: var(--secondary);
    opacity: 0.5;
    transform: scale(1.1);
}

.testimonial-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.quote-icon {
    color: var(--primary);
    font-size: 32px;
    opacity: 0.2;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: block;
}

.testimonial-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    padding: 0 5px;
}

.testimonial-author {
    border-top: 2px solid rgba(0, 86, 166, 0.1);
    padding-top: 20px;
    margin-top: auto;
    display: flex;
    align-items: center;
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray);
    display: block;
    line-height: 1.4;
    font-weight: 400;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #4a5568;
}

.about-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 166, 0.4);
}

.back-to-top i {
    font-size: 1.4rem;
}

.back-to-top::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    opacity: 0;
    transition: all 0.3s ease;
}

.back-to-top:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list i {
    color: var(--secondary);
    margin-top: 5px;
    min-width: 18px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--gray);
}

.copyright a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .read-more-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .testimonials-grid {
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .contact-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .read-more-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonial-card h3 {
        font-size: 1.3rem;
        padding-left: 12px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-text {
        text-align: center;
        padding: 0 15px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-img {
        width: 100%;
        order: -1;
        max-height: 350px;
    }

    .about-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .social-links a {
        margin-left: 0;
        padding: 0 8px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card h3 {
        font-size: 1.2rem;
    }

    .author-info strong {
        font-size: 1rem;
    }

    .author-info span {
        font-size: 0.85rem;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .back-to-top i {
        font-size: 1rem;
    }
}
/* ============================================
   COOKIES BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 20px 0;
    z-index: 99999;
    border-top: 3px solid var(--secondary);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 280px;
}

.cookie-text i {
    font-size: 2.2rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
}

.cookie-btn i {
    font-size: 0.85rem;
}

.cookie-accept {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.cookie-accept:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 166, 0.4);
}

.cookie-refuse {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-refuse:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background-color: rgba(255, 102, 0, 0.1);
}

.cookie-more {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cookie-more i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.cookie-more:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-more:hover i {
    transform: translateX(3px);
}

/* ===== RESPONSIVE COOKIES ===== */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0 15px;
    }

    .cookie-text {
        flex-direction: column;
        text-align: center;
        min-width: unset;
        gap: 10px;
    }

    .cookie-text i {
        font-size: 1.8rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .cookie-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }

    .cookie-more {
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .cookie-btn {
        font-size: 0.75rem;
        padding: 7px 14px;
        min-width: 80px;
    }

    .cookie-text p {
        font-size: 0.8rem;
    }
}
/* ===== CORRECTION BOUTON DEVIS DANS LE MENU ===== */
.nav-menu a.btn {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a.btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 166, 0.3);
}

.nav-menu a.btn:after {
    display: none;
}

.nav-menu a.btn.active {
    background-color: var(--primary-dark);
    color: var(--white);
}

@media (max-width: 768px){
    .top-bar{
        display: none !important;
    }
}