/* Custom styles for Rent a Site website */

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background-color: #212b30;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

/* Title Animation */
@keyframes fadeIn {
    0% { 
        opacity: 0;
        letter-spacing: -2px;
        filter: blur(3px);
    }
    100% { 
        opacity: 1;
        letter-spacing: normal;
        filter: blur(0);
    }
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-title {
    position: relative;
    animation: fadeIn 1.2s ease-out forwards;
}

.animated-title span {
    display: inline-block;
    background: linear-gradient(45deg, #ffcc33, #ffa500, #ffcc33);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 3s ease infinite;
    text-shadow: 0 0 10px rgba(255, 204, 51, 0.3);
}


/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header styles */
header {
    background: linear-gradient(135deg, rgba(33, 43, 48, 0.95), rgba(33, 43, 48, 0.98));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header:hover {
    border-bottom-color: rgba(255, 204, 51, 0.3);
}

/* Logo animation */
.text-primary.font-bold.text-3xl {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.text-primary.font-bold.text-3xl:hover {
    transform: scale(1.05);
}

/* Navigation links effect */
header nav ul li a {
    position: relative;
    padding-bottom: 2px;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffcc33;
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#mobile-menu {
    transform-origin: top;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scaleY(0);
}

#mobile-menu.show {
    opacity: 1;
    transform: scaleY(1);
}

/* Mobile menu button */
#mobile-menu-button {
    transition: transform 0.3s ease;
}

#mobile-menu-button.active {
    transform: rotate(90deg);
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Texture pattern for hero section - Inspired by rentasite.fr */
#accueil {
    position: relative;
    overflow: hidden;
    background-color: #212b30; /* Base color */
}

#accueil {
    position: relative;
    overflow: hidden;
    background-color: #212b30;
}

#accueil::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 10px 10px;
    z-index: 0;
}

#accueil::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(ellipse at top right, rgba(255, 204, 51, 0.1), transparent 70%),
                radial-gradient(ellipse at bottom left, rgba(255, 204, 51, 0.05), transparent 70%);
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.4);
    z-index: 0;
}

#accueil .container {
    position: relative;
    z-index: 1;
}

