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

html {
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--first-color);
    
}

/* Variables CSS */
:root {
    --first-color: #FAEFED;
    --second-color: #EFCCC7;
    --third-color: #822634;
    --fourth-color2: #F4B4A7;
    --fourth-color: #C9727A;
    --accent-color: #2D3142;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --border: #f0f0f0;
    --shadow: rgba(248, 183, 201, 0.15);
    --gradient: linear-gradient(135deg, #f8b7c9, #e6e6fa);

    --main-font: 'Playfair Display', serif;
    --second-font: 'Rubik', sans-serif;
}

/* Navigation */
.scrolled-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    box-shadow: 2px 2px 10px var(--accent-color);
}

.scrolled-navbar.scrolled {
    transform: translateY(0);
    opacity: 1;
}

.navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
    background: white;
    color: var(--accent-color);
    padding: 1rem;
    gap: 1rem;
    box-shadow: 2px 2px 10px var(--accent-color);
    margin-bottom: 0.6rem;
}

.navbar-top {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--third-color);
    position: relative;
    padding: 0 1rem;
}

.navbar-top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    border-bottom: 2px solid var(--accent-color);
}

.nav-logo span {
    color: var(--fourth-color2);
}

.nav-logo h2 {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 3rem;
    font-family: 'Cormorant', serif;
    font-variant: small-caps;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.socials-mobile, .nav-menu .btn {
    display: none;
}

.socials-links i {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.socials-links i:hover {
    color: var(--fourth-color2);
}

.socials-links   {
    display: flex;
    align-items: center;
    color: black;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
    color: var(--accent-color);
    position: relative;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.nav-link::after, .social p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--second-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .social p:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 2%;
    top: 5%;
}

/* Section Hero */
.hero {
    background: url('assets/hero-bg.webp');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    padding: 2rem;
    min-height: 100vh;
}

.hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
}

.hero-text {
    width: 60%;
    margin-top: 3rem;
}

.hero-img {
    position: relative;
    width: 30%;
    border: 3px solid var(--accent-color);
    border-radius: 350px 350px 0 0;
    padding: 1rem;
}

.hero-img::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--accent-color);
    border-radius: 350px 350px 0 0;
}

.hero-img i {
    position: absolute;
    top: 0;                /* bord supérieur */
    left: 50%;             /* centre horizontal */
    transform: translate(-50%, -50%); /* chevauche la bordure */
    font-size: 1.5rem;
    color: var(--accent-color)
}

.hero-img .gold-leaf {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(-50%, 20%);
    width: 50%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.hero-img img {
    width: 100%;
    border-radius: 250px 250px 0 0;
}

.second-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 2rem;
    font-variant: small-caps;
    color: var(--fourth-color);
}

.hero-content h1 {
    font-size: 5rem;
    font-family: 'Cormorant', serif;
    color: var(--accent-color);
    font-weight: 600;
    line-height: 5rem;
}

.subtext {
    font-size: 4rem;
    font-family: 'Over the Rainbow', cursive;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--second-color);
    text-align: center;
}

.subtitle {
    font-family: 'Cormorant', serif;
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent-color);
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    background: var(--fourth-color2);
    color: black;
    font-family: var(--second-font);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--fourth-color);
    height: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--accent-color);
}

.btn:hover::before {
    height: 100%;
}

.socials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.socials-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Cormorant', serif;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.3s ease;
}


/* Sections communes */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    font-family: var(--main-font);
    color: var(--text-dark);
}

.section-header h3 {
    font-family: 'Over the Rainbow', cursive;
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-family: var(--second-font);
    font-weight: 300;
    margin: 0 auto;
}

#visual {
    width: 100%;
    display: block;
    height: auto;
}

/* Section Formations */
.formations {
    margin-top: -7rem;
    position: relative;
    color: white;
}

.formation-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('assets/testformabg.webp');
    background-position: center;
    background-size: cover;
    z-index: 0;
}

.formation-header-container {
    background: var(--fourth-color2);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.formation-header {
    justify-content: flex-start;
    width: 60%;
}

.formation-header h2 {
    color: white;
}

.formation-header p {
    font-family: 'Over the Rainbow', cursive;
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--text-dark);
}

.formation-header h3 {
    color: black;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
}

.formation-header-img {
    width: 30%;
    height: auto;
    margin-top: -5rem;
    box-shadow: 0 0 5px var(--first-color);
    object-fit: cover;
}

