@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Outfit:wght@100..900&display=swap');

/* --- 1. Variables & Base --- */
:root {
    --ink: #1a1510;
    --parch: #f5f0e8;
    --parch-op: #f5f0e8d0;
    --sepia: #9c7c50;
    --sepia-light: #c4a882;
    --sepia-ultralight: #e4c8a1;
    --gold: #b8922a;
    --warm: #ede8de;
    --border-style: rgba(156, 124, 80, 0.25) 1px solid;
}

* {
    padding: 0;
    margin: 0;
}

html {
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    scroll-behavior: smooth;
}
body {
    background-color: var(--parch);
    /* The first layer is the noise, the second is your variable color */
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay; /* This blends the noise with your --parch color */
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- 2. Typographie --- */
.text-regular {
    line-height: 1.5rem;
    font-weight: 300;
}

.text-small {
    line-height: 1.5rem;
    font-weight: 300;
    font-size: .8rem;
}

h1, h2, h4 {
    font-family: "Fraunces", serif;
}

h1 {
    font-weight: 300;
    font-size: 4rem;
}

h1 span {
    color: var(--sepia);
    font-weight: 400;
    font-style: italic;
}

h2.section-title {
    font-weight: 400;
    font-style: italic;
    font-size: 3rem;
}

.overline {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1rem;
    color: var(--sepia);
}

h4 {
    font-weight: 300;
    font-size: 1.3rem;
}

/* --- 3. Composants Réutilisables --- */
.button {
    display: inline-block;
    color: white;
    background-color: var(--ink);
    padding: 8px 16px;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.button:hover {
    background-color: var(--sepia);
}

.button--header {
    background-color: var(--sepia);
}

.button--header:hover {
    background-color: var(--sepia-light);
}

.section-divider {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 55%;
}

.section-divider__line {
    height: 1px;
    width: 100%;
    background-color: var(--sepia-light);
}

.section-divider__circle {
    width: 8px;
    height: 8px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 1px solid var(--sepia-light);
}

.container-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.container-header p {
    width: 70%;
}

/* --- 4. Header --- */
.header {
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 16px 64px;
    border-bottom: var(--border-style);
    position: fixed;
    top: 0;
    z-index: 10;
    background-color: var(--parch-op);
    backdrop-filter: blur(50px);
}

.header__logo { width: 120px; }

.nav-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    gap: 32px; /* Plus flexible que width 20% */
}

.nav-list a{
    transition: .2s;
}

.nav-list a:hover{
    color: var(--sepia);
    transition: .2s;
}

/* --- 5. Main Content Structure --- */
.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content section {
    width: 55%;
    padding: 128px 0;
    box-sizing: border-box;
}

/* --- 6. Hero Section --- */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
}

.hero__content {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
}

.hero__img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 500px 500px 32px 32px;
    border: solid white 10px;
    transform: rotate(2deg);
    box-shadow: rgba(46,43,25,0.2) 0 0 16px 4px;
    justify-self: center;
    align-self: center;
}

/* --- 7. Steps Section (Methode) --- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.step-card {
    border: var(--border-style);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: white;
}

.step-card__number {
    font-size: 3rem;
    color: var(--sepia-light);
    font-family: "Fraunces";
    font-weight: 200;
}

.steps__legal-note {
    font-size: .7rem;
    text-align: center;
    color: var(--ink);
    opacity: 0.5;
}

/* --- 8. Testimonial Section --- */
.testimonial {
    background-color: var(--ink);
    width: 100% !important;
    display: flex;
    justify-content: center;
}

