body {
    font-size: 1.25rem;
}
p {
    line-height: 1.5;
}

.quicksand {
    font-family: 'Quicksand', sans-serif;
}
.dm-sans {
    font-family: 'DM Sans', sans-serif;
}

/*                                                HEADER.PHP */
.th-header .menu-area .row {
    flex-wrap: nowrap;  /* évite que la 3e colonne passe dessous */
}
.header-button { white-space: nowrap; }

/* Liens du sidemenu */
.sidemenu-links {
    margin-top: 80px;
}
.sidemenu-links li {
    list-style: none;
    margin-bottom: 50px;
}

.sidemenu-links a {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
}

.sidemenu-links a i {
    font-size: 22px;
}

.sidemenu-content .widget.footer-widget p {
    font-size: 20px;
    margin-bottom: 12px;
}


/* Main menu */


.main-menu a {
    font-size: 16px;
    font-weight: bold;
}


/*                                               Accueil/index.php   */

.serenite-title {
    font-weight: 700;
    font-size: clamp(3rem, 6vw + 1rem, 8rem);
    color: var(--theme-color);
    line-height: 1;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,.18));
}

.hero-serenite {
    padding-block: clamp(36px, 5vw, 72px);
}


.service-area3 .row {
    display: flex;
    flex-wrap: wrap;
}

.service-area3 .col-md-6,
.service-area3 .col-xl-4 {
    display: flex;
}

.service-item {
    flex: 1 1 auto;
    display: flex;
}

.service-item .box-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cotisation-wrap{ background:#1f2122; }

.cotisation-card{
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    background: #111;
}

.cot-left{
    background:#e31e24;
    color:#fff;
    padding: clamp(24px, 5vw, 56px);
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap: clamp(12px, 2vw, 20px);
}


.cot-title{
    margin:0;
    line-height:1.05;
    font-weight:600;
    font-size: clamp(2.2rem, 5vw, 5rem);
    letter-spacing:.01em;
}

.cot-text{
    margin:0;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    opacity:.95;
}

.cot-cta{
    color:#fff;
    font-weight:800;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:.6rem;
}
.cot-cta:hover{ text-decoration:underline; }

.cot-right{ position:relative; min-height: 320px; }
.cot-right img{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
}

@media (max-width: 992px){
    .cotisation-card{
        grid-template-columns: 1fr;
    }
    .cot-right{ min-height: 280px; }
}


.quote-section {
    background: #e31e24;
    height: 430px;
    position: relative;
    overflow: hidden;
}

.quote-text {
    color: #fff;
    font-size: clamp(1.8rem, 3vw + 1rem, 3.2rem);
    font-weight: 700;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.3;
    text-transform: uppercase;
}


.quote-section::after {
    content: "+";
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    font-size: 22rem;                /* taille géante */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15); /* blanc transparent pour donner l’effet */
    line-height: 1;
    pointer-events: none;
    user-select: none;
}


.counter-card .box-number {
    font-family: var(--body-font);
    font-weight: 600;
}
.counter-card .box-text {
    margin-top: 10px;
}

.sec-title.style2 {
    font-family: var(--title-font);
}
h3 {
    font-family: var(--title-font);
}

/*            Societe/index.php & Partenaires/index.php */
.soc-part-hero {
    margin: 24px auto 120px;
}

.soc-part-hero-inner {
    max-width: 1570px;
    margin: 0 auto;
}

.soc-part-hero-media {
    display: block;
    width: 100%;
    aspect-ratio: 1570 / 450;   /* bannière panoramique */
    object-fit: cover;
    border-radius: .5rem;
}

/* Titre toujours sous l'image */
.soc-part-hero-text {
    margin-top: 1rem;
    text-align: center;
    font-size: clamp(28px, 6vw, 8rem);
    font-weight: 900;
    color: #e31e24;
    line-height: 1.2;
}
.soc-part-text {
    font-size: 20px;
}

/* --- Tablette & Mobile --- */
@media (max-width: 991.98px) {
    .soc-part-hero {
        margin: 20px auto 80px;
    }

    .soc-part-hero-media {
        aspect-ratio: 16 / 12;    /* image plus haute */
    }

    .soc-part-hero-text {
        font-size: clamp(24px, 5vw, 3rem);
    }
    .soc-part-text {
        font-size: 18px;
    }
}

/* --- Mobile étroit --- */
@media (max-width: 575.98px) {
    .soc-part-hero {
        margin: 16px auto 64px;
    }

    .soc-part-hero-text {
        font-size: 2rem;
    }
    .soc-part-text {
        font-size: 17px;
    }
}



