/* 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%;
}

.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 {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.section-header p {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-family: var(--second-font);
    font-weight: 300;
    margin: 0 auto;
}
/* Section Hero */
.hero {
    background-color: #f3f3f3;
    background: url('assets/hero-bg.webp');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    padding: 2rem;
    min-height: 90vh;
}

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

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

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

.hero-img::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--fourth-color2);
}

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

.hero-img img {
    width: 100%;
}

.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;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--accent-color);
}

.subtitle span {
    color: black;
    font-size: 1.8rem;
    font-weight: 700;
}

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

/* Section se former */
.formation, .formation2 {
    display: flex;
}

.formation-bg, .formation-bg2 {
    width: 40%;
}

.formation-bg {
    background: url('assets/nails-formation.webp');
    background-position: center;
    background-size: cover;
    min-height: 500px;
    border-right: 5px solid var(--fourth-color2);
}

.formation-bg2 {
    background: url('assets/nails-formation2.webp');
    background-position: center;
    background-size: cover;
    min-height: 500px;
    border-left: 5px solid var(--fourth-color2);
}

.formation-content {
    width: 60%;
    padding: 2rem 1rem;
}

.formation-content h3, .formation-content ul {
    align-self: center;
}

.formation-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.formation-content ul {
    padding: 1rem 2rem;
    text-align: center;
}

.formation-content ul li span {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: underline;
}

.formation3 {
    background: var(--second-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formation3-header p {
    text-align: center;
}

.formation3-content {
    width: 75%;
}

.separator {
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    margin: 1rem 0;
}

.formation3-description {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.formation3-description h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
}

.formation3-description h3 span {
    font-size: 1rem;
    font-weight: 300;
}

.formation-logo {
    background: var(--fourth-color2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.formation3-bot {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.formation3-bot-content {
    width: 70%;
}

.formation3-bot-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formation3-bot-img {
    width: 30%;
    padding: 0.5rem;
    border-radius: 500px;
    border: 3px solid var(--fourth-color2);
}

.formation3-bot h2 {
    font-size: 2rem;
    font-family: 'playfair display', serif;
    font-weight: 500;
}

.formation3-bot p, .formation3-bot ul {
    font-size: 1.1rem;
}

.formation3-bot ul {
    align-self: center;
    font-weight: 600;
}

.formation3-bot img {
    width: 100%;
    box-shadow: 2px 2px 10px var(--accent-color);
    border-radius: 500px;
}

/* Section price */
.formations-prices {
    margin-bottom: 2rem;
    padding: 2rem 0;
}

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

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

.price-table h3 {
    font-size: 2rem;
    font-family: 'Cormorant', serif;
    font-weight: 600;
}

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

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

.price-subtext {
    margin-top: -1.5rem;
    font-size: 0.7rem;
}

.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;
}

.startnow {
    position: relative;
    padding: 2rem;
    background: url('assets/startnowbg.webp');
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
}

.startnow-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.startnow .section-header {
    position: relative;
    z-index: 2;
    width: 60%;
    text-align: center;
}

.startnow .section-header p {
    font-weight: 400;
}

.startnow .btn {
    width: 50%;
    align-self: center;
}

.faq {
  background: var(--second-color);
  padding: 2rem;
  color: var(--accent-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.faq h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.4rem;
  text-align: center;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-item {
  width: 70%;
  background: var(--first-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.7s ease, border 0.1s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: var(--color-white);
  line-height: 1.6;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.5rem;
  border-top: 1px solid var(--third-color);
}
/* 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: 1200px) {
    .hero-img {
        border: none;
    }

    .hero-img::before {
        border: none;
    }

    .hero-img img {
        border: 1px solid var(--accent-color);
    }
}

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

@media (max-width: 900px) {

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

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

    .hero-img {
        width: 50%;
        border: 3px solid var(--accent-color);
    }

    .hero-img::before {
        border: 1px solid var(--fourth-color2);
    }

    .hero-img img {
        border: none;
    }

    .second-title {
        display: none;
    }

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

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

    .formation3-bot {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .formation3-bot-content {
        width: 100%;
    }

    .formation3-bot-img {
        width: 50%;
        display: flex;
        justify-content: center;
    }
}

/* 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);
    }

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

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

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

    .hero-img {
        width: 60%;
    }

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

    .formation2, .formation {
        flex-direction: column-reverse;
    }

    .formation-bg, .formation-bg2 {
        width: 100%;
        min-height: 250px;
        border: none;
    }

    .formation-content {
        width: 100%;
        padding: 2rem;
    }

    .formation3-content {
        width: 100%;
    }

    .formation3-description {
        flex-direction: column;
        text-align: center;
    }

    .formation-logo img {
        width: 75px;
        height: 75px;
    }

    .formation3-bot {
        width: 100%;
    }

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

    .price-table {
        width: 80%;
    }

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

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

    .startnow {
        padding: 1rem;
    }

    .startnow .section-header {
        width: 100%;
    }

    .faq-item {
        width: 100%;
    }

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

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

@media (max-width: 480px) {

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

    .section-header {
        padding: 0.5rem;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-img {
        width: 80%;
    }

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

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

    .subtitle {
        font-size: 1.5rem;
    }

    .formation3 {
        padding: 0.5rem;
    }

    .formation3-bot ul {
        text-align: center;
        text-decoration: underline;
        font-size: 1rem;
    }

    .formation3-bot-img {
        width: 85%;
    }

    .price-table {
        width: 95%;
    }
}