/* ============================================
   Cheminees Godin 37 - Custom Stylesheet
   ============================================ */

/* --- Variables & Base --- */
:root {
    --rouge-brique: #991B1B;
    --rouge-brique-dark: #7F1D1D;
    --gris-anthracite: #1C1917;
    --dore: #B8860B;
    --dore-light: #D4A017;
    --fond-creme: #FEF7ED;
    --blanc: #FFFFFF;
    --texte-sombre: #292524;
    --gris-moyen: #78716C;
    --gris-clair: #F5F0EB;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Sans', sans-serif;
    color: var(--texte-sombre);
    background-color: var(--fond-creme);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gris-anthracite);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    color: var(--texte-sombre);
}

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

a:hover {
    color: var(--dore);
}

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

/* --- Navbar --- */
.navbar-custom {
    background-color: var(--blanc);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-custom .navbar-brand {
    padding: 0;
}

.navbar-custom .navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar-custom.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-custom .nav-link {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gris-anthracite);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--rouge-brique);
    transition: var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--rouge-brique);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

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

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 28px;
    height: 2px;
    background-color: var(--gris-anthracite);
    display: block;
    transition: var(--transition);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--gris-anthracite);
    left: 0;
    transition: var(--transition);
}

.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { top: 8px; }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.75) 0%, rgba(153, 27, 27, 0.45) 100%);
    z-index: 1;
}

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

.hero h1 {
    color: var(--blanc);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
}

.hero .btn {
    margin-top: 1.5rem;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--gris-anthracite) 0%, var(--rouge-brique-dark) 100%);
    padding: 6rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: var(--blanc);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    gap: 0.5rem;
}

.breadcrumb-custom li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.breadcrumb-custom li a {
    color: var(--dore);
}

.breadcrumb-custom li + li::before {
    content: '/';
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Buttons --- */
.btn-primary-custom {
    background-color: var(--rouge-brique);
    color: var(--blanc);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--rouge-brique-dark);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(153, 27, 27, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--blanc);
    border: 2px solid var(--dore);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline-custom:hover {
    background-color: var(--dore);
    color: var(--blanc);
    transform: translateY(-2px);
}

/* --- Sections --- */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--blanc);
}

.section-cream {
    background-color: var(--fond-creme);
}

.section-dark {
    background-color: var(--gris-anthracite);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--blanc);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--rouge-brique), var(--dore));
    margin: 0.8rem auto 0;
}

.section-title p {
    color: var(--gris-moyen);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Cards --- */
.card-custom {
    background: var(--blanc);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-custom .card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-custom .card-body {
    padding: 1.8rem;
}

.card-custom .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--gris-anthracite);
}

.card-custom .card-text {
    color: var(--gris-moyen);
    font-size: 0.95rem;
}

/* --- Features/Services --- */
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--rouge-brique), var(--dore));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--blanc);
}

/* --- Stats --- */
.stats-section {
    background: linear-gradient(135deg, var(--gris-anthracite) 0%, var(--rouge-brique-dark) 100%);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dore);
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Testimonials --- */
.testimonial {
    background: var(--blanc);
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--dore);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
    opacity: 0.5;
}

.testimonial p {
    font-style: italic;
    color: var(--gris-moyen);
    padding-top: 1.5rem;
}

.testimonial .author {
    font-weight: 600;
    color: var(--gris-anthracite);
    font-style: normal;
    margin-top: 1rem;
    display: block;
}

/* --- Contact Form --- */
.form-control-custom {
    border: 1px solid #E7E0D8;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--blanc);
}

.form-control-custom:focus {
    border-color: var(--dore);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.15);
}

/* --- Footer --- */
.footer {
    background-color: var(--gris-anthracite);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer h5 {
    color: var(--blanc);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dore);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--dore);
    padding-left: 5px;
}

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

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--rouge-brique);
    padding-left: 0;
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: var(--blanc);
}

/* --- Gallery Grid --- */
.gallery-img {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--rouge-brique) 0%, var(--rouge-brique-dark) 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--blanc);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section { padding: 3.5rem 0; }

    .navbar-collapse {
        background-color: var(--blanc);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 70vh;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .page-header {
        padding: 5rem 0 2rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .card-custom .card-img-top {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    .section {
        padding: 2.5rem 0;
    }
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* --- Utility --- */
.text-dore { color: var(--dore) !important; }
.text-rouge { color: var(--rouge-brique) !important; }
.bg-creme { background-color: var(--fond-creme) !important; }
.separator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--rouge-brique), var(--dore));
    margin: 1rem 0;
}
.separator-center {
    margin-left: auto;
    margin-right: auto;
}
