body {
    background-color: white;
}

/* div {
    border: 1px solid red;
} */

@font-face {
    font-family: 'Roboto Flex';
    src: url("../fonts/RobotoFlex-vMWafJt.ttf") format('truetype');
    font-weight: 100 1000;
    /* plage variable */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url("../fonts/BebasNeue-Regular-sADaG7b.ttf") format('truetype');
    /* font-weight: 100 1000; */
    font-weight: 400;
    /* plage variable */
    font-style: normal;
    font-display: swap;
}

/* Font Montserrat Alternates */
.montserrat-alternates-thin {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.montserrat-alternates-extralight {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.montserrat-alternates-light {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.montserrat-alternates-regular {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.montserrat-alternates-medium {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.montserrat-alternates-semibold {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.montserrat-alternates-bold {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.montserrat-alternates-extrabold {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.montserrat-alternates-black {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.montserrat-alternates-thin-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.montserrat-alternates-extralight-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.montserrat-alternates-light-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.montserrat-alternates-regular-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.montserrat-alternates-medium-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.montserrat-alternates-semibold-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.montserrat-alternates-bold-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.montserrat-alternates-extrabold-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.montserrat-alternates-black-italic {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 900;
    font-style: italic;
}

.cabin-wrapper {
    display: block;
    width: 100%;
    /* garde le même espace que les autres colonnes */
}

.roboto-flex {
    display: block;
    width: 100%;
    font-family: 'Roboto Flex', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    /* font-variation-settings: "wdth" 80, "slnt" 0, "GRAD" 0; */
}

.bebas {
    font-family: "Bebas Neue", sans-serif;
    display: block;
    width: 100%;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.style-script-regular {
    font-family: "Style Script", cursive;
    font-weight: 400;
    font-style: normal;
}

/**************** CSS ****************/
/* @media(max-width: 820px) { */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

/* } */


.rose {
    background-color: #d24896;
}

.orange {
    background-color: #f26b1d;
}

.beige {
    background-color: #ebc4ab;
}

/* Cartouche titles: keep uppercased titles on a single line, responsive and tidy */
.cartouche {
    /* make the colored badge fill its column and center its text */
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    /* rounded-pill */
    box-sizing: border-box;
    text-align: center;
}

.cartouche>h4,
.cartouche>h5,
.cartouche>.h5 {
    margin: 0;
    white-space: nowrap;
    /* prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* show ... when very long */
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    /* responsive */
    line-height: 1;
    /* tighter to fit */
    text-align: center;
}

.cartouche.text-white {
    color: #fff !important;
}


.text-container {
    width: 100%;
    /* occupe toute la largeur dispo */
    text-align: left;
    /* aligne le contenu */
    overflow: hidden;
    /* masque si jamais ça dépasse */
}



/* .cabin {
			display: block;
			transform: scaleX(0.8); 
			transform-origin: left center;
			font-family: 'Cabin', sans-serif;
			font-weight: 700;
			font-size: clamp(1.2rem, 2.5vw, 2rem);
			line-height: 1.2;
			letter-spacing: -0.02em;
			word-spacing: -0.03em;
			font-stretch: 80%;
		} */
.logo {
    margin-bottom: 2rem;
}

#navcontainer {
    position: relative;
    /* padding-top: 2rem; */
    margin-bottom: 2rem;
}

.btn-oval {
    border-radius: 999px;
    /* forme ovale parfaite */
    padding: 0.5rem 1rem;
    /* vertical : 0.5rem, horizontal : 2rem */
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.3rem);
    margin-bottom: 2em;
    white-space: nowrap;
    /* empêche le texte de passer à la ligne */
    display: inline-block;
    /* prend seulement la largeur nécessaire */
    width: 100%;
    /*optionnel : limite la largeur maximale */
    max-width: 250px;
    /* limite la largeur maximale */
    font-stretch: expanded;
    /* valeurs possibles : ultra-condensed, extra-condensed, condensed, semi-condensed, normal, semi-expanded, expanded, extra-expanded, ultra-expanded */
    transform: scaleX(1.2);
    /* >1 = étiré horizontalement, <1 = comprimé */


}

.btn-coord {
    width: 80%;
    font-size: clamp(0.7rem, 1.7vw, 1.3rem);
    width: 100%;
    /*optionnel : limite la largeur maximale */
    max-width: 80%;
    /* limite la largeur maximale */
}

.btn-action,
.btn-action-com,
.btn-action-proj,
.btn-action-mkt,
.label-action-com {
    display: inline-block;
    text-decoration: none;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 3vw, 30px);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-family: 'Roboto Flex', sans-serif;
    color: white;
    font-weight: 400;
    /* transition: all 0.5s ease; */
    border: none;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-action,
.btn-action:hover,
.btn-action:active {
    background: linear-gradient(90deg, #ea1d95ff, #ff9a3c, #ff6a00);
    background-size: 200%;
    background-position: right;
    transition: all 0.5s ease;
}

.label-action-com {
    cursor: default;
}

.btn-action-com,
.label-action-com {
    background: #d24896;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-action-proj {
    background: #ebc4ab;
    color: black;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-action-mkt {
    background: #f26b1d;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

/* Création de l'animation du dégradé */
.btn-action::before {
    content: "";
    position: absolute;
    top: -200%;
    left: -90%;
    width: 200%;
    height: 400%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-action::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid white;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.btn-action:hover::before {
    opacity: 1;
    transform: rotate(45deg) translateX(50%);
}

.btn-action:hover,
.btn-action:active {
    background: linear-gradient(90deg, #ea1d95ff, #ff9a3c, #ff6a00);
    background-size: 200%;
    background-position: left;
    transition: all 0.5s ease;

}

/*********** CSS SVG gauche ************/
.svgmove1 {
    transform: translateX(-97%) rotate(125deg);
    /* valeur par défaut */
    top: 50%;
}

.svgmove2 {
    right: 0;
    transform: translateX(85%) rotate(30deg);
    /* valeur par défaut */
    top: 0;
}

/* Ensure decorative SVGs stay in the background and do not intercept pointer events */
.svgmove1,
.svgmove2 {
    position: absolute;
    z-index: 0;
    /* background layer */
    pointer-events: none;
    /* allow clicks through SVG */
}

/* Content containers should appear above SVGs */
#cadre1,
.container,
.bloc-centre {
    position: relative;
    z-index: 1;
}

.bloc-centre {
    width: 90%;
}

.container-action-buttons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .container-action-buttons {
        flex-direction: column;
        justify-content: center;
    }

    .container-action-buttons button,
    .container-action-buttons a {
        width: 100%;
        max-width: 350px;
    }

    .container-action-buttons a button {
        width: 100%;
    }
}

/*********** MENU **************/
.fond-menu {
    position: absolute;
    top: 0;
    left: 0;
    height: 70px;
    /* fixe une hauteur de bandeau (modifiable) */
    background: linear-gradient(90deg, #d24896, #ff9a3c);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    width: 100vw;
    z-index: -1;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    padding-top: 10px;

}

.nav-link {
    color: white;
    font-weight: 400;
    margin: 0 0px;
    padding: 8px 5px;
    transition: all 0.1s ease;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    font-weight: 700;
    /* font-size: 1.05rem; */
}

.espace {
    height: 30px;
}

.intro {
    width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Mobile centering fixes: ensure the intro block and column row are centered on narrow screens */
@media(max-width: 767px) {
    .bloc-centre {
        width: auto;
        /* let content size itself */
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 8px;
        padding-right: 8px;
        text-align: center;
    }

    .intro {
        width: auto;
        max-width: 100%;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    /* center columns inside their row on small screens */
    .container .row {
        justify-content: center;
    }

    /* ensure columns do not get left-aligned by inherited text-align */
    .container .row>[class*="col-"] {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


@media(min-width: 430px) {
    .nav-link {
        padding: 8px 10px;
    }
}

@media(min-width: 576px) {

    /* sm */
    .svgmove1 {
        transform: translateX(-94%) rotate(125deg);
    }

    .svgmove2 {
        transform: translateX(85%) rotate(30deg);
    }

    .bloc-centre {
        width: 80%;
    }

    .fond-menu {
        /* left: 90px; */
        width: 100vw;
    }
}

@media(min-width: 768px) {

    /* md */
    .svgmove1 {
        transform: translateX(-99%) rotate(125deg);
    }

    .svgmove2 {
        transform: translateX(90%) rotate(30deg);
    }

    .bloc-centre {
        width: 70%;
    }

    .fond-menu {
        left: 90px;
        width: 86vw;
    }
}

@media(min-width: 992px) {

    /* lg */
    .svgmove1 {
        transform: translateX(-96%) rotate(125deg);
    }

    .svgmove2 {
        transform: translateX(83%) rotate(30deg);
    }

    .bloc-centre {
        width: 70%;
    }

    .btn-oval {
        font-size: clamp(0.8rem, 1.5vw, 1.3rem);
        transform: scaleX(1);
        /* >1 = étiré horizontalement, <1 = comprimé */
    }

    .logo {
        margin-bottom: 0;
    }

    .fond-menu {
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
        width: 66vw;
        left: 40px;
    }

    .nav-link {
        margin: 0 20px;
        padding: 8px 10px;
    }
}

@media(min-width: 1200px) {

    /* xl */
    .svgmove1 {
        transform: translateX(-97%) rotate(125deg);
    }

    .svgmove2 {
        transform: translateX(82%) rotate(30deg);
    }

    .bloc-centre {
        width: 71%;
    }

    .fond-menu {
        left: 90px;
        width: 66vw;
    }
}

/* *************************** */
/* -----------------------------
   Contact page - responsive fixes
   (moved from templates/home/contact.html.twig)
   - Empêche l'email de déborder du bouton
   - Rend le téléphone plus visible
   - Autorise le wrapping à l'intérieur du bouton
------------------------------ */
.btn-coord .contact-email {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-word;
    /* taille responsive : min 0.8rem, preferée 0.95rem, max 1.05rem */
    font-size: clamp(0.8rem, 2.5vw, 1.05rem) !important;
    text-transform: none !important;
}

.btn-coord .contact-phone {
    /* phone plus grand mais responsive */
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
    line-height: 1.3 !important;
}

/* s'assure que le contenu du bouton peut se wrap */
.btn-coord {
    white-space: normal !important;
}

/* #texte-accroche: reduce line spacing for wrapped lines while keeping spacing between list items */
#texte-accroche {
    line-height: 1.4;
}

#texte-accroche .accroche-item {
    display: block;
    margin-bottom: 1rem;
}

#texte-accroche .accroche-item:last-child {
    margin-bottom: 0;
}

/* Tighten spacing for services columns on large screens */
@media(min-width: 992px) {

    /* make the row a non-wrapping flex container so columns don't drop to next line */
    .services-cols {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        /* tighten spacing */
    }

    /* force each column to take ~1/3 width minus small gap, prevent wrapping */
    .services-cols>[class*="col-"] {
        flex: 0 0 calc(33.333% - 0.5rem) !important;
        max-width: calc(33.333% - 0.5rem) !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* ensure lists inside columns keep comfortable padding */
    .services-cols ul {
        padding-left: 0.8rem;
    }
}

/* Footer Styling */
footer {
    background-color: transparent;
    z-index: 1001;
    /* Ensure it stays above background SVGs if any */
    position: relative;
}

footer a:hover {
    color: #ff6a00 !important;
}