/* ============================================
   ATELIER CÉL'IN - FEUILLE DE STYLE PRINCIPALE
   ============================================ */

/* Variables de couleurs */
:root {
    --beige: #E8DCC4;
    --sage: #A8B5A0;
    --light-brown: #C4A47C;
    --cream: #F5F1E8;
    --dark-sage: #8A9B7E;
    --warm-brown: #9C7E5B;
    --text-dark: #3E3E3E;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Justification du texte pour tous les paragraphes */
p {
    text-align: justify;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(168, 181, 160, 0.2);
    animation: slideDown 0.8s ease-out;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--warm-brown);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sage);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--dark-sage);
}

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

/* Hamburger / mobile toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   HERO SECTION - PAGE D'ACCUEIL
   ============================================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: var(--warm-brown);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

/* Éléments décoratifs du hero */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--sage);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--light-brown);
    bottom: -50px;
    left: -50px;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* ============================================
   HERO SECTION - PAGES SERVICES/INSPIRATIONS
   ============================================ */
.hero-service,
.hero-inspiration {
    margin-top: 100px;
    padding: 5rem 10%;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    text-align: center;
}

.hero-service h1,
.hero-inspiration h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--warm-brown);
    margin-bottom: 1rem;
    text-align: center;
}

.hero-service .subtitle,
.hero-inspiration .subtitle {
    font-size: 1.2rem;
    color: var(--dark-sage);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ============================================
   BOUTONS CTA
   ============================================ */
.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--sage);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: 2px solid var(--sage);
}

.cta-button:hover {
    background: transparent;
    color: var(--dark-sage);
    border-color: var(--dark-sage);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 181, 160, 0.3);
}

/* ============================================
   SECTION À PROPOS
   ============================================ */
.about {
    padding: 8rem 10%;
    background: var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
}

.about-content {
    animation: fadeInUp 1s ease-out;
}

.about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--warm-brown);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-image {
    position: relative;
    height: auto;
    min-height: 400px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-image::before {
    display: none;
}

.about-image::after {
    display: none;
}


/* ============================================
   GALERIE D'INSPIRATIONS
   ============================================ */
.inspirations {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--cream), var(--beige));
    position: relative;
}

.inspirations h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--warm-brown);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--beige) 0%, var(--sage) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-bg {
    transform: scale(1.1);
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.4;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0;
}

/* ============================================
   SECTION SERVICES
   ============================================ */
.services {
    padding: 8rem 5%;
    background: var(--cream);
    position: relative;
}

.services h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--warm-brown);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--warm-brown);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.professional-cta {
    display: block;
    max-width: 600px;
    margin: 3rem auto 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--sage) 0%, var(--dark-sage) 100%);
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.professional-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.professional-cta p {
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ============================================
   PAGES SERVICES - CONTENU DÉTAILLÉ
   ============================================ */
.service-content {
    padding: 5rem 10%;
    background: var(--cream);
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--warm-brown);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section ul {
    list-style-position: inside;
    margin: 1rem 0;
    padding-left: 1rem;
}

.section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.highlight-box {
    background: rgba(168, 181, 160, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--sage);
    margin: 2rem 0;
}

.highlight-box p {
    margin-bottom: 1rem;
}

.highlight-box ul {
    margin-top: 1rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.pricing-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--warm-brown);
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--dark-sage);
    margin: 1.5rem 0 1rem 0;
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--sage);
    margin: 1rem 0;
}

/* ============================================
   PAGES INSPIRATIONS - GALERIE PHOTOS
   ============================================ */
.inspiration-content {
    padding: 3rem 5%;
    background: var(--cream);
}

.content-layout {
    display: grid;
    grid-template-columns: 650px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.description-box {
    position: sticky;
    top: 120px;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.description-box h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--warm-brown);
    margin-bottom: 1.5rem;
}

.description-box p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.text-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.photo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.photo-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--beige) 0%, var(--sage) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.photo-caption {
    padding: 1.5rem;
    background: white;
}

.photo-caption h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--warm-brown);
    margin-bottom: 0.5rem;
}

.photo-caption p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 3rem 0;
}

/* ============================================
   SECTION CONTACT
   ============================================ */
.contact {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--beige), var(--cream));
}

.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--warm-brown);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--beige);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage);
}

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

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.submit-button:hover {
    background: var(--dark-sage);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 181, 160, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    border-top: 1px solid rgba(168, 181, 160, 0.2);
    overflow: visible;
}

.footer-content {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    width: 100%;
    overflow: visible;
}

/* Logo réduit et centré */
.footer-logo-main {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-main img {
    max-width: 60px;
    height: auto;
    transition: opacity 0.3s ease;
}

.footer-logo-main img:hover {
    opacity: 0.8;
}

/* Texte "ATELIER CÉL'IN" centré */
.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--warm-brown);
    margin: 0.5rem 0;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
}

/* Texte "Aménagements et décoration d'intérieurs" centré */
.footer-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 2rem 0;
    opacity: 0.85;
    text-align: center;
    font-weight: 300;
}

/* Contact et réseaux sociaux */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem auto;
    align-items: center;
    width: 100%;
    max-width: none;
    overflow: visible !important;
    min-height: auto;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block !important;
    min-width: fit-content;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-icon-img {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: var(--warm-brown);
    transform: translateY(-2px);
}

.footer-link:hover .footer-icon-img {
    transform: scale(1.15);
}

.footer-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--text-dark);
}

.footer-link:hover svg {
    stroke: var(--warm-brown);
}

/* Texte additionnel */
.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 1.5rem 0;
    font-style: italic;
    text-align: center;
    font-weight: 300;
}

/* Copyright */
.footer-copyright {
    margin-top: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.6;
    text-align: center;
    font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .logo-image {
        width: 150px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile nav: slide-in panel */
    .nav-links {
        position: absolute;
        top: 100%;
        right: 5%;
        background: rgba(245, 241, 232, 0.98);
        backdrop-filter: blur(6px);
        width: min(320px, 80%);
        max-width: 360px;
        transform: translateX(110%);
        transition: transform 0.32s ease;
        padding: 2rem;
        flex-direction: column;
        gap: 1rem;
        border-radius: 12px;
        box-shadow: -10px 20px 40px rgba(0,0,0,0.12);
        z-index: 1500;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
        display: block;
    }

    /* When nav has .open, show panel */
    nav.open .nav-links {
        transform: translateX(0);
    }

    /* Toggle icon animation (using image) */
    nav.open .nav-toggle-icon {
        transform: rotate(90deg);
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-service h1,
    .hero-inspiration h1 {
        font-size: 2.5rem;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 5%;
    }

    .about h2,
    .inspirations h2,
    .services h2,
    .contact h2 {
        font-size: 2.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 2rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .description-box {
        position: relative;
        top: 0;
        padding: 2rem;
        max-height: none;
        overflow-y: visible;
    }

    .service-content {
        padding: 3rem 5%;
    }

    /* Footer responsive */
    .footer-content {
        padding: 2rem 1rem 1.5rem 1rem;
    }
    
    .footer-logo-main img {
        max-width: 50px;
    }
    
    .footer-brand {
        font-size: 1.2rem;
    }
    
    .footer-tagline {
        font-size: 0.85rem;
    }
    
    .footer-contact {
        gap: 1.2rem;
        overflow: visible !important;
    }
    
    .footer-link {
        font-size: 0.85rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Version desktop du footer */
@media (min-width: 769px) {
    .footer-logo-main img {
        max-width: 80px;
    }
    
    .footer-brand {
        font-size: 1.8rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-contact {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        max-width: 100%;
    }
}