.formations span {
    color: var(--fourth-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.formation-btn {
    margin-top: 2rem;
    position: relative;
    display: flex;
    gap: 1rem;
}

.formation-btn .btn {
    background: var(--fourth-color);
}

.formation-btn .btn::before {
    background: var(--second-color);
}

.formation-content {
    background: var(--fourth-color2);
    display: flex;
    flex-direction: column;
    padding: 3rem 10rem;
}

.formation-content p {
    color: white;
    text-align: center;
    z-index: 1;
}

.formation-content-description {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.formation-content-description h3, .formation-content-description h4 , .formation-content-description p, .formation-content-description ul {
    font-family: var(--second-font);
    color: white;
}

.formation-content-description h3 {
    color: var(--fourth-color);
    text-align: center;
    font-weight: 500;
    font-size: 2rem;
}

.formation-content-description h4 {
    font-weight: 400;
    font-size: 1.6rem;
    font-style: italic;
    text-align: center;
}

.formation-content-description p {
    font-weight: 300;
    font-size: 1.2rem;
    text-align: center;
}

.formation-content-description ul {
    font-weight: 300;
    font-size: 1.2rem;
}

.formation-container-logo {
    width: 15%;
    height: auto;
}

.prices-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 2rem;
}

.price-table {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    box-shadow: 0 0 10px 1px var(--second-color);
    font-family: var(--second-font);
}

.price2 {
    background: var(--second-color);
}

.formation-description-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--fourth-color);
    text-align: center;
}

.formation-description-price {
    font-size: 3rem;
    font-weight: 600;
    font-family: var(--main-font);
    color: var(--fourth-color);
}

.price2 .formation-description-price, .price2 .formation-description-title {
    color: white;
}

.formation-description-price span {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
}

