@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Raleway:wght@400;500;600;700;800&display=swap');

/********** Design System – IGC Ingénierie **********/

:root {
    /* Palette principale */
    --gold: #C8AA6E;
    --gold-light: #D4BB87;
    --gold-dark: #A8883E;
    --gold-pale: #F5EDD8;
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    --light-bg: #F4F2ED;
    --dark: #1A1A1A;
    --dark-mid: #2D2D2D;
    --grey: #6B7280;
    --grey-light: #E5E5E0;
    --navy: #051F30;

    /* Typography */
    --font-display: 'Raleway', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 8px 32px rgba(200, 170, 110, 0.28);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s var(--ease);
}

/********** Reset & Base **********/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

p {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
}

/********** Utility Classes **********/

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

.text-black {
    color: var(--dark) !important;
}

.text-blue {
    color: var(--navy) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 16px;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Gold divider */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 16px auto 0;
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/********** Buttons **********/

.btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-orange {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white) !important;
    width: auto;
    min-width: 200px;
}

.btn-orange:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--white) !important;
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold) !important;
    border: 2px solid var(--gold) !important;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--white) !important;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white !important;
    z-index: 999;
    box-shadow: var(--shadow-gold);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(200, 170, 110, 0.4);
}

/* Square variants */
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    text-align: center;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/********** Navbar **********/

.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 170, 110, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.navbar-light .navbar-nav .nav-link {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dark-mid);
    padding: 28px 0;
    margin-left: 28px;
    position: relative;
    outline: none;
    transition: color var(--transition);
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 1px;
    transition: width var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--gold);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--grey-light);
        font-size: 14px;
    }

    .navbar-light .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Contact badge in nav */
.contact-span {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50px;
    color: white !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(200, 170, 110, 0.3);
}

.contact-span:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

/********** Hero **********/

.hero-header {
    background: url(../img/hero.jpg) center center no-repeat;
    background-size: cover;
    min-height: 680px;
    position: relative;
}

.hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

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

.hero-header h1 {
    color: white !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.text-blue {
    color: var(--navy) !important;
    margin-top: 80px;
}

/********** Service Cards **********/

.service-item {
    background: var(--white) !important;
    border: 1px solid rgba(200, 170, 110, 0.12);
    border-radius: var(--radius-lg) !important;
    padding: 40px 28px !important;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: auto !important;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 170, 110, 0.3);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark) !important;
    margin-top: 8px;
}

.service-item p {
    font-size: 14px;
    color: var(--grey);
}

/********** Display overrides **********/

.display-1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.display-2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
}

.display-3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/********** Section decorators **********/

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-badge::before,
.section-badge::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

/********** Feature Block (Why Choose Us) **********/

.circle-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
}

.center-circle {
    width: 402px;
    height: 402px;
    border-radius: 50%;
    background: url('/img/why-choose.png') no-repeat center;
    background-size: cover;
    z-index: 2;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    border: 4px solid rgba(200, 170, 110, 0.25);
}

.feature-block {
    width: 345px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    font-family: var(--font-display);
}

.feature-text {
    width: 255px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(200, 170, 110, 0.35);
    transition: all var(--transition);
}

.feature-block:hover .feature-icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-gold);
}

.feature-icon img {
    width: 30px;
    height: 30px;
}

.feature-text h3 {
    margin: 0 0 4px 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.feature-text p {
    margin: 0;
    font-size: 13px;
    color: var(--grey);
}

.top-left,
.top-right,
.bottom-left,
.bottom-right {
    position: absolute;
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}

@media (max-width: 768px) {
    .circle-layout {
        flex-direction: column;
        align-items: center;
    }

    .feature-block {
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }

    .center-circle {
        display: none;
    }

    .top-left,
    .top-right,
    .bottom-left,
    .bottom-right {
        position: static;
    }
}

/********** Appointment / Split Section **********/

.split-section {
    overflow: hidden;
}

.split-section .split-img {
    position: relative;
    min-height: 500px;
}

.split-section .split-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/********** Footer **********/

.footer-wrapper {
    background: linear-gradient(160deg, #0d1b26 0%, #051F30 60%, #0a1520 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-logo {
    width: 180px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
    transition: color var(--transition);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 24px 0;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/********** Expertise page **********/

.expertise-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-light);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 170, 110, 0.3);
}

.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    padding: 20px 20px 8px;
    margin: 0;
}

.expertise-card p {
    padding: 0 20px 20px;
    font-size: 13px;
    color: var(--grey);
    margin: 0;
}

.expertise-img {
    max-height: 260px;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.expertise-card:hover .expertise-img {
    transform: scale(1.04);
}

/********** Contact Page **********/

.contact-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: white !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(200, 170, 110, 0.25);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Alert / Flash messages */
/* ── Floating Toasts ── */
#alert-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-custom {
    pointer-events: auto;
    min-width: 320px;
    padding: 18px 24px;
    border-radius: 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.toast-custom.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 5px solid #10b981;
    color: #064e3b;
}

.toast-error {
    border-left: 5px solid #ef4444;
    color: #7f1d1d;
}

.toast-icon {
    font-size: 20px;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #ef4444;
}

/* ── Button Loading State ── */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 576px) {
    #alert-container {
        top: 20px;
        right: 20px;
        left: 20px;
    }

    .toast-custom {
        min-width: auto;
    }
}

/********** Carousel / Testimonials **********/

.testimonial-carousel .owl-dots {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.testimonial-carousel .owl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--grey-light);
    border-radius: 50%;
    transition: all var(--transition);
}

.testimonial-carousel .owl-dot.active {
    width: 28px;
    height: 8px;
    border-radius: 4px;
    background: var(--gold);
}

.testimonial-carousel .owl-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold-pale);
}

/********** Animations **********/

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(200, 170, 110, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(200, 170, 110, 0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.7s var(--ease) both;
}

/* Staggered children */
.stagger-children>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.15s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.25s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.35s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.45s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.55s;
}

/********** Price / Team Carousels **********/

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--gold-pale);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next,
.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: white;
    border: 1.5px solid var(--gold);
    font-size: 20px;
    border-radius: 50%;
    transition: all var(--transition);
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover,
.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--gold);
    color: white;
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

/********** Scroll-reveal (Intersection Observer) **********/

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/********** Responsive **********/

@media (max-width: 768px) {
    .display-2 {
        font-size: 24px;
    }

    .hero-header {
        min-height: 480px;
    }
}