/* Custom hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Custom button styles */
.btn-primary {
    background-color: #3B82F6;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Form validation styles */
.form-error {
    border-color: #EF4444 !important;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Nouvelles règles pour la topbar responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Ajustement de l'espacement entre les éléments de navigation */
    header nav ul.md\:flex {
        gap: 1rem;
    }

    /* Réduction de la taille du texte pour les liens de navigation */
    header nav ul li a {
        font-size: 0.9rem;
    }

    /* Ajustement du logo */
    .text-primary.font-bold.text-3xl {
        font-size: 1.5rem;
    }

    /* Ajustement du bouton CTA */
    .bg-primary.hover\:bg-primary\/90.text-dark {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Augmentation de l'espacement entre le logo et la navigation */
    header nav {
        gap: 1rem;
    }
}

/* Ajustement pour les très petits écrans */
@media (max-width: 360px) {
    .text-primary.font-bold.text-3xl {
        font-size: 1.25rem;
    }
}

/* Style du footer */
.footer-pattern {
    position: relative;
    background-color: #212b30;
    overflow: hidden;
}

.footer-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 204, 51, 0.02) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(255, 204, 51, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

/* Apparence générale du tableau */
.comparatif-forfaits {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border: 1px solid #f3f4f6;
}
.comparatif-forfaits th, .comparatif-forfaits td {
    border-right: 1px solid #f3f4f6;
}
.comparatif-forfaits th:last-child, .comparatif-forfaits td:last-child {
    border-right: none;
}
.comparatif-forfaits tr:nth-child(even) {
    background: #f9fafb;
}
.comparatif-forfaits th {
    background: #fffbe6;
    font-size: 1.2rem;
    font-weight: 700;
    color: #212b30; /* Texte foncé */
    position: relative;
}
.comparatif-forfaits .prix {
    color: #212b30 !important;
}
.comparatif-forfaits .populaire-badge {
    position: absolute;
    top: -2.2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc33;
    color: #212b30;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px 0 rgba(255,204,51,0.15);
    animation: bounce 1.2s infinite alternate;
    z-index: 1;
}
@keyframes bounce {
    0% { transform: translateX(-50%) translateY(0);}
    100% { transform: translateX(-50%) translateY(-6px);}
}
.comparatif-forfaits td {
    padding: 1rem 0.5rem;
    font-size: 1.05rem;
}
.comparatif-forfaits td strong, .comparatif-forfaits td .text-primary {
    color: #6c47ff !important;
    font-weight: 700;
}
.comparatif-forfaits .btn-choisir {
    background: #ffcc33;
    color: #212b30;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    margin-top: 0.5rem;
    display: inline-block;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(255,204,51,0.10);
}
.comparatif-forfaits .btn-choisir:hover {
    background: #ffe066;
    transform: scale(1.07);
}
@media (max-width: 768px) {
    .comparatif-forfaits th, .comparatif-forfaits td {
    font-size: 0.95rem;
    padding: 0.75rem 0.25rem;
    }
}

/* Conteneur du tableau */
.pricing-table-wrap {
    background: transparent;
    padding: 0;
    margin: 0 auto;
    max-width: 1100px;
}
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}
.pricing-table th, .pricing-table td {
    text-align: center;
    padding: 1.1rem 0.5rem;
    font-size: 1.08rem;
    background: #fff;
    border: none;
    transition: box-shadow 0.2s;
}
.pricing-table th {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212b30;
    background: #f7f7fa;
    border-radius: 1.2rem 1.2rem 0 0;
    position: relative;
    box-shadow: 0 2px 8px 0 rgba(31,38,135,0.04);
}
.pricing-table th.popular {
    background: #f9f5e7;
    box-shadow: 0 4px 24px 0 rgba(255,204,51,0.10);
    z-index: 2;
}
.pricing-table th .populaire-badge {
    display: block;
    position: absolute;
    top: -1.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc33;
    color: #212b30;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px 0 rgba(255,204,51,0.15);
    letter-spacing: 0.02em;
    animation: bounce 1.2s infinite alternate;
}
@keyframes bounce {
    0% { transform: translateX(-50%) translateY(0);}
    100% { transform: translateX(-50%) translateY(-6px);}
}
.pricing-table td {
    background: #fff;
    border-radius: 0.7rem;
    box-shadow: 0 1px 4px 0 rgba(31,38,135,0.03);
}
.pricing-table tr:nth-child(even) td {
    background: #f7f7fa;
}
.pricing-table td.strong, .pricing-table td strong {
    color: #6c47ff;
    font-weight: 700;
}
.pricing-table td .check {
    color: #6c47ff;
    font-size: 1.2em;
    font-weight: bold;
}
.pricing-table td .check-empty {
    color: #e5e7eb;
    font-size: 1.2em;
}
.pricing-table td {
    vertical-align: middle;
}
.pricing-table .prix {
    font-size: 2rem;
    font-weight: 800;
    color: #212b30;
    margin-bottom: 0.2rem;
    display: inline-block;
}
.pricing-table .cta-cell {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 0 1.2rem 1.2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.pricing-table .btn-choisir {
    background: linear-gradient(90deg, #ffcc33 60%, #ffe066 100%);
    color: #212b30;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px 0 rgba(255,204,51,0.10);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    border: none;
    outline: none;
    display: inline-block;
}
.pricing-table .btn-choisir:hover {
    background: linear-gradient(90deg, #ffe066 60%, #ffcc33 100%);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 24px 0 rgba(255,204,51,0.18);
}
@media (max-width: 900px) {
    .pricing-table th, .pricing-table td {
    font-size: 0.98rem;
    padding: 0.7rem 0.2rem;
    }
    .pricing-table .prix {
    font-size: 1.3rem;
    }
}
@media (max-width: 700px) {
    .pricing-table-wrap {
    padding: 0 0.5rem;
    }
    .pricing-table, .pricing-table thead, .pricing-table tbody, .pricing-table tr, .pricing-table th, .pricing-table td {
    display: block;
    width: 100%;
    }
    .pricing-table tr {
    margin-bottom: 2.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px 0 rgba(31,38,135,0.06);
    }
    .pricing-table th, .pricing-table td {
    border-radius: 0.7rem !important;
    box-shadow: none !important;
    margin-bottom: 0.2rem;
    }
    .pricing-table .cta-cell {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    }
}

/* Z-index management for modal and back-to-top button */
#confirmationModal {
    z-index: 60 !important;
}

/* Back to top button should be behind modals */
footer a[href="#"]:last-child {
    z-index: 40 !important;
}

/* Email capture popup */
#email-capture-popup {
    z-index: 55 !important;
}

/* Photo portrait - amélioration du rendu */
.portrait-photo {
    image-rendering: auto;
    -ms-interpolation-mode: bicubic; /* vieux IE, sans effet ailleurs */
    backface-visibility: hidden;
    transform: translateZ(0); /* force un rendu propre sur certains GPU mobile */
    will-change: transform;
}

/* ---- Réalisations: scroll d'aperçu longue page au survol ---- */
.portfolio-scroll {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem; /* cohérent avec les cards */
}

.portfolio-scroll-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
}

.portfolio-scroll img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* Overlay enrichi: CTA + indices de scroll */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.15) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none; /* clics passent à travers, l'ancre gère */
}
.group:hover .portfolio-overlay {
    opacity: 1;
}