.testimonial__container {
    color: white;
    text-align: center;
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.testimonial__quote {
    font-size: 2rem;
    font-family: "Fraunces";
    font-style: italic;
    line-height: 100%;
}

.testimonial__author {
    font-weight: 300;
}

/* --- 9. Pricing Section (Offers) --- */
.pricing {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.pricing__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.offer-card {
    border: var(--border-style);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: white;
    transition: .2s;
}

.offer-card:hover{
    transform: translateY(-10px);
    transition: .2s;
}

.offer-card:last-of-type{
    background-color: var(--ink);
    color: white;
}

.offer-card:last-of-type .offer-card__button{
    background-color: var(--sepia-light);
    color: var(--ink);
}

.offer-card:last-of-type .offer-card__button:hover{
    background-color: var(--sepia-ultralight);
}

.offer-card__name { font-family: "Fraunces"; }

.offer-card__price {
    font-size: 3rem;
    color: var(--sepia-light);
    font-family: "Fraunces";
    font-weight: 200;
}

.offer-card__separator { opacity: 0.2; }

.offer-card__button {
    margin-top: 32px;
    text-align: center;
}

/* Featured card (Recommandé) */
.offer-card--featured {
    border: 4px solid var(--sepia-light);
    position: relative;
}

.offer-card--featured::before {
    content: "Recommandé";
    background-color: var(--sepia-light);
    position: absolute;
    width: 120px;
    height: 20px;
    text-align: center;
    color: white;
    padding: 8px;
    top: -20px;
    left: calc(50% - 68px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Upsell Card (Dernière carte noire) */
.upsell-card {
    background-color: white;
    color: var(--ink);
    padding: 40px 32px;
    border: var(--border-style);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upsell-card__header {
    display: flex;
    gap: 32px;
    align-items: center;
}

.upsell-card__badge {
    font-size: 2rem;
    color: var(--sepia-light);
    font-family: "Fraunces";
}

/* --- 10. Story Section --- */
.story {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.story .overline{
    text-align: center;
}

.story__container {
    text-align: center;
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.story__text {
    font-size: 1.5rem;
    font-family: "Fraunces";
    line-height: 120%;
}

/* --- 11. Footer --- */
.footer {
    padding: 64px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
    border-top: var(--border-style);
    background-color: var(--ink);
    color: white;
}

.footer__logo { width: 150px; }

.nav-list--footer {
    gap: 64px;
    font-weight: 200;
}

.nav-list--footer a{
    transition: .2s;
}

.nav-list--footer a:hover{
    text-decoration: underline;
    color: var(--parch);
    transition: .2s;
}

/* --- 12. Responsive Design --- */

/* Tablettes et petits écrans (1024px et moins) */
@media (max-width: 1024px) {
    main section, 
    .section-divider, 
    .testimonial__container, 
    .story__container {
        width: 85%; /* On élargit le contenu car l'écran est plus étroit */
    }

    .hero {
        gap: 32px;
    }

    h1 {
        font-size: 3rem;
    }
}

/* Smartphones (768px et moins) */
@media (max-width: 768px) {
    body{
        overflow-x: hidden;
    }
    /* Header */
    .header {
        padding: 16px 24px;
        height: auto;
    }

    .header__nav {
        display: none; /* Cache le menu classique sur mobile */
    }

    /* Hero Section */
    .hero {
        grid-template-columns: 1fr; /* On passe sur une seule colonne */
        height: auto;
        padding-top: 120px !important;
        text-align: center;
    }

    .hero__content {
        align-items: center;
    }

    .hero__img {
        width: 100%;
        max-width: 300px;
        border-radius: 16px;
        order: -1; /* Place l'image au-dessus du texte */
    }

    
    /* Règles générales pour les sections*/
    .main-content section{
        width: 80%;
    }

    .container-header p {
        width: 100%;
    }

    /* Grilles (Méthode et Offres) */
    .steps__grid, 
    .pricing__grid {
        grid-template-columns: 1fr; /* Une seule colonne pour les cartes */
    }

    /* Titres */
    h1 {
        font-size: 2.5rem;
    }

    h2.section-title {
        font-size: 2.2rem;
    }

    /* Témoignage et Histoire */
    .testimonial__quote,
    .story__text {
        font-size: 1.4rem;
    }

    /* Footer */
    .nav-list--footer {
        flex-direction: column;
        gap: 16px;
    }

    .footer {
        padding: 40px 24px;
        box-sizing: border-box;
    }

}