.separatorlist {
    width: 100%;
    height: 1px;
    background: var(--fourth-color);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.price2 .separatorlist {
    background: white;
}

.formation-download {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Section Services */
.services {
    padding: 2rem
}

.services h3 {
    font-size: 2.5rem;
    color: var(--third-color);
    margin-bottom: -1rem;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 5rem;
}

.service-card {
    position: relative;
    width: 30%;
    height: 600px;
}

.service-card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-card:hover img {
    scale: 1.05;
}

.services-container {
    display: flex;
    justify-content: center;
    min-height: 500px;
    box-shadow: 0 0 10px 1px var(--second-color);
}

.service {
    width: 33.33%;
    background: var(--second-color);
    color: white;
    font-family: var(--second-font);
    display: flex;
    flex-direction: column;
}

.service img, .service-content {
    width: 100%;
    flex: 1;
}

.service img {
    object-fit: cover;
    display: block;
}

.service-content {
    width: 80%;
    height: 400px;
    padding: 2.5rem 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--first-color);
    transform: translate(-50%, -10%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.top-line {
    width: 100%;
    border-bottom: 1px solid var(--third-color);
    position: relative;
}

.top-line::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    border-bottom: 2px solid var(--accent-color);
}

.bot-line {
    width: 100%;
    border-top: 2px solid var(--accent-color);
}

.service-content h3 {
    font-family: var(--main-font);
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    min-height: 5em;
}

.service-content span {
    color: var(--third-color);
    font-weight: 200;
}

.service-content .btn {
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.instalink {
    text-align: center;
    width: 30%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


/* Section À propos */

.about-content {
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--third-color);
}

.about-content > p {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-features {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 3rem;
}

.feature {
    text-align: center;
    width: 24%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature img {
    width: 150px;
    transition: all 0.3s ease;
}

.feature img:hover {
    scale: 1.1;
    rotate: 5deg;
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Section Témoignages */
.testimonials {
    padding: 0 3rem;
}

.testimonials h3 {
    color: var(--third-color);
    font-size: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--second-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 0 10px var(--fourth-color);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.prestation-show {
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
}

.prestations-counter {
    text-align: center;
}

.prestations-counter img {
    width: 100px;
    height: auto;
}

.prestations-counter h2 {
    font-family: var(--main-font);
    font-weight: 500;
}

.prestations-counter p {
    color: var(--fourth-color2);
    font-family: var(--second-font);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 2rem;
}

.prestations-staring {
    text-align: center;
}

/* Section Contact */
.contact {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 0 5rem;
    display: flex;
    justify-content: center;
}

.contact-container {
    display: flex;
    width: 70%;
    box-shadow: 0 0 10px var(--fourth-color);
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--second-color);
    font-family: var(--second-font);
    text-align: center;
    gap: 1rem;
}

.contact-form h3 {
    color: var(--fourth-color);
    font-family: 'Over the Rainbow', cursive;
    font-size: 1.6rem;
}

.contact-form h2 {
    font-family: var(--main-font);
    font-size: 3rem;
    font-weight: 500;
}

.form-group {
    width: 80%;
    position: relative;
}

.form-group textarea {
    resize: none;
}

/* Ton style existant pour les inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 2rem;
    border: 1px solid transparent;
    font-size: 1rem;
    color: black;
    font-family: var(--second-font);
    transition: all 0.3s ease;
    background: white;
}

/* Focus existant corrigé */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border: 1px solid var(--fourth-color);
    box-shadow: 0 0 10px var(--fourth-color);
}

/* --- Floating Label visible --- */
.form-group label {
    position: absolute;
    left: 2rem;
    top: 1.2rem;
    font-size: 1rem;
    color: black;
    pointer-events: none;
    transition: 0.25s ease;
    opacity: 0.7; /* visible mais discret */
}

/* Quand l’input est focus OU rempli */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 1.6rem; /* légère compensation esthétique */
    font-size: 0.75rem;
    opacity: 1;
    background: white;
    padding: 0 0.5rem;
    border: 1px solid var(--fourth-color);
}

.btn-send {
    font-weight: 400;
}

/* Footer */
.footer-content, .footer-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    font-family: var(--second-font);
    text-align: center;
    color: white;
    font-weight: 300;
}

.footer h3 {
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-content a, .footer-content p {
    text-decoration: none;
    font-weight: 400;
    font-style: italic;
    color: black;
}

.footer-content {
    justify-content: space-around;
    background: var(--fourth-color);
    padding: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 200px;
}

.footer-brand-socials {
    display: flex;
    gap: 1rem;
}

.footer-brand-socials h3 {
    margin-bottom: 2rem;
}

.footer-brand-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    width: 50px;
    height: 50px;
    position: relative;
}

.footer-brand-socials a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--third-color);
    height: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.footer-brand-socials a:hover::before {
    height: 100%;
}

.footer-brand-socials img {
    width: 32px;
    z-index: 1;
}

.footer-bottom {
    background: var(--third-color);
    flex-direction: column;
}

.footer-bottom a {
    color: white;
}

@media (max-width: 1080px) {
    .formation-description-price {
        font-size: 2rem;
        font-weight: 600;
        font-family: var(--main-font);
        color: var(--fourth-color);
    }

    .service-container {
        justify-content: center;
    }

    .service-card {
        width: 60%;
    }

}


@media (max-width: 900px) {

    .hero {
        padding: 1rem;
        margin-bottom: 3rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-img {
        width: 50%;
    }

    .second-title {
        display: none;
    }

    .hero-text {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .contact-container {
        width: 100%;
    }

    .contact-img {
        width: 100%;
        height: 100px;
    }

    .contact-form {
        width: 100%;
    }

    .formation-bg {
        display: none;
    }

    .formation-header-container {
        flex-direction: column;
        align-items: center;
    }

    .formation-header {
        width: 100%;
    }

    .formation-header-img {
        width: 50%;
        margin-top: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation mobile */
    .scrolled-navbar {
        display: none;
    }

    .navbar {
        position: fixed;
        top: 0;
        padding: 0.5rem;
        box-shadow: 2px 2px 10px var(--accent-color);
    }

    .hamburger {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        background: var(--first-color);
        border-bottom: 1px solid var(--accent-color-2);
    }

    .nav-menu.active {
        left: 0;
    }

    .socials-mobile {
        display: flex;
        align-items: center;
        align-self: center;
        gap: 1rem;
    }

    .nav-menu li:last-child .btn {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-menu li:last-child {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .socials-mobile i {
        font-size: 2rem;
        transition: all 0.3s ease;
    }

    .socials-mobile i:hover {
        color: var(--fourth-color);
        scale: 0.8;
    }

    .socials-links {
        display: none;
    }

    .nav-menu a {
        color: var(--accent-color-2);
        font-size: 1.3rem;
        text-decoration-thickness: 4px;
        text-underline-offset: 5px;
    }

    .nav-logo h2 {
    font-size: 2.5rem;
    }   

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero responsive */
    .hero {
        margin-top: 50px;
        margin-bottom: 5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 4rem;
    }

    .hero-img {
        width: 60%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Sections responsive */
    .section-header h2 {
        font-size: 2.5rem;
    }

    .formation-header-container {
        padding: 0 2rem;
    }

    .formation-content {
        padding: 3rem;
    }

    .formation-container-logo {
        width: 30%;
    }

    .prices-container {
        flex-direction: column;
        align-items: center;
    }

    .price-table {
        width: 60%;
    }

    .formation-description-title {
        font-size: 1.5rem;
    }

    .formation-description-price {
        font-size: 4rem;
    }

    .service-container {
        padding: 1rem;
    }

    .service-card {
        width: 80%;
    }

    .instalink {
        width: 60%;
    }

    .about-features {
        flex-direction: column;
    }

    .feature {
        width: 100%;
    }

    .contact {
        padding: 0 2rem;    
    }

    .form-group {
        width: 100%;
        position: relative;
    }

    .footer-content {
        flex-direction: column;
        padding: 2rem 0;
        gap: 2rem;
    }

    .footer-brand {
        flex: 0 0 auto;
    }

    /* Espacement mobile */
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {

    .hero {
        padding: 0 1rem;
        margin-bottom: 6rem;
    }

    .hero-img {
        width: 80%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .formation-header {
        padding: 0 1rem;
    }

    .formation-header-img {
        width: 80%;
    }

    .formation-content {
        padding: 1rem;
    }

    .price-table {
        width: 80%;
    }

    .service-card {
        width: 100%;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form h2 {
        font-size: 2.6rem;
    }
}