/* ===== VARIABLES COULEURS (PALETTE ADR) ===== */
:root {
    --orange-primary: #D97706;
    --orange-hover: #B45309;
    --orange-light: #FEF3C7;
    --blue-dark: #1E293B;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 32px -12px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    
    /* === TAILLES DE POLICE UNIFORMISÉES === */
    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-md: 1.125rem;   /* 18px */
    --fs-lg: 1.25rem;    /* 20px */
    --fs-xl: 1.5rem;     /* 24px */
    --fs-2xl: 1.875rem;  /* 30px */
    --fs-3xl: 2.25rem;   /* 36px */
    --fs-4xl: 3rem;      /* 48px */
}

/* ===== BASE - UNIQUE POLICE POPPINS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: var(--fs-base);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand .brand-text {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--blue-dark);
}

.navbar-brand .brand-text span {
    color: var(--orange-primary);
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

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

.btn-devis {
    background: var(--orange-primary);
    color: white !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 2rem;
    margin-left: 0.5rem;
    transition: var(--transition);
    font-size: var(--fs-sm);
    font-weight: 600;
}

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

/* ===== BOUTONS GÉNÉRIQUES ===== */
.btn-orange {
    background: var(--orange-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-orange:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.25);
}

.btn-outline-orange {
    background: transparent;
    border: 2px solid var(--orange-primary);
    color: var(--orange-primary);
    padding: 0.7rem 1.8rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-outline-orange:hover {
    background: var(--orange-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
    padding: 3rem 0;
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2rem;
    font-size: var(--fs-base);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BADGES ===== */
.badge-coeur {
    background: var(--orange-primary);
    color: white;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 0.25rem 0.9rem;
    border-radius: 2rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--blue-dark);
    color: white;
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
}

.footer h5 {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: var(--orange-primary);
}

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

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: var(--fs-sm);
}

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

.contact-info li {
    font-size: var(--fs-sm);
}

.contact-info li i {
    width: 28px;
    color: var(--orange-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: var(--fs-xs);
    text-align: center;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    display: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    font-size: var(--fs-sm);
}

.cookie-content a {
    color: var(--orange-primary);
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-cookie-accept,
.btn-cookie-decline {
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-cookie-accept {
    background: var(--orange-primary);
    color: white;
}

.btn-cookie-accept:hover {
    background: var(--orange-hover);
}

.btn-cookie-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-cookie-decline:hover {
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--orange-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--orange-hover);
    transform: translateY(-3px);
}

/* ===== HERO CARROUSEL ===== */
.hero-carousel {
    margin-top: 70px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero-slide {
    height: 75vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-content h1 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--orange-primary);
}

.hero-content p {
    font-size: var(--fs-md);
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

.carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    background-size: 50%;
    transition: var(--transition);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--orange-primary);
    transform: scale(1.1);
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: var(--orange-primary);
    transform: scale(1.2);
}

/* ===== STATS ===== */
.stats-section {
    background: var(--orange-light);
    padding: 2rem 0;
}

.stat-box {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--orange-primary);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 0.3rem;
    font-size: var(--fs-sm);
}

/* ===== SERVICES CARDS ===== */
.service-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 1.5rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--orange-primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    font-size: var(--fs-sm);
}

.btn-link {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 0.7rem;
    color: var(--orange-hover);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card .fa-quote-left {
    font-size: 2rem;
    color: var(--orange-primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: var(--fs-sm);
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: var(--fs-base);
}

.testimonial-company {
    color: var(--orange-primary);
    font-size: var(--fs-xs);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-dark), #0f172a);
    padding: 2rem 0;
    text-align: center;
    color: white;
    border-radius: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.cta-banner h2 {
    font-size: var(--fs-2xl);
    margin-bottom: 0.8rem;
}

.cta-banner p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: var(--fs-base);
}

/* ===== PAGE À PROPOS ===== */
.about-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 76px;
}

.about-banner-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
}

.about-banner-overlay h1 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.histoire-section,
.valeurs-section,
.poles-section,
.vision-section,
.dirigeant-section {
    padding: 2.5rem 0;
}

.histoire-section .lead {
    font-size: var(--fs-md);
}

.valeurs-section .bg-white {
    transition: var(--transition);
}

.valeurs-section .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.poles-section .card {
    transition: var(--transition);
}

.poles-section .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dirigeant-section .section-title {
    text-align: center;
}

/* ===== CONTACT & DEVIS ===== */
.contact-form-wrapper,
.devis-form-wrapper {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
    font-size: var(--fs-sm);
}

.form-group label i {
    color: var(--orange-primary);
    margin-right: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    transition: var(--transition);
    font-size: var(--fs-sm);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--orange-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--orange-primary);
}

.contact-details h4 {
    font-size: var(--fs-base);
    margin-bottom: 0.2rem;
}

.contact-details p {
    color: var(--text-gray);
    margin-bottom: 0;
    font-size: var(--fs-sm);
}

.map-container {
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: var(--fs-3xl); }
    .section-title { font-size: var(--fs-2xl); }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: var(--fs-2xl); }
    .hero-slide { height: 70vh; }
    .section-title { font-size: var(--fs-xl); }
    .stats-section .row { gap: 1.5rem; }
}

@media (max-width: 768px) {
    section { padding: 2rem 0; }
    .hero-carousel { margin-top: 60px; }
    .hero-content h1 { font-size: var(--fs-xl); }
    .hero-content p { font-size: var(--fs-sm); }
    .hero-slide { height: 55vh; min-height: 400px; }
    .navbar-brand .brand-text { font-size: var(--fs-md); }
    .btn-devis { padding: 0.3rem 1rem !important; font-size: var(--fs-xs); }
    .section-title { font-size: var(--fs-lg); }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { justify-content: center; }
    .about-banner { height: 220px; }
    .about-banner-overlay h1 { font-size: var(--fs-xl); }
    .cta-banner { margin: 2rem 1rem; padding: 2rem 1rem; }
    .cta-banner h2 { font-size: var(--fs-lg); }
    .stat-number { font-size: var(--fs-xl); }
}

