/* SECTION CTA */
.cta-grid {
    position: relative;
    width: 100%;
    background: var(--secondary);
    min-height: calc(100vh - var(--nav-height, 72px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cta-grid::before{
    content: "";
    position: absolute;
    top: -110px;
    left: 0;
    width: 100%;
    height: 140px;
    background: #f4e3dc; /* couleur de fond de la section précédente (offers) */
    clip-path: ellipse(110% 60% at 50% 100%);
    pointer-events: none;
    z-index: 2;
}

/* IMPORTANT : enlever les marges/paddings Bootstrap */
.cta-grid .row {
    margin: 0;
    flex: 1 1 0;
}
.cta-grid [class*="col-"] {
    padding: 0;
}

/* Hauteur des lignes (comme la photo) */
.sectionCtaRow1,
.sectionCtaRow2,
.sectionCtaRow3 {
    height: auto;
    flex: 1 1 0;
}

/* Les colonnes prennent toute la hauteur de la ligne */
.sectionCtaRow1 > div,
.sectionCtaRow2 > div,
.sectionCtaRow3 > div {
    height: 100%;
}

/* Images : elles doivent remplir la case (comme la photo) */
.cta-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* <-- clé pour le rendu */
    display: block;
}

/* Bloc vide en haut à gauche (comme la photo) */
.sectionCtaCol1 {
    background: var(--secondary);
}

/* Bloc vert au centre (comme la photo) */
.sectionCtaCol4 {
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.sectionCtaCol4 .btn {
    padding: 10px 25px;
    font-size: 1.05rem;
    background: var(--background);
    color: var(--primary);
    border: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover */
.sectionCtaCol4 .btn:hover {
    background: var(--primary);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Bas gauche : texte à gauche + petite image à droite, fond foncé */
.sectionCtaCol6 {
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
}

/* Le texte ressemble au bloc de la capture */
.sectionCtaCol6 p {
    color: #fff; /* si ton secondary est foncé */
    margin: 0;
    max-width: 260px;
    font-size: 0.95rem;
    line-height: 1.35;
}

/* L'image dans le bloc bas gauche doit être PETITE (pas full height) */
.sectionCtaCol6 img {
    width: 180px; /* ajuste la taille */
    height: 220px; /* ajuste la taille */
    object-fit: cover;
    border-radius: 4px; /* optionnel, proche rendu photo */
}

/* Responsive : empiler proprement */
@media (max-width: 768px) {
    .sectionCtaRow1,
    .sectionCtaRow2,
    .sectionCtaRow3 {
        height: auto;
        flex: none;
    }

    .sectionCtaRow1 > div,
    .sectionCtaRow2 > div,
    .sectionCtaRow3 > div {
        height: auto;
        min-height: 260px;
    }

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

    .sectionCtaCol6 img {
        width: 100%;
        height: 220px;
    }
}

/* ================================
   Variante moderne (cta-modern)
   ================================ */
.cta-modern{
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--nav-height, 72px));
    background: linear-gradient(135deg, rgba(176,122,57,0.14), rgba(15,61,47,0.10)), var(--background);
    display: grid;
    place-items: center;
    overflow: hidden;
    /* ajoute un vrai espace bas pour éviter que le visuel “touche” la section verte suivante */
    padding: clamp(28px, 5vw, 48px) clamp(28px, 5vw, 48px) clamp(70px, 7vw, 110px);
}

.cta-modern__grid{
    width: min(1200px, 95%);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(18px, 2vw, 28px);
    align-items: stretch; /* force les deux colonnes à même hauteur */
}

.cta-modern__content{
    grid-column: span 6;
    background: #fffdf8;
    border-radius: 18px;
    padding: clamp(22px, 3vw, 32px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
    border: 1px solid rgba(176,122,57,0.12);
}

.cta-modern__eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(176,122,57,0.16);
    color: #8a5b24;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-modern__title{
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: #1f2d2a;
    line-height: 1.2;
}

.cta-modern__lead{
    color: #35433f;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.55;
}

.cta-modern__badges{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.cta-modern__badge{
    background: rgba(176,122,57,0.12);
    color: #8a5b24;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.cta-modern__actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-modern__btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.cta-modern__btn--primary{
    background: #8a5b24;
    color: #fff;
    box-shadow: 0 12px 30px rgba(138,91,36,0.32);
}
.cta-modern__btn--primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(138,91,36,0.38);
}

.cta-modern__btn--ghost{
    background: transparent;
    color: #1f2d2a;
    border: 1.5px solid rgba(176,122,57,0.35);
}
.cta-modern__btn--ghost:hover{
    background: rgba(176,122,57,0.10);
    transform: translateY(-2px);
}

.cta-modern__media{
    grid-column: span 6;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
    align-items: center;
    min-height: clamp(520px, 62vh, 680px); /* garantit une hauteur proche de la maquette */
}

.cta-modern__hero{
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(0,0,0,0.18);
    height: 100%;
}

.cta-modern__hero img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-modern__mini{
    position: absolute;
    right: 18px;
    width: 32%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    aspect-ratio: 4 / 3; /* fixe le ratio pour éviter les déformations */
}

.cta-modern__mini--top{
    top: 18px;
}

.cta-modern__mini--bottom{
    bottom: 18px;
}

.cta-modern__mini img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-modern__badge-floating{
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: #8a5b24;
    color: #fffdf8;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(138,91,36,0.35);
    font-weight: 700;
    line-height: 1.1;
}

.cta-modern__shape{
    position: absolute;
    inset: -12% auto auto -10%;
    width: clamp(160px, 24vw, 230px);
    height: clamp(160px, 24vw, 230px);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), transparent 55%), #8a5b24;
    filter: blur(18px);
    opacity: 0.28;
    z-index: 0;
}

@media (max-width: 992px){
    .cta-modern__grid{
        grid-template-columns: 1fr;
    }
    .cta-modern__content,
    .cta-modern__media{
        grid-column: span 12;
    }
    .cta-modern__media{
        order: -1;
    }
}

@media (max-width: 640px){
    .cta-modern{
        min-height: auto;
    }
    .cta-modern__media{
        position: relative;
        display: block;
    }
    .cta-modern__hero img{
        height: 320px;
    }
    .cta-modern__mini{
        position: relative;
        width: 100%;
        right: 0;
        top: 0;
        bottom: 0;
        margin-top: 12px;
        height: auto;
    }
    .cta-modern__mini img{
        height: 160px;
    }
    .cta-modern__badge-floating{
        position: absolute;
        left: 12px;
        bottom: 12px;
    }
}
