/* ===========================
   SIGNATURE DAGENAIS - STYLES
   =========================== */

/* ===========================
   BANNER DEMO PROXIWEB
   =========================== */

.proxi-banner {
    position: sticky;
    top: 0;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(90deg, #1a305a, #1f2937);
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: bannerSlideIn 800ms ease-out forwards;
}

.proxi-banner__pill {
    background: #d3542e;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.proxi-banner__text {
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.proxi-banner a {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
}

.proxi-banner a:hover {
    text-decoration: underline;
}

@keyframes bannerSlideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .proxi-banner { animation: none; }
}

@media (max-width: 640px) {
    .proxi-banner {
        padding: 8px 0 8px 12px;
        gap: 10px;
        overflow: hidden;
    }

    .proxi-banner__pill {
        flex-shrink: 0;
    }

    .proxi-banner__text {
        white-space: nowrap;
        font-size: 13px;
        animation: marquee 20s linear infinite;
        display: block;
        text-align: left;
    }
}

@keyframes marquee {
    0%   { transform: translateX(60vw); }
    100% { transform: translateX(-100%); }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #4b5563;
}

img {
    max-width: 100%;
    display: block;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

body {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #1a305a 0%, #2a4a7a 100%);
}

.hero video {
    object-fit: cover;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: #f3f4f6;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* ===========================
   À PROPOS SECTION
   =========================== */

.about-photo-wrapper {
    background: #f3f4f6;
}

.about-photo-placeholder {
    display: flex;
}

.about-stat {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.about-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===========================
   MOBILE CAROUSEL
   =========================== */

@media (max-width: 767px) {
    .carousel-track {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1rem;
        /* Extend to page edges for a full-bleed feel */
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0.5rem;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .carousel-track .carousel-item {
        flex: 0 0 82%;
        scroll-snap-align: start;
        /* Keep card shadows visible */
        margin-bottom: 0.5rem;
    }

    /* Portfolio items taller on mobile carousel */
    .carousel-track .portfolio-item {
        flex: 0 0 78%;
    }
}

/* Dot indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background-color: var(--accent);
    width: 20px;
    border-radius: 4px;
}

/* Hide dots on desktop */
@media (min-width: 768px) {
    .carousel-dots {
        display: none;
    }
}

/* ===========================
   FOOTER HEADINGS
   =========================== */

footer h2, footer h3, footer h4, footer h5 {
    color: #ffffff !important;
}

/* ===========================
   NAVBAR / HEADER
   =========================== */

.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(26, 48, 90, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(26, 48, 90, 0.12);
}

.navbar h1 {
    margin: 0;
    font-size: 1.5rem;
}

#mobile-nav {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary,
.btn-secondary {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary {
    background-color: #d3542e;
    color: #ffffff;
    padding: 0.875rem 1.5rem;
}

.btn-primary:hover {
    background-color: #b83d1f;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(26, 48, 90, 0.16);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: #d3542e;
    padding: 0.875rem 1.5rem;
    border: 2px solid #d3542e;
}

.btn-secondary:hover {
    background-color: #d3542e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 48, 90, 0.12);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ===========================
   CARDS & COMPONENTS
   =========================== */

.service-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 48, 90, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #d3542e;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease-out;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 48, 90, 0.16);
}

/* ===========================
   FORM STYLES
   =========================== */

#contact-form {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(26, 48, 90, 0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a305a;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.2s ease-out;
    background-color: #ffffff;
    color: #1f2937;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d3542e;
    box-shadow: 0 0 0 3px rgba(211, 84, 46, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="radio"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #d3542e;
}

.error-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.error-message.show {
    display: block;
}

#success-message {
    animation: slideUp 0.4s ease-out;
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   PORTFOLIO / GALLERY
   =========================== */

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(26, 48, 90, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

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

/* ===========================
   ANIMATIONS
   =========================== */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step-card {
    opacity: 0;
}

.step-card.is-visible {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--animation-order, 0) * 0.15s);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 2rem 0;
    }

    #mobile-nav {
        display: none;
    }

    #mobile-nav.active {
        display: block;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar .hidden {
        display: none !important;
    }

    .navbar .md\:flex {
        display: none !important;
    }

    .navbar .md\:hidden {
        display: flex !important;
    }

    .service-card {
        text-align: center;
    }

    #contact-form {
        padding: 1.5rem;
    }

    .portfolio-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .navbar {
        gap: 1rem;
    }

    .navbar .sm\:flex {
        display: none !important;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d3542e;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d3542e;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.text-primary {
    color: #1a305a;
}

.text-secondary {
    color: #3c485a;
}

.text-accent {
    color: #d3542e;
}

.text-text-body {
    color: #4b5563;
}

.text-text-muted {
    color: #6b7280;
}

.bg-light-bg {
    background-color: #f9fafb;
}

.bg-accent {
    background-color: #d3542e;
}

.bg-primary {
    background-color: #1a305a;
}

.shadow {
    box-shadow: 0 4px 12px rgba(26, 48, 90, 0.08);
}

.shadow-lg {
    box-shadow: 0 16px 40px rgba(26, 48, 90, 0.16);
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.rounded-lg {
    border-radius: 0.75rem;
}

.inline-flex {
    display: inline-flex;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}
