/* ===========================
   GOOGLE FONTS
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Raleway:wght@300;400;500;600&display=swap');

/* ===========================
   PÉTALES
=========================== */
#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
}

#petals-canvas.visible {
    opacity: 1;
}

/* ===========================
   VARIABLES
=========================== */
:root {
    --primary: #685454;
    --secondary: #EA8A8A;
    --accent: #EA8A8A;
    --background: #F2F2F2;
    --light: #EBD5D5;
    --white: #ffffff;
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Raleway', sans-serif;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

/* Rendu différé des sections hors écran */
.s2, .s3, .s4, .s5 {
    content-visibility: auto;
    contain-intrinsic-size: 0 100vh;
}

/* Optimisation des images */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
}

/* ===========================
   NAVBAR
=========================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    width: 100%;
    height: 70px;
    background: var(--primary);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 30px;
    gap: 20px;
}

.nav-title {
    color: var(--white);
    margin: 0;
    font-size: 22px;
    white-space: nowrap;
    grid-column: 1;
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    grid-column: 2;
    justify-self: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

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

/* ===========================
   SÉLECTEUR DE LANGUE
=========================== */
.lang-switcher {
    grid-column: 3;
    justify-self: end;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: var(--font-body);
}

.lang-btn:hover { background: rgba(255,255,255,0.25); }
.lang-arrow { font-size: 10px; }

.lang-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    min-width: 150px;
    z-index: 2000;
}

.lang-dropdown.open { display: block; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    transition: background 0.2s;
    font-family: var(--font-body);
}

.lang-option:hover { background: var(--light); }
.lang-option.active { background: var(--light); font-weight: 700; }

/* BOUTON HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--white);
    cursor: pointer;
    justify-self: end;
}

/* ===========================
   SECTION 1 — ACCUEIL
=========================== */
.s1 {
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.s1::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: #EBD5D5;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 0;
}

.s1::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: #8B5E4C;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.s1-logo-circle {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(104,84,84,0.15);
}

.s1-logo-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* .s1-logo-bg supprimé */

.hero-content { z-index: 1; padding: 2rem; }

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    animation: fadeDown 0.6s ease both;
    font-family: var(--font-body);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.3rem;
    line-height: 1.1;
    animation: fadeDown 0.7s ease 0.1s both;
    font-family: var(--font-title);
    font-style: italic;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--primary);
    font-weight: 400;
    margin: 0.3rem 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeDown 0.7s ease 0.2s both;
    font-family: var(--font-body);
    opacity: 0.7;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--secondary);
    margin: 1rem auto;
    border-radius: 2px;
    animation: fadeDown 0.7s ease 0.3s both;
}

.slogan-wrap { overflow: hidden; margin-bottom: 2rem; }

.hero-slogan {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    animation: slideUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s both;
    font-family: var(--font-body);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease 0.6s both;
    transition: background 0.25s, transform 0.2s;
    font-family: var(--font-body);
}

.hero-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* ===========================
   SECTION 2 — PRÉSENTATION
=========================== */
.s2 {
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

.s2 .fp-overflow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.s2 .content {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    width: 100%;
}

.presentation-text { text-align: left; }

.section-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.presentation-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem;
    line-height: 1.3;
    font-family: var(--font-title);
    font-style: italic;
}

.presentation-text p {
    font-size: 15px;
    color: var(--primary);
    line-height: 1.9;
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.presentation-infos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 1.2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    font-family: var(--font-body);
}

.maps-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.25s, transform 0.2s;
    margin-top: 0.5rem;
    font-family: var(--font-body);
}

.maps-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.presentation-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.presentation-image img {
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(104,84,84,0.2);
    object-fit: cover;
    height: 380px;
    display: block;
    margin: 0 auto;
}

/* ===========================
   SECTION 3 — PORTFOLIO
=========================== */
.s3 {
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.s3 .fp-overflow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.portfolio-container {
    text-align: center;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto;
}

.portfolio-container h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0 1.5rem;
    font-family: var(--font-title);
    font-style: italic;
}

