/*
 * Studio GMS - pages dédiées des services, FAQ et pied de page
 */

/* Typographie française : pas de majuscule à chaque mot (style anglais du template) */
.section-header h2,
.footer-nav ul li a { text-transform: none; }

/* Menu principal et sous-menus sans capitales forcées */
.main-nav .menu li a,
.main-nav .menu li.active > a,
.main-nav .sub-menu li a { text-transform: none; }
.main-nav .menu > li > a { font-size: 15px; }
.main-nav .sub-menu li a { font-weight: 500; }

/* Sous-menus plus larges (intitulés de services longs) */
@media (min-width: 1200px) {
    .main-nav .sub-menu { min-width: 290px; }
    .main-nav .sub-menu li a { white-space: nowrap; }
}

.service-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 160px 0 90px;
    overflow: hidden;
    color: #fff;
    background: var(--main_dark);
}
.service-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.service-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(var(--main_dark_rgb), .96) 0%, rgba(var(--main_dark_rgb), .82) 45%, rgba(var(--main_color_2_rgb), .35) 100%);
}
.service-hero .container { position: relative; z-index: 2; }
.service-hero__icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
    color: #fff;
    background: linear-gradient(45deg, var(--main_color_2) 0%, var(--main_color) 100%);
    box-shadow: 0 10px 30px rgba(var(--main_color_rgb), .35);
}
.service-hero .bread-crumbs { margin-bottom: 18px; justify-content: flex-start; }
.service-hero h1 { color: #fff; font-size: 58px; line-height: 1.05; margin-bottom: 20px; max-width: 760px; }
.service-hero__tagline { font-size: 22px; font-weight: 500; color: #fff; margin-bottom: 14px; max-width: 640px; }
.service-hero__text { color: var(--text_gray); font-size: 16px; max-width: 600px; margin-bottom: 35px; }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.service-hero__actions .button { margin: 0; }
.service-hero__price {
    display: inline-flex;
    flex-direction: column;
    margin-left: 10px;
    padding-left: 22px;
    border-left: 2px solid rgba(255, 255, 255, .2);
    font-size: 13px;
    color: var(--text_gray);
}
.service-hero__price b { font-size: 24px; color: #fff; font-family: var(--header_font); }

.service-quicklinks { position: relative; z-index: 3; margin-top: -45px; }
.service-quicklinks ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 14px;
    list-style: none;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(var(--main_dark_rgb), .15);
}
.service-quicklinks li:after,
.service-booking__aside li:after,
.footer-services li:after,
.sitemap-list li:after { display: none !important; }
.service-quicklinks li,
.service-booking__aside li,
.footer-services li,
.sitemap-list li { padding-left: 0; }
.service-quicklinks a {
    display: block;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--header_font);
    font-weight: 600;
    font-size: 14px;
    color: var(--header_color);
    transition: all .2s;
}
.service-quicklinks a:hover { color: #fff; text-decoration: none; background: linear-gradient(45deg, var(--main_color_2) 0%, var(--main_color) 100%); }
.service-section { scroll-margin-top: 110px; }

.service-intro__img { position: relative; z-index: 1; }
.service-intro__img img { width: 100%; border-radius: 10px; box-shadow: 0 25px 50px rgba(var(--main_dark_rgb), .2); }
.service-intro__img:after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 55%;
    height: 55%;
    z-index: -1;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--main_color_2) 0%, var(--main_color) 100%);
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    position: relative;
    padding: 30px 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(var(--main_color_rgb), .6); }
.feature-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(45deg, var(--main_color_2) 0%, var(--main_color) 100%);
}
.feature-card h4 { margin: 0; color: #fff; font-size: 18px; line-height: 1.4; }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-step { position: relative; text-align: center; padding: 0 10px; }
.process-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 38px;
    left: calc(50% + 50px);
    width: calc(100% - 70px);
    border-top: 2px dashed rgba(var(--main_color_rgb), .4);
}
.process-step__num {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--header_font);
    font-size: 28px;
    font-weight: 800;
    color: var(--main_color);
    background: #fff;
    box-shadow: 0 10px 30px rgba(var(--main_dark_rgb), .12);
}
.process-step h4 { font-size: 19px; margin-bottom: 10px; }
.process-step p { margin: 0; }

.service-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 230px; gap: 14px; }
.service-gallery a { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.service-gallery a:first-child { grid-row: span 2; }
.service-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-gallery a:hover img { transform: scale(1.08); }
.service-gallery a:after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    opacity: 0;
    background: rgba(var(--main_color_2_rgb), .45);
    transition: opacity .3s;
}
.service-gallery a:hover:after { opacity: 1; }
.service-gallery:not(.count-5) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: 280px; }
.service-gallery:not(.count-5) a:first-child { grid-row: auto; grid-column: auto; }

