/* -- DESIGN SYSTEM CLICCHANTIER (ORANGE BTP) -- */
:root {
    --primary-orange: #ea580c;
    --anthracite: #333d47;
    --soft-gray: #f8f9fa;
    --bs-primary: #ea580c;
    --bs-primary-rgb: 234, 88, 12;
    --bs-link-color: #ea580c;
    --bs-link-hover-color: #c2410c;
    --border-soft: #e2e8f0;
}

/* Surcharges Bootstrap pour les boutons et composants Bootstrap 5 */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #c2410c;
    --bs-btn-hover-border-color: #c2410c;
    --bs-btn-active-bg: #9a3412;
    --bs-btn-active-border-color: #9a3412;
}

/* Effet d'ombre portée teinté orange pour les boutons principaux */
.shadow-orange,
.shadow-blue {
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.3) !important;
}

/* Surcharge des fonds légers pour les badges et badges-subtle */
.bg-primary-subtle {
    background-color: #fff7ed !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.border-primary-subtle {
    border-color: #ffedd5 !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

section[id], header[id], div[id] {
    scroll-margin-top: 95px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfdfd;
    color: var(--anthracite);
}

/* Espacements personnalisés */
.py-6 {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
}

.py-7 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.pb-6 {
    padding-bottom: 3.25rem !important;
}

.pt-6 {
    padding-top: 3.25rem !important;
}

/* --- Ton Logo Précis --- */
/* --- Logo Officiel ClicChantier avec Carré BTP --- */
.brand-logo {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.55rem !important;
    letter-spacing: -0.6px !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: baseline !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.brand-logo .brand-c {
    color: #ea580c !important;
}

.brand-logo .brand-dot,
.logo-square-dot {
    display: inline-block !important;
    width: 6.5px !important;
    height: 6.5px !important;
    background-color: #ea580c !important;
    border-radius: 0 !important;
    margin-left: 2px !important;
    margin-bottom: 2px !important;
    align-self: flex-end !important;
    flex-shrink: 0 !important;
}

.logo-clic,
.logo-Chantier {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo-clic {
    color: var(--anthracite);
}

.logo-Chantier {
    color: var(--anthracite);
}

.logo-Chantier::first-letter {
    color: var(--primary-orange);
}

.logo-dot {
    color: var(--primary-orange);
    font-weight: 900;
    font-size: 1.8rem;
}

/* --- Design Organique --- */
.navbar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

/* On force la position et on s'assure qu'elle est au dessus de tout */
.navbar.fixed-top {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    /* Pour passer devant le contenu hero */
}

/* Important : comme fixed-top fait "flotter" la barre, 
   le contenu du dessous va monter. On pousse le wrapper vers le bas. */
body {
    padding-top: 80px !important;
}

/* Si tu as un effet parallaxe ou un wrapper spécifique */
.hero-bg-wrapper {
    overflow: visible !important;
}

.hero-section {
    padding: 40px 0;
    background: radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
}

.card-Chantier {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 35px;
    /* Forme très douce */
    padding: 40px;
    height: 100%;
    transition: all 0.3s ease;
}

.card-Chantier:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

.btn-creer {
    background: var(--primary-orange);
    color: white;
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    /* Même hauteur que le bouton login pour l'équilibre visuel */
    padding: 10px 30px;
    line-height: 1;
}

.price-tag {
    background: var(--soft-gray);
    color: var(--anthracite);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- Ajustements Typo et Boutons --- */
h1.display-small {
    font-size: 2.8rem;
    /* Plus élégant et moins imposant */
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Bouton Espace Client plus visible */
.btn-login {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-soft);

    /* Correction de l'alignement vertical */
    display: inline-flex;
    /* Utilise flexbox */
    align-items: center;
    /* Centre verticalement */
    justify-content: center;
    /* Centre horizontalement */
    line-height: 1;
    /* Réinitialise la hauteur de ligne pour éviter les décalages */
    height: 46px;
    /* On force une hauteur identique au bouton d'inscription */
    transition: all 0.2s;
}

.btn-login:hover {
    background-color: var(--soft-gray);
    border-color: #ddd;
}

/* --- Section Exemples --- */
.example-site {
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    background: white;
}

.example-site:hover {
    transform: scale(1.02);
}

.example-img {
    height: 200px;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
}

.example-body {
    padding: 20px;
}

/* --- Fond Coloré Dégradé --- */
.hero-bg-wrapper {
    position: relative;
    background-color: #ffffff;
    /* On utilise des nuances d'orange pour le dégradé chaleureux */
    background-image:
        radial-gradient(at 0% 0%, rgba(249, 115, 22, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(251, 146, 60, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(253, 186, 116, 0.08) 0px, transparent 50%);
    overflow: hidden;
}

/* Optionnel : une forme floue pour plus de relief */
.hero-bg-wrapper::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(249, 115, 22, 0.05);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    /* Pour passer au dessus du fond dégradé */
}

/* --- Visual Stack --- */
.visual-stack {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.window-mockup {
    background: white;
    border-radius: 18px;
    border: 1px solid #eee;
    position: absolute;
    overflow: hidden;
}

/* Le Site Public */
.site-public {
    width: 480px;
    height: 320px;
    z-index: 1;
    right: 50px;
    transform: perspective(1000px) rotateY(-5deg);
}

/* L'interface Admin (superposée) */
.interface-admin {
    width: 220px;
    height: 240px;
    z-index: 2;
    bottom: 20px;
    right: 0;
    transform: translateY(-20px);
    border: 2px solid var(--primary-orange);
}

/* Détails internes des mockups */
.window-header {
    background: #f8f9fa;
    padding: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.mock-url {
    flex-grow: 1;
    text-align: center;
    background: #fff;
    border-radius: 4px;
    color: #ccc;
}

.mock-content {
    background: #fff;
}

.mock-hero {
    height: 80px;
    background: linear-gradient(45deg, #eef2f3, #8e9eab);
}

.mock-line {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.mock-square {
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Styles spécifiques Admin */
.tiny-text {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 700;
}

.mock-input {
    font-size: 12px;
    padding: 5px;
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dot-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.dot-color.blue {
    background: #f97316;
}

.dot-color.anthracite {
    background: #333d47;
}

.dot-color.active {
    ring: 2px solid #f97316;
    outline: 1px solid #f97316;
    outline-offset: 1px;
}

.mock-btn-save {
    background: #f97316;
    color: #fff;
    font-size: 10px;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
}

/* --- Styles spécifiques Login --- */

.login-container {
    width: 100%;
    max-width: 450px;
}

/* Style des champs de saisie "Galet" */
.form-control {
    border: 1px solid #eee;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-orange);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    outline: none;
}

/* On réutilise la carte du site mais on l'adapte pour le login */
.card-Chantier {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 40px;
    /* Encore plus de rondeur pour le confort visuel */
}

.min-vh-100 {
    min-height: 100vh;
}

/* Animation de secousse pour l'erreur de login */
.shake-error {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border-color: #ff4757 !important;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

html {
    scroll-behavior: smooth;
}

/* Optionnel : petit style pour le lien Tarifs s'il n'est pas dans ton CSS */
.text-muted:hover {
    color: var(--primary) !important;
}

.legal-card {
    background: white;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    /* Centrage et marge haute/basse */
    max-width: 900px;
    position: relative;
    z-index: 2;
}

html,
body {
    /* On force l'autorisation du scroll */
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

.input-group>.invalid-feedback {
    display: none;
    /* Cache par défaut */
    width: 100%;
    margin-top: 0.25rem;
}

/* On force l'affichage si l'input est invalide */
.input-group>.form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* Ombre orange douce pour le bouton principal */
.shadow-blue {
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.shadow-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35);
}

/* Style spécifique pour le bouton démo */
.btn-outline-dark {
    border: 2px solid #e2e8f0;
    /* Gris très clair */
    color: #4a5568;
    /* Texte anthracite */
}

.btn-outline-dark:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e0;
    color: #1a202c;
}

/* Cache le bouton radio mais stylise l'image qui suit quand il est coché */
.btn-check:checked+label img.demo-img-selector {
    border: 3px solid #f97316 !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
}

.demo-img-selector {
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.demo-img-selector:hover {
    border-color: #cbd5e0;
}

/* Style de base des pastilles */
.color-selector-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    display: inline-block;
}

/* Effet au survol */
.color-selector-dot:hover {
    transform: scale(1.1);
}

/* L'effet magique quand le bouton radio est coché */
.btn-check:checked+.color-selector-dot {
    border-color: #fdfdfd;
    /* Un petit liseré blanc */
    box-shadow: 0 0 0 3px #000;
    /* Un contour noir ou gris foncé pour marquer la sélection */
    transform: scale(1.2);
}

/* Optionnel : Si tu veux que le contour soit de la couleur du thème */
#color1:checked+.color-selector-dot {
    box-shadow: 0 0 0 3px #e67e22;
}

#color2:checked+.color-selector-dot {
    box-shadow: 0 0 0 3px #2980b9;
}

#color3:checked+.color-selector-dot {
    box-shadow: 0 0 0 3px #27ae60;
}

#color4:checked+.color-selector-dot {
    box-shadow: 0 0 0 3px #d63384;
}

#color5:checked+.color-selector-dot {
    box-shadow: 0 0 0 3px #222222;
}

#color6:checked+.color-selector-dot {
    box-shadow: 0 0 0 3px #8e44ad;
}

#color7:checked+.color-selector-dot {
    box-shadow: 0 0 0 3px #1abc9c;
}


.legal-card {
    background: white;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 900px;
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a202c;
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-top: 30px;
    border-left: 4px solid #f97316;
    padding-left: 15px;
}

.legal-content p,
.legal-content li {
    color: #4a5568;
    line-height: 1.7;
}

.highlight-box {
    background: #f8fafc;
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #cbd5e0;
    margin: 20px 0;
}


/* Pour l'aspect "Fenêtre de logiciel" */
.mockup-container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
}

/* Zone pointillée pour les photos */
.photo-dropzone {
    border-color: #dee2e6 !important;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-dropzone:hover {
    border-color: #f97316 !important;
    background-color: #f8fbff;
}

/* Inputs plus doux */
.form-control::placeholder {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Simuler le clic sur les couleurs */
.rounded-circle:hover {
    transform: scale(1.1);
}

/* Design des modules */
.module-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.mockup-line {
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
}

/* Espacement supplémentaire pour la section */
.py-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.ls-1 {
    letter-spacing: 1px;
}

.italic {
    font-style: italic;
}

/* Ajustement mobile */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 20px 0;
        text-align: center;
    }

    .d-flex {
        width: 100%;
        padding-bottom: 20px;
    }

    .btn-creer,
    .btn-login {
        width: 100%;
        text-align: center;
    }
}

.visual-stack {
    padding-left: 2rem;
    /* Espace entre ton texte de gauche et le mockup */
}

.window-mockup {
    max-width: 580px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    position: relative;
    /* Optionnel : légère rotation pour le dynamisme */
    transform: perspective(1000px) rotateY(-2deg);
}

.iframe-container {
    height: 480px;
    /* Taille de la fenêtre d'affichage */
    position: relative;
    overflow: hidden;
    background: #fff;
}

.iframe-container iframe {
    width: 1280px;
    height: 1400px;
    border: none;
    position: absolute;

    /* AJUSTEMENT ICI : */
    /* On remonte le site de 120px pour supprimer l'espace vide du haut */
    top: -160px;
    left: 0;

    /* On garde le scale pour la largeur */
    transform: scale(0.453);
    transform-origin: top left;

    pointer-events: none;
}

.made-with-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    z-index: 25;
    border: 1px solid #eee;
}

/* --- Typographie et bases modernes --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', 'Poppins', sans-serif;
    letter-spacing: -0.03em;
    /* Rapproche les lettres pour un aspect très pro */
}