.portfolio-slider {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.slider-viewport {
    width: 100%;
    max-width: 700px;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(104,84,84,0.2);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.slider-arrow {
    background: var(--secondary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-arrow:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light);
    cursor: pointer;
    transition: background 0.25s;
}

.dot.active {
    background: var(--secondary);
}

/* ===========================
   SECTION 4 — SERVICES
=========================== */
.s4 {
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.s4 .fp-overflow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.services-container {
    text-align: center;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

.services-container h2 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 38px;
    font-family: var(--font-title);
    font-style: italic;
}

.services-list {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.presta-btn {
    padding: 10px 16px;
    background: var(--background);
    color: var(--primary);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.25s, color 0.25s;
    font-family: var(--font-body);
}

.presta-btn:hover { background: var(--secondary); color: var(--white); }
.presta-btn.active { background: var(--primary); color: var(--white); }

.service-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 4px 20px rgba(104,84,84,0.1);
}

.img-wrap {
    flex: 0 0 340px;
    max-width: 340px;
    border-radius: 12px;
    overflow: hidden;
}

.img-wrap img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    animation: slideFromRight 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-info {
    flex: 1;
    text-align: left;
    animation: fadeIn 0.5s ease;
}

.service-info h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.6rem;
    font-family: var(--font-title);
    font-style: italic;
}

.service-info p {
    font-size: 14px;
    color: var(--primary);
    line-height: 1.8;
    margin: 0 0 1rem;
    font-family: var(--font-body);
    opacity: 0.8;
}

.service-tag {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-family: var(--font-body);
}
a.service-tag {
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
    transition: background 0.25s, transform 0.2s;
    display: inline-block;
}

a.service-tag:hover {
    background: var(--secondary);
    transform: scale(1.05);
}
/* ===========================
   SECTION 5 — CONTACT
=========================== */
.s5 {
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
}

.contact-box {
    text-align: center;
    padding: 1rem 0;
}

.contact-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.3rem;
    margin: 0 0 0.5rem;
    font-family: var(--font-title);
    font-style: italic;
}

.contact-box p {
    font-size: 14px;
    color: var(--secondary);
    margin: 0 0 1rem;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.25s, transform 0.2s;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.wa-btn:hover {
    background: #1ebe5d;
    transform: scale(1.05);
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--light);
    color: var(--primary);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.25s, transform 0.2s;
    font-family: var(--font-body);
}

.email-btn:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideFromRight {
    from { transform: translateX(60px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BOUTONS GÉNÉRIQUES
=========================== */
button:not(.presta-btn):not(.lang-btn) {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* ===========================
   RTL (Arabe)
=========================== */
[dir="rtl"] .presentation-text { text-align: right; }
[dir="rtl"] .service-info { text-align: right; }
[dir="rtl"] .nav-title { text-align: right; }
[dir="rtl"] .info-item { flex-direction: row-reverse; }

/* ===========================
   RESPONSIVE MOBILE
=========================== */
@media (max-width: 768px) {

    #fp-nav { display: none !important; }

    .navbar {
        grid-template-columns: 1fr auto auto;
        padding: 0 15px;
        gap: 10px;
    }

    .nav-title { font-size: 18px; }

    .menu-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        width: 220px;
        display: none;
        padding: 20px;
        gap: 20px;
    }

    .nav-links.active { display: flex; }

    .lang-switcher { grid-column: 2; }
    .menu-toggle { grid-column: 3; }

    .hero-title { font-size: 38px; }
    .hero-badge { font-size: 10px; padding: 5px 12px; letter-spacing: 1px; }
    .hero-slogan { font-size: 11px; letter-spacing: 2px; }
    .hero-btn { font-size: 13px; padding: 12px 24px; }

    .s2 { padding: 0 20px; }
    .presentation-grid { grid-template-columns: 1fr; }
    .presentation-image { display: none; }
    .presentation-text h2 { font-size: 28px; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid img { height: 120px; }

    .services-container { width: 95%; }
    .service-card { flex-direction: column; padding: 1rem; }
    .img-wrap { flex: none; width: 100%; max-width: 100%; }
    .img-wrap img { height: 160px; }
    .service-info { text-align: center; }

    .wa-btn { font-size: 15px; padding: 14px 24px; }
}
a.service-tag {
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
    transition: background 0.25s, transform 0.2s;
    cursor: pointer;
}

a.service-tag:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* ===========================
   SECTION CONTACT (s5)
=========================== */
.s5 .contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.s5-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 1rem 2rem 0 2rem;
    overflow-y: auto;
}

.footer-divider {
    width: 60%;
    border: none;
    border-top: 1px solid rgba(104, 84, 84, 0.2);
    margin: 1rem 0;
}

/* ===========================
   FOOTER
=========================== */
footer.site-footer {
    position: relative;
    z-index: 100;
    width: 100%;
}

.site-footer {
    background: var(--primary);
    color: var(--light);
    font-family: var(--font-body);
    width: 100%;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(235, 213, 213, 0.2);
}

.footer-col + .footer-col {
    border-left: 1px solid rgba(235, 213, 213, 0.15);
    padding-left: 40px;
}

.footer-title {
    font-family: var(--font-title);
    font-size: 38px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 10px;
    letter-spacing: 1px;
    line-height: 1.1;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 0;
    font-style: italic;
}

.footer-heading {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 18px;
    letter-spacing: 0.5px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--light);
}

.footer-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.7;
}

.footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    font-size: 13.5px;
    font-family: var(--font-body);
    padding: 12px 20px;
    border: 1px solid rgba(235, 213, 213, 0.3);
    border-radius: 2px;
    letter-spacing: 0.5px;
    transition: background 0.25s, border-color 0.25s;
}

.footer-wa:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding: 0.8rem;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.15);
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: rgba(235, 213, 213, 0.6);
    letter-spacing: 1px;
}

/* ===========================
   FOOTER — RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 36px 24px 28px;
        gap: 32px;
    }

    .footer-col + .footer-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(235, 213, 213, 0.15);
        padding-top: 28px;
    }

    .footer-title { font-size: 30px; }

    .footer-bottom { padding: 14px 24px; }
}

[dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .footer-col + .footer-col {
    border-left: none;
    border-right: 1px solid rgba(235, 213, 213, 0.15);
    padding-left: 0;
    padding-right: 40px;
}
[dir="rtl"] .footer-list li { flex-direction: row-reverse; }