.service-video {
    position: relative;
    display: block;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(var(--main_dark_rgb), .3);
}
.service-video img { width: 100%; height: 460px; object-fit: cover; }
.service-video .play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--main_dark_rgb), .35); }
.service-video .play-overlay span {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(45deg, var(--main_color_2) 0%, var(--main_color) 100%);
}

.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { margin-bottom: 14px; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(var(--main_dark_rgb), .07); }
.faq-item summary {
    position: relative;
    padding: 22px 70px 22px 26px;
    cursor: pointer;
    list-style: none;
    font-family: var(--header_font);
    font-weight: 600;
    font-size: 17px;
    color: var(--header_color);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(45deg, var(--main_color_2) 0%, var(--main_color) 100%);
    transition: transform .3s;
}
.faq-item[open] summary:after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--main_color); }
.faq-item .faq-answer { padding: 0 26px 22px; }
.faq-item .faq-answer p { margin: 0; }
.faq-group + .faq-group { margin-top: 50px; }
.faq-group h3 { display: flex; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto 20px; }
.faq-group h3 i { color: var(--main_color); }

.service-booking {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    background: var(--main_dark);
    box-shadow: 0 25px 60px rgba(var(--main_dark_rgb), .25);
}
.service-booking__aside {
    height: 100%;
    padding: 50px 40px;
    background: linear-gradient(160deg, var(--main_color_2) 0%, var(--main_color) 100%);
}
.service-booking__aside h3 { color: #fff; font-size: 30px; margin-bottom: 15px; }
.service-booking__aside p { color: rgba(255, 255, 255, .92); }
.service-booking__aside a { color: #fff; font-weight: 700; }
.service-booking__aside ul { margin: 25px 0 0; padding: 0; list-style: none; }
.service-booking__aside li { margin-bottom: 12px; color: #fff; }
.service-booking__aside li i { width: 22px; }
.service-booking__form { padding: 50px 40px; }
.service-booking__form label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text_gray); }
.service-booking__form input,
.service-booking__form select,
.service-booking__form textarea {
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.service-booking__form select option { color: var(--header_color); }
.service-booking__form textarea { min-height: 100px; }
.service-booking__form input::placeholder,
.service-booking__form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.service-booking__form .button { margin-top: 5px; }

.services-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.services-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 40px;
    border: 1px solid var(--table_border);
    font-family: var(--header_font);
    font-weight: 600;
    font-size: 14px;
    color: var(--header_color);
    transition: all .2s;
}
.services-nav a i { color: var(--main_color); transition: color .2s; }
.services-nav a:hover,
.services-nav a.active { color: #fff; text-decoration: none; border-color: transparent; background: linear-gradient(45deg, var(--main_color_2) 0%, var(--main_color) 100%); }
.services-nav a:hover i,
.services-nav a.active i { color: #fff; }

/* Pages de contenu (mentions, confidentialité, conditions) */
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h2,
.legal-content h3 { margin-top: 35px; font-size: 24px; }
.legal-content p,
.legal-content li { color: var(--text_color); line-height: 1.8; }
.legal-content .updated { color: var(--header_color_2); font-size: 14px; }

/* Plan du site */
.sitemap-list h4 { margin-bottom: 15px; }
.sitemap-list ul { margin: 0 0 35px; padding: 0; list-style: none; }
.sitemap-list li { margin-bottom: 8px; }
.sitemap-list li a { color: var(--header_color); }
.sitemap-list li a:hover { color: var(--main_color); text-decoration: none; }
.sitemap-list li a i { margin-right: 8px; color: var(--main_color); }

/* Pied de page : services et pages annexes */
.footer-services { margin-bottom: 40px; text-align: center; }
.footer-services h5 { color: #fff; margin-bottom: 18px; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; }
.footer-services ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.footer-services a { color: var(--text_gray); font-size: 14px; }
.footer-services a:hover { color: var(--main_color); text-decoration: none; }
.footer-services a i { margin-right: 6px; color: var(--main_color); }
.footer-bottom_link a { margin: 0 4px; }

@media (max-width: 1199px) {
    .service-hero h1 { font-size: 46px; }
}
@media (max-width: 991px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-step:after { display: none; }
    .service-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .service-gallery a:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 767px) {
    .service-hero { min-height: 0; padding: 130px 0 80px; }
    .service-hero h1 { font-size: 34px; }
    .service-hero__tagline { font-size: 18px; }
    .service-hero__price { margin: 10px 0 0; padding-left: 0; border-left: 0; width: 100%; }
    .service-quicklinks ul { border-radius: 14px; }
    .service-quicklinks a { padding: 8px 14px; font-size: 13px; }
    .feature-grid,
    .process-steps { grid-template-columns: 1fr; }
    .service-video img { height: 240px; }
    .service-booking__aside,
    .service-booking__form { padding: 35px 22px; }
}
