/**
 * AUVERGNE STOCKAGE - Styles unifiés
 * Fichier CSS commun pour toutes les pages du site
 * Version optimisée sans formulaire de contact
 */

/* ========================================
   VARIABLES CSS
   ======================================== */
   :root {
    --primary-gradient: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    --secondary-color: #6c757d;
    --success-color: #198754;
    --primary-dark: #2c5530;
    --primary-light: #4a7c59;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 76px;
    color: #333;
    background-color: #f8f9fa;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-dark) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--success-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--success-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
    margin-bottom: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Hero section pour page d'accueil */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

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

.hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.25rem;
    background: var(--success-color);
    border-radius: 0.125rem;
}

/* ========================================
   CARDS
   ======================================== */
.feature-card,
.storage-card,
.info-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow);
    height: 100%;
    border-radius: 1rem;
    background: white;
}

.feature-card:hover,
.storage-card:hover,
.info-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

/* Feature icons */
.feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* ========================================
   PRICING & BADGES
   ======================================== */
.price-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.location-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    transition: all 0.3s ease;
}

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

.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary-custom:hover {
    color: white;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   INFO SECTIONS
   ======================================== */
.practical-info {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.practical-info h3 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid var(--success-color);
}

.info-item i {
    font-size: 1.25rem;
    color: var(--success-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 1.5rem;
    text-align: center;
}

/* ========================================
   SECURITY & CONDITION CARDS
   ======================================== */
.security-feature,
.condition-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.security-feature:hover,
.condition-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.security-icon,
.condition-icon {
    width: 4rem;
    height: 4rem;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.condition-icon {
    width: 5rem;
    height: 5rem;
    background: var(--primary-gradient);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.condition-card {
    border: 2px solid #e9ecef;
}

.condition-card:hover {
    border-color: var(--success-color);
}

.condition-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

/* ========================================
   CONTACT ELEMENTS
   ======================================== */
.contact-info-item {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

/* ========================================
   ACCORDION (FAQ)
   ======================================== */
.accordion {
    --bs-accordion-border-radius: 1rem;
}

.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    font-weight: 500;
    padding: 1.5rem;
    background-color: white;
    border: none;
    border-radius: 1rem !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    border-color: var(--success-color);
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* ========================================
   HIGHLIGHT BOXES & ALERTS
   ======================================== */
.highlight-box {
    background: rgba(25, 135, 84, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 2rem;
    border-radius: 0 1rem 1rem 0;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.alert-info-custom {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #0c63e4;
    border-radius: 0.75rem;
}

/* ========================================
   SERVICE ITEMS
   ======================================== */
.service-item {
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 1rem;
    background: white;
}

.service-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.usage-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.usage-card:hover {
    transform: translateY(-0.25rem);
}

.usage-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ========================================
   TABLES
   ======================================== */
.price-table,
.comparison-table {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.price-table th,
.comparison-table th {
    background: var(--success-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
}

.price-table td,
.comparison-table td {
    vertical-align: middle;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.price-highlight {
    background: rgba(25, 135, 84, 0.1);
    font-weight: 600;
    color: var(--success-color);
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-info {
    background: white;
    padding: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--primary-dark);
    color: white;
    margin-top: 4rem;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   CTA SECTIONS
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(50%, -50%);
}

/* ========================================
   ADVANTAGE ITEMS
   ======================================== */
.advantage-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow);
}

.advantage-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* ========================================
   FEATURE HIGHLIGHTS
   ======================================== */
.feature-highlight {
    background: rgba(25, 135, 84, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1rem 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .page-header,
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .condition-card,
    .security-feature {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .practical-info {
        padding: 1.5rem;
    }

    .info-item {
        padding: 1rem;
    }

    .contact-info-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .map-info {
        padding: 1.5rem;
    }

    .condition-value {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-section {
        padding: 2rem;
    }

    .contact-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .feature-icon,
    .advantage-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
    }

    .contact-info-item {
        padding: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary-custom {
    color: var(--primary-dark) !important;
}

.bg-primary-custom {
    background: var(--primary-gradient) !important;
}

.text-success-custom {
    color: var(--success-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow) !important;
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-custom {
    border-radius: 1rem !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    footer,
    .btn,
    .animate-on-scroll {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white;
    }

    .page-header {
        page-break-after: avoid;
        background: none !important;
        color: black !important;
    }

    .card,
    .contact-info-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}