/**
 * Copyright 2026 DOOZEN
 * DOOZEN CMS - Feuille de style Front-office
 * Version 1.0
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --primary: #4f6ef7;
    --primary-dark: #3a57e8;
    --secondary: #6c757d;
    --dark: #1a1d23;
    --light-bg: #f8f9fa;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: .25s ease;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #343a40;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

.navbar-brand-site {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark) !important;
    letter-spacing: -0.5px;
}

.navbar-brand-site img {
    height: 36px;
    width: auto;
}

.navbar-nav .nav-link {
    font-size: .9rem;
    font-weight: 500;
    color: #495057 !important;
    padding: .5rem .875rem !important;
    border-radius: 6px;
    transition: all var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(79,110,247,.07);
}

/* Dropdown */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    border-radius: 10px;
    padding: .5rem;
}

.navbar-nav .dropdown-item {
    border-radius: 6px;
    font-size: .875rem;
    padding: .5rem .875rem;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(79,110,247,.07);
    color: var(--primary);
}

/* Mobile hamburger */
.navbar-toggler {
    border: none;
    padding: .25rem .5rem;
}

.navbar-toggler:focus { box-shadow: none; }

/* ============================================================
   HERO BLOCKS
   ============================================================ */
.hero-block {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-block .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-block .hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-block .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-block h1 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.page-section {
    padding: 4rem 0;
}

.page-section.section-light { background: var(--light-bg); }
.page-section.section-dark  { background: var(--dark); color: #fff; }
.page-section.section-primary { background: var(--primary); color: #fff; }

/* ============================================================
   HEADING BLOCK
   ============================================================ */
.heading-block {
    text-align: center;
    margin-bottom: 2.5rem;
}

.heading-block h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.heading-block .heading-subtitle {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-top: .5rem;
}

.heading-block .heading-line {
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ============================================================
   TEXT + IMAGE
   ============================================================ */
.text-image-block img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================================================
   IMAGE BLOCK
   ============================================================ */
.image-block img {
    border-radius: var(--radius);
}

.image-block img.shadow {
    box-shadow: var(--shadow);
}

/* ============================================================
   VIDEO BLOCK
   ============================================================ */
.video-block .ratio {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============================================================
   GALLERY BLOCK
   ============================================================ */
.gallery-block .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-block .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
}

.gallery-block .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-block .gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .gallery-block .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gallery-block .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTON BLOCK
   ============================================================ */
.button-block {
    text-align: center;
}

.button-block .btn {
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--transition);
}

.button-block .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
}

.cta-block h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: .75rem;
}

.cta-block .btn-light {
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 700;
}

/* ============================================================
   COLUMNS / FEATURES
   ============================================================ */
.columns-block .feature-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.columns-block .feature-item:hover {
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.columns-block .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(79,110,247,.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.columns-block .feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--dark);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-block .testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.testimonials-block .testimonial-text {
    font-size: .95rem;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonials-block .testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: .3;
    line-height: 0;
    position: relative;
    top: 15px;
    margin-right: 5px;
}

.testimonials-block .testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.testimonials-block .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonials-block .author-avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.testimonials-block .author-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--dark);
}

.testimonials-block .author-title {
    font-size: .78rem;
    color: var(--secondary);
}

.testimonials-block .stars {
    color: #fbbf24;
    font-size: .85rem;
}

/* ============================================================
   FAQ BLOCK
   ============================================================ */
.faq-block .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    background: #fff;
    color: var(--dark);
}

.faq-block .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(79,110,247,.04);
    box-shadow: none;
}

.faq-block .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(79,110,247,.2);
}

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

.faq-block .accordion-body {
    font-size: .9rem;
    color: #6c757d;
    line-height: 1.7;
}

/* ============================================================
   ICONS BLOCK
   ============================================================ */
.icons-block .icon-item {
    text-align: center;
    padding: 1.25rem .75rem;
}

.icons-block .icon-item i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.icons-block .icon-item-title {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .25rem;
}

.icons-block .icon-item-text {
    font-size: .82rem;
    color: var(--secondary);
}

/* ============================================================
   LIST BLOCK
   ============================================================ */
.list-block ul, .list-block ol {
    padding-left: 1.5rem;
}

.list-block li {
    margin-bottom: .5rem;
    font-size: .95rem;
}

.list-block.checklist ul {
    list-style: none;
    padding-left: 0;
}

.list-block.checklist li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-right: .75rem;
}

/* ============================================================
   SEPARATOR
   ============================================================ */
.separator-block {
    padding: 1.5rem 0;
    text-align: center;
}

.separator-block hr {
    border-color: #dee2e6;
    border-width: 2px;
    margin: 0;
}

.separator-block .separator-icon {
    font-size: 1.25rem;
    color: #ced4da;
    display: inline-block;
    background: #fff;
    padding: 0 1rem;
    position: relative;
    top: -1px;
}

/* ============================================================
   CARD CONTACT
   ============================================================ */
.card-contact-block {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all var(--transition);
}

.card-contact-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(79,110,247,.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.card-contact-title {
    font-weight: 700;
    margin-bottom: .5rem;
    font-size: 1.05rem;
}

.card-contact-value {
    color: var(--secondary);
    font-size: .9rem;
}

/* ============================================================
   CONTACT FORM BLOCK
   ============================================================ */
.contact-form-block .form-control,
.contact-form-block .form-select {
    border-radius: 8px;
    border-color: #dee2e6;
    padding: .75rem 1rem;
    font-size: .9rem;
}

.contact-form-block .form-control:focus,
.contact-form-block .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,110,247,.12);
}

.contact-form-block .btn-submit {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    padding: .75rem 2.5rem;
    font-weight: 600;
    transition: all var(--transition);
}

.contact-form-block .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,110,247,.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 3.5rem 0 0;
}

.site-footer h5 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.site-footer p, .site-footer li {
    font-size: .875rem;
    line-height: 1.7;
}

.site-footer a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color var(--transition);
    font-size: .875rem;
}

.site-footer a:hover {
    color: #fff;
}

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

.site-footer ul li {
    padding: .25rem 0;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    opacity: .15;
}

/* ============================================================
   MAINTENANCE PAGE
   ============================================================ */
.maintenance-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1d23, #2d3748);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page .form-control {
    border-radius: 8px;
    padding: .75rem 1rem;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.alert-flash {
    border-radius: var(--radius);
    border: none;
    font-size: .9rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.rounded-xl { border-radius: 16px !important; }
.rounded-2xl { border-radius: 20px !important; }

/* Lazy load fade-in */
img[loading="lazy"] { opacity: 0; transition: opacity .4s ease; }
img.loaded { opacity: 1; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeinup {
    animation: fadeInUp .6s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .hero-block h1 { font-size: 2rem; }
    .heading-block h2 { font-size: 1.5rem; }
    .page-section { padding: 2.5rem 0; }
    .cta-block { padding: 2rem 1rem; }
}

@media (max-width: 575.98px) {
    .hero-block { min-height: 380px; }
}
