@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* Variables CSS*/
:root {
    --primary-color: #e70017fa;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --transition: all 0.3s ease;
    --overlay-dark: rgba(0,0,0,0.5);
    --overlay-darker: rgba(0,0,0,0.9);
}

/* Styles de base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
}

/* Espacement des sections */
section {
    scroll-margin-top: 80px;
}

.bi1 {
    color: var(--primary-color);
}

.btn1 {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn1:hover {
    background-color: transparent;
    color: white;
    background-color: #9b0000;
    transform: translateY(-3px);
}

/* Bouton retour en haut */
.btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 12px 16px;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.btn-top:hover {
    background-color: transparent;
    color: var(--primary-color);
    backdrop-filter: blur(6px); /* optionnel : effet verre dépoli */
    transform: translateY(-3px);
}

/* Styles des sections pleine hauteur */
.pi,
.pi2 {
    min-height: 65vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.pi {
    background-image: linear-gradient(var(--overlay-dark), var(--overlay-darker)), url('../image/hero1.jpg');
}

.pi2 {
    background-image: linear-gradient(var(--overlay-dark), var(--overlay-darker)), url('../image/hero9.jpg');
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    transition: var(--transition);
}

.deco {
    color: var(--primary-color);
}

/* Navigation hover effects */
.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    filter: brightness(120%);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Section hero */
.hero-wrapper {
    background-image: linear-gradient(var(--overlay-dark), var(--overlay-darker)), url('../image/hero2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 70vh;
}

/* Espacements galerie */
.gal {
    padding-top: 85px;
}

.gal1 {
    padding-top: 40px;
}

/* Structure hero */
.hero-section,
.hero-section2 {
    position: relative;
    padding: 80px 0 80px;
    padding-top: 200px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Contenu hero */
.hero-content {
    padding: 50px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* CTA styles */
.hero-cta {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 0;
    position: relative;
    transition: var(--transition);
}

.hero-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(1);
    transition: var(--transition);
}

.hero-cta:hover {
    color: white;
    transform: translateY(-3px);
}

.hero-cta:hover::after {
    transform: scaleX(1.2);
}

/* Boutons hero */
.hero-section .btn {
    transition: var(--transition);
    border-width: 2px;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Cartes de services */
.service-card {
    transition: var(--transition);
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon i {
    font-size: 3rem;
    display: block;
    color: var(--primary-color);
}

.service-card .badge {
    font-size: 0.75rem;
    padding: 0.5em 0.8em;
}

/* Formulaires */
.contact-info .bi {
    font-size: 1.2rem;
    width: 24px;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 25, 0.25);
}

.text-decoration-none:hover {
    color: var(--primary-color);
}

/* galerie */
.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-content {
    text-align: center;
    padding: 20px;
}

.gallery-content h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Filtres galerie */
.btn-group .btn {
    transition: var(--transition);
    border-color: var(--primary-color);
}

.btn-group .btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta {
    background: var(--primary-color);
    text-align: center;
}

/* cartes tarifs */
.pricing-card {
    transition: var(--transition);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-featured {
    border-color: var(--primary-color);
    position: relative;
}

.confort {
    background-color: var(--primary-color);
}

.btn2 {
    display: inline-block;
    font-weight: 200;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--primary-color); /* Couleur primary de Bootstrap */
    padding: 0.58rem 0.90rem;
    font-size: 1.2rem;
    line-height: 1.5;
    border-radius: 0.380rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
                border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn2:hover {
    background-color: transparent;
    color: white;
    background-color: #b80303;
    transform: translateY(-3px);
}

.btn-inverse {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);            /* rouge bootstrap danger */
    background-color: #fff;    /* fond blanc */
    border: 1px solid var(--primary-color); /* contour rouge */
    padding: 0.58rem 0.90rem;
    font-size: 1.2rem;
    line-height: 1.5;
    border-radius: 0.380rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
                border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn-inverse:hover {
  background-color: transparent;
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.pricing-featured .ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--warning-color);
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 10;
}

.price-display {
    margin: 15px 0;
}

.price-currency {
    font-size: 0.9rem;
    opacity: 0.8;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--dark-bg);
}

.price-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pricing-features li {
    padding: 5px 0;
}

/* options additionnelles */
.option-card {
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.option-icon i {
    font-size: 2.5rem;
}

/* footer */
footer {
    margin-top: auto;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: scale(1.2);
}

/* responsive */

/* Mobile */
@media (max-width: 768px) {

    .top-bar {
        display: none;
    }

    .navbar {
        backdrop-filter: blur(20px);
        background-color: rgba(0, 0, 0, 0.5);
        ;
    }

    .navbar-divider {
        display: none;
    }

    .hero-section {
        background-attachment: scroll; /* Fix sur mobile */
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .gallery-card img {
        height: 200px;
    }
    
    .service-icon i {
        font-size: 2.5rem;
    }
    
    .option-icon i {
        font-size: 2rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .gallery-card img {
        height: 220px;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation sur les éléments visibles */
.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Boutons avec effet ripple */
.btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Cartes avec effet brillant au hover */
.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* utilitaires */

/* Classes d'espacement personnalisées */
.py-7 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.my-7 {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* Couleurs de texte personnalisées */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* Bordures arrondies */
.rounded-xl {
    border-radius: 1rem;
}

/* accessibilité */

/* Focus visible pour l'accessibilité */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.lien:hover {
    text-decoration: underline;
}

/* Contraste amélioré pour les liens */
a {
    color: #0000008e;
}

a:hover {
    color: #0a58ca;
}

/* performance */

/* Optimisation des transitions */
.card,
.btn,
.gallery-card,
.service-card,
.pricing-card,
.option-card {
    will-change: transform;
}

/* Preload des fonts importantes */
/* @font-face {
    font-family: 'Segoe UI';
    font-display: swap;
} */