/* Activation sur mobile (via JS) */
.portfolio-overlay.active {
    opacity: 1;
}

.cta-visit {
    pointer-events: none;
    transform: translateY(6px) scale(0.98);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.95;
}
.group:hover .cta-visit {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.cta-visit .cta-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(180deg, #ffffff, #f6f6f6);
    color: #212b30;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255,0.7) inset;
}

/* Indices de scroll animés (haut/bas) */
.scroll-hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
    opacity: 0; /* caché par défaut */
    animation-play-state: paused; /* ne pas animer par défaut */
    display: none; /* totalement masqué par défaut */
}
.hint-top { bottom: 10px; animation: hintDown 1.4s ease-in-out infinite; }
.hint-bottom { bottom: 10px; animation: hintUp 1.4s ease-in-out infinite; }

/* Activation contrôlée par classe sur le conteneur */
.portfolio-scroll.hint-down-active .hint-top { display: flex; opacity: 1; animation-play-state: running; }
.portfolio-scroll.hint-down-active .hint-bottom { display: flex; opacity: 0; animation-play-state: paused; }
/* Mode simplifié: plus de hint-up, uniquement hint-down */

@keyframes hintDown {
    0% { opacity: 0; transform: translate(-50%, -6px); }
    50% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 6px); }
}
@keyframes hintUp {
    0% { opacity: 0; transform: translate(-50%, 6px); }
    50% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -6px); }
}

/* Effet de vignettage doux aux bords pour suggérer le scroll */
.edge-fade {
    position: absolute;
    left: 0; right: 0; height: 56px;
    pointer-events: none;
}
.edge-top { top: 0; background: linear-gradient(180deg, rgba(33,43,48,0.35), rgba(33,43,48,0)); }
.edge-bottom { bottom: 0; background: linear-gradient(0deg, rgba(33,43,48,0.35), rgba(33,43,48,0)); }

/* Animation par défaut si JS non chargé: légère translation */
@keyframes autoScrollFallback {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20%); }
}

.portfolio-scroll:not(.js-enabled) .portfolio-scroll-inner {
    animation: autoScrollFallback 6s linear infinite alternate;
}