.hero-title {
    font-size: 2.35rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.85rem;
    }
}

.tracking-wide {
    letter-spacing: 0.1em;
}

/* --- Nav Glassmorphism --- */
.modern-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.modern-nav .nav-link {
    color: #4a5568 !important;
    transition: color 0.2s;
}

.modern-nav .nav-link:hover {
    color: var(--primary-orange) !important;
}

/* --- Bento Grid & Cartes --- */
.bento-card {
    border-radius: 24px;
    background: #ffffff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Les petits carrés d'icônes dans les modules */
.icon-box {
    width: 54px;
    height: 54px;
    transition: transform 0.2s;
}

.bento-card:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
}

/* --- Ombres et Effets --- */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.shadow-blue {
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover.shadow-blue {
    box-shadow: 0 15px 35px -5px rgba(249, 115, 22, 0.45);
    transform: translateY(-2px);
}

/* L'étiquette de prix dans le Hero */
.modern-price-tag {
    background: #f1f5f9;
    color: #0f172a;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    border: 1px solid #e2e8f0;
}

/* Espacements modernes (Py-7) */
.py-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pb-7 {
    padding-bottom: 6rem;
}

/* --- Mockup (Fenêtre admin & iframes) --- */
.modern-mockup {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mockup-container {
    background: #ffffff;
}

/* Couleurs "Subtle" pour les icônes (si tu n'as pas Bootstrap 5.3) */
.bg-primary-subtle {
    background-color: #cce5ff;
    color: #004085;
}

.bg-success-subtle {
    background-color: #d4edda;
    color: #155724;
}

.bg-danger-subtle {
    background-color: #f8d7da;
    color: #721c24;
}

.bg-warning-subtle {
    background-color: #fff3cd;
    color: #856404;
}

.bg-info-subtle {
    background-color: #d1ecf1;
    color: #0c5460;
}

.bg-secondary-subtle {
    background-color: #e2e3e5;
    color: #383d41;
}

.hover-white:hover {
    color: white !important;
    cursor: pointer;
}

.hover-primary:hover {
    color: var(--primary-orange) !important;
}

/* S'assure que le formulaire reste cliquable et au premier plan */
form {
    position: relative;
    z-index: 10;
}

/* --- Section Pourquoi (Thème Clair) --- */
.max-w-600 {
    max-width: 600px;
}

.leading-relaxed {
    line-height: 1.6;
}

/* --- Utilitaires de finition & modernité --- */
.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.shadow-xs {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.shadow-2xs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}