/* -------------------------------------------
   Section 1 - Hero
------------------------------------------- */
.hero-section {
    position: relative;
    background-image: url('https://www.ecomelio.fr/images/barres.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: #111111;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 0.38vw + 0.8rem, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3.5rem, 2.63vw + 2.99rem, 5.25rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Tiempos Headline', 'Lucida', Georgia, serif;
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(1.125rem, 0.56vw + 1.02rem, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    margin-bottom: 40px;
}

.hero-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ffffff;
    color: #111111;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.hero-button:hover {
    background-color: #f0f0f0;
}

/* -------------------------------------------
   Section 2 - Présentation
------------------------------------------- */
.hero-section-2 {
    padding: 100px 20px;
    position: relative;
    z-index: 8;
}

/* Centre et borne la grille interne de la section 3 */
.section-content {
  max-width: 1200px;         /* largeur max du contenu */
  width: 100%;
  margin: 0 auto;            /* centre horizontalement */
  padding-left: clamp(16px, 5vw, 40px);
  padding-right: clamp(16px, 5vw, 40px);
  /* on garde tes règles existantes */
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

/* Contenu textuel */
.text-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.text-content .title {
    font-size: clamp(2.5rem, 1.69rem + 4.14vw, 5.25rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Tiempos Headline', 'Lucida', Georgia, serif;
    line-height: 1.16;
    margin-bottom: 20px;
}

.text-content .subtitle {
    font-size: clamp(1.125rem, 1.02rem + 0.56vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    margin-bottom: 30px;
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #111111;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    margin-bottom: 30px;
}

.cta-button:hover {
    background-color: #333333;
}

/* Image */
.media-content {
    flex: 1;
    max-width: 700px;
    overflow: hidden;
    text-align: center;
}

.background-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

/* Section Points Clés */
.key-points {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    padding: 0 20px;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

.key-point {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex: 1;
    max-width: 300px;
    padding: 20px;
}

.key-point h3 {
    font-size: clamp(1.5rem, 1.39rem + 0.56vw, 1.875rem);
    font-weight: 500;
    letter-spacing: -0.0075em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    margin-bottom: 10px;
}

.key-point p {
    font-size: clamp(1.125rem, 1.02rem + 0.56vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

/* Responsive petits écrans */
@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
        align-items: center;
        padding: 20px 20px;
    }

    .text-content {
        text-align: center;
    }

    .media-content {
        order: 2;
        margin-top: 20px;
    }

    .key-points {
        flex-direction: column;
        border-top: none;
        border-bottom: none;
        align-items: center;
    }

    .key-point {
        border-bottom: 1px solid #e1e1e1;
        text-align: center;
    }

    .key-point:last-child {
        border-bottom: none;
    }
}

/* -------------------------------------------
   Section 3 - Low-Fee Investing
------------------------------------------- */
.low-fee-investing {
    --background: #fbf9f9;
    background-color: var(--background);
    padding: 100px 20px;
    text-align: left;
}

/* Centre et borne la grille interne de la section 3 */
.low-fee-investing .section-content {
  max-width: 1200px;         /* largeur max du contenu */
  width: 100%;
  margin: 0 auto;            /* centre horizontalement */
  padding-left: clamp(16px, 5vw, 40px);
  padding-right: clamp(16px, 5vw, 40px);
  /* on garde tes règles existantes */
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.low-fee-investing .text-content .title {
    font-size: clamp(2.5rem, 1.69rem + 4.14vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.0075em;
    line-height: 1.16;
}

.low-fee-investing .text-content .subtitle {
    font-size: clamp(1.125rem, 0.56vw + 1.02rem, 1.5rem);
    font-weight: 400;
    line-height: 1.24;
}

.low-fee-investing .cta-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.low-fee-investing .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #111111;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.low-fee-investing .cta-button:hover {
    background-color: #333333;
}

/* Image */
.low-fee-investing .media-content img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
}

/* Responsive petits écrans */
@media (max-width: 768px) {
    .low-fee-investing .section-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .low-fee-investing .text-content {
        text-align: center;
    }

    .low-fee-investing .cta-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 20px;
    }

    .low-fee-investing .cta-button {
        width: auto;
    }
}

/* -------------------------------------------
   Section 4 - Trusted By
------------------------------------------- */
.trusted-by-section {
    background-color: var(--background);
    padding: 100px 20px;
    position: relative;
    z-index: 7;
}

.trusted-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    padding: 20px;
    flex-direction: row;
}

.image-block {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
}

.image-block img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 15px;
    object-fit: cover;
}

.text-block {
    flex: 1;
    max-width: 50%;
}

.text-block h2 {
    font-size: clamp(2.25rem, 1.74rem + 2.63vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Tiempos Headline', Georgia, serif;
    line-height: 1.16;
    margin-bottom: 20px;
}

.text-block p {
    font-size: clamp(1.125rem, 1.02rem + 0.56vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
}

/* Statistiques */
.trusted-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1;
    text-align: center;
}

.stat-item {
    flex: 1;
    padding: 20px;
}

.stat-item h3 {
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.5rem);
    font-weight: 600;
    font-family: 'Tiempos Headline', Georgia, serif;
    line-height: 1.2;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: clamp(1rem, 0.8rem + 0.5vw, 1.25rem);
    font-weight: 400;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.4;
}

.stat-item:not(:last-child) {
    border-right: 1px solid #d1d1d1;
    padding-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .text-block {
        order: 1;
        max-width: 100%;
    }
    .image-block {
        order: 2;
        max-width: 100%;
    }
    .trusted-stats {
        flex-direction: column;
    }
    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #d1d1d1;
        padding-bottom: 20px;
    }
}

/* -------------------------------------------
   Section 4b - Investissement Immobilier Fractionné
------------------------------------------- */
.fractional-investment-section {
    --background: #faf9f9;
    --text-color: #111111;

    background-color: var(--background);
    color: var(--text-color);
    padding: 100px 20px;
    position: relative;
    z-index: 2;
}

.fractional-investment-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.fractional-header {
    text-align: center;
    margin-bottom: 40px;
}

.fractional-title {
    font-size: clamp(2.5rem, 2.26vw + 2.06rem, 4rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Tiempos Headline', Georgia, serif;
    line-height: 1.16;
    margin-bottom: 20px;
}

.fractional-subtitle {
    font-size: clamp(1.125rem, 0.56vw + 1.02rem, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fractional-cta {
    display: inline-block;
    padding: 15px 30px;
    background-color: #111111;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
}

.fractional-cta:hover {
    background-color: #333333;
}

/* Séparateur (optionnel) */
.fractional-separator {
    width: 80%;
    max-width: 800px;
    border: none;
    margin: 40px auto;
}

.fractional-content-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Partie gauche : texte + liste numérotée */
.fractional-content-text {
    flex: 1;
    max-width: 600px;
}

.fractional-content-text h3 {
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
    font-family: 'Tiempos Headline', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.16;
    margin-bottom: 20px;
}

/* Liste numérotée */
.numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.numbered-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* Cercle autour du chiffre */
.number-circle {
    width: 40px;
    height: 40px;
    background-color: #111;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
    margin-right: 10px;
    flex-shrink: 0; /* IMPORTANT pour éviter l'écrasement en flex */
}

/* Texte à côté du cercle */
.numbered-list li p {
    font-size: clamp(1.125rem, 0.56vw + 1.02rem, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Partie droite : image */
.fractional-content-image {
    flex: 1;
    max-width: 500px;
    overflow: hidden;
    text-align: center;
}

.fractional-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .fractional-content-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .fractional-content-text,
    .fractional-content-image {
        max-width: 100%;
    }
    .fractional-content-text h3 {
        text-align: center;
    }
    .numbered-list li {
        flex-direction: column;
        align-items: center;
    }
    .numbered-list li p {
        text-align: center;
        margin-top: 10px;
    }
}

/* -------------------------------------------
   Section 5 & 6 - Earnings / Features
------------------------------------------- */
.custom-investing-section {
    background-color: #fcfcfc;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(2.25rem, 1.74rem + 2.63vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: "Tiempos Headline", Georgia, serif;
    line-height: 1.16;
}

.separator-line {
    width: 100%;
    max-width: 80%;
    height: 1px;
    background-color: #d1d1d1;
    margin: 20px auto;
}

/* Feature Blocks */
.feature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.feature-text {
    max-width: 500px;
    font-family: "Futura PT", sans-serif;
}

.feature-category {
    font-size: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 5px;
}

.feature-text h3 {
    font-size: clamp(2.25rem, 1.88rem + 1.88vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.0075em;
    line-height: 1.16;
    margin-top: 10px;
}

.feature-text p {
    font-size: clamp(1.125rem, 1.02rem + 0.56vw, 1.5rem);
    line-height: 1.5;
    color: #111111;
    margin: 10px 0;
}

/* Image Align Right */
.feature-media {
    align-self: right;
}

.feature-media img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

/* Responsive */
@media (min-width: 768px) {
    .feature-block {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    .feature-text {
        max-width: 50%;
    }
    .feature-media {
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    .feature-block {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .feature-media {
        align-self: center;
    }
}

/* -------------------------------------------
   Section 5c - Entreprises
------------------------------------------- */

.section-entreprise {
    position: relative;
    padding: 100px 20px;
    background-color: #f8f8f8;
    z-index: 8;
}

/* Contenu principal de la section */
.section-entreprise .section-content {
  max-width: 1200px;         /* largeur max du contenu */
  width: 100%;
  margin: 0 auto;            /* centre horizontalement */
  padding-left: clamp(16px, 5vw, 40px);
  padding-right: clamp(16px, 5vw, 40px);
  /* on garde tes règles existantes */
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

/* Contenu textuel */
.section-entreprise .text-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

/* Sous-titre de la section */
.section-entreprise .hero-subtitle {
    font-size: clamp(0.875rem, 0.38vw + 0.8rem, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Titre principal */
.section-entreprise .title {
    font-family: 'Tiempos Headline', 'Lucida', Georgia, serif;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 1.69rem + 4.14vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.0075em;
    line-height: 1.16;
}

/* Sous-titre */
.section-entreprise .subtitle {
    font-size: clamp(1.125rem, 1.02rem + 0.56vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    margin-bottom: 30px;
}

/* Bouton d'appel à l'action */
.section-entreprise .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #111111;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    margin-bottom: 30px;
}

.section-entreprise .cta-button:hover {
    background-color: #333333;
}

/* Contenu image */
.section-entreprise .media-content {
    flex: 1;
    max-width: 700px;
    overflow: hidden;
    text-align: center;
}

.section-entreprise .background-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

/* Responsivité pour petits écrans */
@media (max-width: 768px) {
    .section-entreprise .section-content {
        flex-direction: column-reverse;
        align-items: center;
        padding: 20px 20px;
    }

    .section-entreprise .text-content {
        text-align: center;
    }

    .section-entreprise .media-content {
        order: 2;
        margin-top: 20px;
    }
}


/* -------------------------------------------
   Section 7 - Ils nous soutiennent / parlent de nous
------------------------------------------- */
.support-and-media-section {
    padding: 100px 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.support-section,
.media-section {
    flex: 1 1 45%;
    text-align: center;
}

.support-section h2,
.media-section h2 {
    font-family: 'Tiempos Headline', 'Lucida', Georgia, serif;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 1.69rem + 4.14vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.0075em;
    line-height: 1.16;
}

.logos-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .support-and-media-section {
        flex-direction: column;
        align-items: center;
    }
    .support-section,
    .media-section {
        flex: 1 1 100%;
        max-width: 300px;
    }
    .logos-container {
        justify-content: center;
    }
    .logo {
        max-width: 75px;
    }
}