@media (max-width: 576px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .hero-content h1 { font-size: var(--fs-lg); }
    .hero-content p { font-size: var(--fs-xs); }
    .hero-slide { height: 50vh; min-height: 350px; }
    .hero-content .btn-orange,
    .hero-content .btn-outline-orange {
        display: block;
        width: 100%;
        margin: 0.3rem 0 !important;
        text-align: center;
    }
    .hero-content .ms-3 { margin-left: 0 !important; }
    .section-title { font-size: var(--fs-md); }
    .stat-number { font-size: var(--fs-lg); }
    .service-card h3 { font-size: var(--fs-base); }
    .footer h5 { font-size: var(--fs-sm); }
    .footer ul li a, .contact-info li { font-size: var(--fs-xs); }
    .cta-banner h2 { font-size: var(--fs-base); }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: var(--fs-md); }
    .hero-content p { font-size: 0.7rem; }
    .btn-orange, .btn-outline-orange { padding: 0.4rem 0.8rem; font-size: var(--fs-xs); }
    .section-title { font-size: var(--fs-md); }
    .service-card { padding: 1rem; }
    .testimonial-card { padding: 1rem; }
    .stat-number { font-size: var(--fs-md); }
}

/* ===== FORMULAIRES & TABLEAUX ===== */
@media (max-width: 768px) {
    .form-row { flex-direction: column; }
    .form-row .col { margin-bottom: 0.8rem; }
    table { font-size: var(--fs-xs); }
    table th, table td { padding: 0.5rem; }
}

/* ===== IMPRESSION ===== */
@media print {
    header, footer, .cta-banner, .back-to-top, .cookie-banner { display: none; }
    body { background: white; color: black; }
    .hero-slide { height: auto; background: #f0f0f0; }
    .hero-slide::before { display: none; }
    .hero-content { color: black; }
}

/* ===== SERVICES CARDS AVEC IMAGES (unifié) ===== */
.service-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-card .service-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .service-icon {
    font-size: 2.5rem;
    color: var(--orange-primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--blue-dark);
}

.service-card p {
    color: var(--text-gray);
    font-size: var(--fs-sm);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.service-card .btn-orange {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--orange-primary);
    color: var(--orange-primary);
    padding: 0.6rem 1rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: 2rem;
    transition: var(--transition);
    width: 100%;
    text-decoration: none;
}

.service-card .btn-orange:hover {
    background: var(--orange-primary);
    color: white;
    transform: translateY(-2px);
}

.service-card .btn-orange i {
    transition: transform 0.3s ease;
}

.service-card .btn-orange:hover i {
    transform: translateX(4px);
}
/* ===== SUPPRESSION DES SOULIGNEMENTS DES LIENS ===== */

/* Supprime le soulignement de tous les liens */
a, 
a:hover, 
a:focus, 
a:active,
.navbar-nav .nav-link,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active,
.footer ul li a,
.footer ul li a:hover,
.footer ul li a:focus,
.footer ul li a:active,
.back-to-top,
.back-to-top:hover,
.back-to-top:focus,
.back-to-top:active,
.contact-info-item a,
.contact-info-item a:hover,
.contact-info-item a:focus,
.contact-info-item a:active,
.breadcrumb a,
.breadcrumb a:hover,
.breadcrumb a:focus,
.breadcrumb a:active,
.service-card .btn-orange,
.service-card .btn-orange:hover,
.service-card .btn-orange:focus,
.service-card .btn-orange:active {
    text-decoration: none !important;
}

/* Pour être sûr que tous les liens dans le header et footer n'ont pas de soulignement */
header a,
header a:hover,
header a:focus,
footer a,
footer a:hover,
footer a:focus,
footer a:active {
    text-decoration: none !important;
}

/* Supprime le soulignement des liens dans les cartes et sections */
.card a,
.card a:hover,
.section a,
.section a:hover,
.cta-banner a,
.cta-banner a:hover {
    text-decoration: none !important;
}

/* Pour les boutons qui pourraient être des liens */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn-orange,
.btn-orange:hover,
.btn-orange:focus,
.btn-orange:active,
.btn-outline-orange,
.btn-outline-orange:hover,
.btn-outline-orange:focus,
.btn-outline-orange:active {
    text-decoration: none !important;
}

/* Supprime également le underline des liens dans les listes */
ul li a,
ul li a:hover,
ol li a,
ol li a:hover {
    text-decoration: none !important;
}

/* Pour les liens de type "en savoir plus" */
.read-more,
.read-more:hover,
.btn-link,
.btn-link:hover {
    text-decoration: none !important;
}

/* Optionnel: garder un effet visuel au survol sans soulignement */
a:hover,
.navbar-nav .nav-link:hover,
.footer ul li a:hover,
.btn-link:hover {
    text-decoration: none !important;
    opacity: 0.9;
    transition: var(--transition);
}

/* Pour les liens qui doivent garder un soulignement (exceptions) */
.no-underline,
.no-underline:hover {
    text-decoration: none !important;
}
/* Style pour le captcha mathématique */
.form-control-plaintext {
    font-weight: bold;
    font-size: var(--fs-md);
    background: var(--orange-light);
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    text-align: center;
    display: inline-block;
    width: 100%;
}

/* Style pour reCAPTCHA */
.g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}