/* Contact */
/* Style inputs avec bordure uniquement en bas */
.custom-input {
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    transition: border-color 0.3s, background-position 0.3s;
    background-image: linear-gradient(to right, #444, #111);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: all 0.5s ease-in-out;
}

.custom-input:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent; /* cacher le gris par défaut */
    background-size: 100% 2px; /* ligne dégradée animée */
}

/* Au survol (avant focus) */
.custom-input:hover {
    border-color: #aaa;
    transition: all 0.5s ease-in-out;
}

/* Champ invalide */
.custom-input.is-invalid,
.was-validated .custom-input:invalid {
    border-color: red !important;
    background-image: none; /* pas de dégradé */
}

.contact-texte {
    font-size: 17px;
}
.contact-tel {
    font-size: 20px;
}



/* Actualité */

.blog-text h2 {
    font-size: 36px;
}
.blog-text h3 {
    font-size: 32px;
}
.blog-text h4 {
    font-size: 28px;
}
.blog-text h5 {
    font-size: 24px;
}
.blog-text h6 {
    font-size: 20px;
}
.blog-text p {
    font-size: 20px;
}

.blog-single.single-grid .box-title {
    border-bottom: none;
    padding-bottom: 0px;
}

.blog-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.color-red {
    color: var(--theme-color);
}
.btn-primary {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}
.btn-primary:hover {
    background-color: rgba(237, 28, 38,0.8);
    border-color: var(--theme-color);
    transition: all 0.5s ease-in-out;
}

.faux-titre {
    font-weight: 700;
    color: var(--title-color);
}


/* Footer */
.footer-area {
    background-color: #fff;
    padding: 80px 0 40px;
    color: #333;
}

.footer-title {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-text {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-text i {
    color: var(--theme-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
    display: block;
    position: relative;
}

.footer-links li:after {
    display: none !important;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--theme-color);
}

.footer-links a i {
    color: var(--theme-color);
    font-size: 12px;
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid #dee2e6;
    margin-top: 60px;
    padding-top: 30px;
}

.footer-bottom a {
    color: var(--theme-color);
    text-decoration: none;
    margin-right: 20px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.copyright {
    color: #333;
    font-size: 15px;
}


.brand-logo {
    max-height: 120px;
    width: 100%;
    object-fit: contain;
}

@media (max-width: 575px) {
    .header-logo {
        max-width: 200px;
    }
}
@media (max-width: 1199px) {
    .service-item {
        padding: 30px 10px;
        font-size: 1.1rem;
    }
    .service-area3 {
        padding: 20px;
    }
}


.estimer-cotisation-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.estimer-cotisation-box {
    background-color: var(--theme-color);
    border-radius: 20px;
    width: 60%;
    max-width: 1200px;
}

@media (max-width: 575px) {
    .estimer-cotisation-box {
        width: 95%;
    }
}

.estimer-cotisation-title {
    color: white;
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 2rem;
}


.estimer-cotisation-btn {
    background-color: white;
    color: var(--theme-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.hero-btn:hover {
    background-color: #f8f9fa;
}

.project-grid .box-img {
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 8px;
}

.project-grid .box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-grid .box-img img:hover {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .project-grid .box-img {
        height: 400px;
    }
    .estimer-cotisation-title {
        font-size: 25px;
    }
}

@media (max-width: 575px) {
    .project-grid .box-img {
        height: 320px;
    }
}

.experience-number {
    font-size: clamp(6rem, 12vw, 12rem);
    font-weight: 900;
    color: var(--theme-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.th-experience .experience-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
}

.th-experience.style2 {
    width: 480px !important;
    height: 480px !important;
    padding: 100px 60px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#project-sec .col-lg-6:has(.th-experience.style2) {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .th-experience.style2 {
        width: 400px !important;
        height: 400px !important;
        padding: 80px 40px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 575px) {
    .th-experience.style2 {
        width: 320px !important;
        height: 320px !important;
        padding: 60px 30px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}


@media (max-width: 991px) {
    .about-area .img-box5_top {
        max-width: 100%;
    }
}

.sub-title::before, .sub-title::after {
    position: absolute;
    content: "";
    top: 5px;
    width: 8px;
    height: 14px;
    -webkit-mask-image: url("../img/theme-img/sub-title.svg");
    mask-image: url("../img/theme-img/sub-title.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: red;
}
.sub-title::after {
    right: 0;
    -webkit-mask-image: url("../img/theme-img/sub-title2.svg");
    mask-image: url("../img/theme-img/sub-title2.svg");
}

.project-grid .sub-title:before,
.project-grid .sub-title:after {
    background-color: var(--theme-color) !important;
}

.service-item {
    padding: 35px 50px;
}