/* Ostéopathe Dozulé — reproduction fidèle Divi */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Passion+One&family=Ubuntu:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    overflow-x: hidden;
    max-width: 100%;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7em;
    color: #666;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #2ea3f2; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typographie customizer Divi */
h1, h2, h3, h4, h5, h6 {
    color: #6193bf;
    line-height: 1em;
    font-weight: 500;
    margin: 0 0 10px;
    font-family: 'Passion One', cursive;
}

h1, h1.et_pb_contact_main_title { font-size: 60px; }
h2 { font-size: 51px; }
h3 { font-size: 43px; }
h4 { font-size: 36px; }
h5 { font-size: 31px; }
h6 { font-size: 28px; }

/* Ancres : alignement sous le header fixe */
[id] {
    scroll-margin-top: 80px;
}

h3[id],
h4[id],
#tarifs {
    scroll-margin-top: 88px;
}

.intro-titles h1 {
    line-height: 1.1em;
    padding-bottom: 10px;
}

p { margin: 0 0 1em; padding-bottom: 1em; }
p:last-child { margin-bottom: 0; padding-bottom: 0; }

ul { margin: 0 0 1em; padding-left: 1.2em; }

blockquote {
    margin: 20px 0 30px;
    border-left: 5px solid #2ea3f2;
    padding-left: 20px;
    color: #666;
}

blockquote p {
    padding-bottom: 0;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.container {
    width: 80%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}

.et_fixed_nav.et_show_nav #page-container {
    padding-top: 80px;
}

/* Header pleine largeur (et_fullwidth_nav) */
#main-header {
    line-height: 23px;
    font-weight: 500;
    top: 0;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
    position: fixed;
    z-index: 99999;
}

.et_fullwidth_nav #main-header .container.et_menu_container {
    width: 100%;
    max-width: 100%;
    padding-right: 32px;
    padding-left: 0;
}

.et_menu_container {
    position: relative;
    z-index: 99;
    min-height: 66px;
}

.logo_container {
    position: absolute;
    height: 100%;
    width: 100%;
    padding-left: 30px;
    transition: all .4s ease-in-out;
}

span.logo_helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    width: 0;
}

.logo_container a {
    display: inline-block;
    vertical-align: middle;
}

#logo {
    width: auto;
    height: 36px;
    max-width: none;
}

#et-top-navigation {
    padding-top: 24px;
    display: block;
    float: right;
}

#top-menu-nav,
#top-menu {
    line-height: 0;
}

nav#top-menu-nav,
#top-menu {
    float: left;
}

#top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    white-space: nowrap;
}

#top-menu li {
    display: inline-block;
    font-size: 14px;
    padding-right: 22px;
    word-wrap: break-word;
}

#top-menu li:last-child {
    padding-right: 0;
}

#top-menu a {
    color: rgba(0, 0, 0, .6);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    position: relative;
    padding-bottom: 33px;
    transition: opacity .4s ease-in-out, background-color .4s ease-in-out;
}

#top-menu-nav > ul > li > a:hover {
    opacity: .7;
    text-decoration: none;
}

#top-menu a:hover,
#top-menu a.active {
    color: #2ea3f2;
}

#et_mobile_nav_menu {
    display: none;
    float: right;
}

.mobile_menu_bar {
    display: block;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
    padding-bottom: 24px;
}

.mobile_menu_bar::before,
.mobile_menu_bar::after,
.mobile_menu_bar span {
    content: '';
    display: block;
    height: 3px;
    background: #2ea3f2;
    margin: 6px 0;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.mobile_nav.open .mobile_menu_bar::before {
    transform: translateY(9px) rotate(45deg);
}

.mobile_nav.open .mobile_menu_bar span { opacity: 0; }

.mobile_nav.open .mobile_menu_bar::after {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile_nav .select_page { display: none; }

/* Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .1);
}

.hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity .7s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-caption {
    position: absolute;
    z-index: 10;
    top: 35%;
    left: 6%;
    right: 6%;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #ffffff !important;
    font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
    font-size: 90px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    pointer-events: none;
}

/* Sections — gutters Divi (gutters2) */
.section { padding: 4% 0; }
.section-tight-top { padding-top: 50px; }

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

.intro-titles { padding-top: 23px; }

.row {
    display: block;
    width: 100%;
    position: relative;
}

.row::after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    width: 0;
}

.col-1-3 {
    float: left;
    width: 31.3333%;
    margin-right: 3%;
    margin-bottom: 30px;
}

.col-1-2 {
    float: left;
    width: 48.5%;
    margin-right: 3%;
    margin-bottom: 30px;
}

.col-1-4 {
    float: left;
    width: 22.75%;
    margin-right: 3%;
    margin-bottom: 30px;
}

.col-1-3:last-child,
.col-1-2:last-child,
.col-1-4:nth-child(4n),
.col-1-4:last-child {
    margin-right: 0;
}

.row-intro .col-1-3 {
    display: block;
}

.info-stack .info-box + .info-box {
    margin-top: 20px;
}

.portrait-wrap {
    text-align: left;
    line-height: 0;
}

.portrait-wrap img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.testimonials-grid .col-1-4:nth-child(4n+1) {
    clear: left;
}

.info-box {
    background: #e0e0e0;
    padding: 1em;
    margin-bottom: 0;
}

.info-box h4 {
    color: #6193bf;
}

.testimonials-section h3 {
    margin-bottom: 24px;
}

.testimonial {
    position: relative;
    background: #f5f5f5;
    padding: 30px;
    min-height: 100%;
    line-height: 1.5;
}

.testimonial::before {
    content: "\201C";
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    line-height: 32px;
    width: 32px;
    height: 32px;
    left: 50%;
    position: absolute;
    top: -16px;
    background: #f5f5f5;
    margin-left: -16px;
    border-radius: 31px;
    z-index: 2;
    text-align: center;
    color: #6193bf;
}

.testimonial-content {
    margin-bottom: 0;
    color: #666;
}

.testimonial-author {
    margin-top: 32px;
    font-weight: 700;
    color: #6193bf;
    display: block;
}

.contact-section h3 {
    margin-bottom: 16px;
}

.contact-form {
    margin-left: -3%;
}

.contact-form .field-row {
    display: flex;
    flex-wrap: wrap;
}

.contact-form .field {
    width: 50%;
    padding: 0 0 3% 3%;
    margin: 0;
}

.contact-form .field-full { width: 100%; }

.contact-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    appearance: none;
    background: #eee;
    border: 0;
    border-radius: 0;
    color: #999;
    font-size: 14px;
    padding: 16px;
    font-family: inherit;
    line-height: 1.7em;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.form-actions {
    text-align: right;
    clear: both;
}

.btn-submit {
    display: inline-block;
    background: #6193bf;
    color: #fff !important;
    border: 2px solid #6193bf;
    border-radius: 3px;
    font-size: 20px;
    font-weight: 500;
    padding: .3em 1em;
    cursor: pointer;
    font-family: inherit;
}

.btn-submit:hover {
    background: rgba(97, 147, 191, .9);
    text-decoration: none;
}

.form-message {
    margin-bottom: 1em;
    padding: 12px 16px;
    display: none;
}

.form-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.form-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
}

.gallery-item {
    width: 30%;
}

.gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.gallery-item img {
    width: 100%;
    transition: opacity .2s;
}

.gallery-item a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: hsla(0, 0%, 100%, .9);
    opacity: 0;
    transition: opacity .3s;
}

.gallery-item a:hover::after {
    opacity: 1;
}

.map-wrap iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

#page-container,
#main-content {
    overflow-x: hidden;
    max-width: 100%;
}

.clicrdv-wrap {
    min-height: 350px;
    max-width: 100%;
    overflow: hidden;
}

.clicrdv-wrap iframe {
    max-width: 100%;
}

/* Footer */
#main-footer {
    background: #222;
    color: #fff;
    padding: 6% 0 0;
}

#main-footer p {
    color: #fff;
    font-size: 14px;
    line-height: 1.7em;
}

#main-footer a { color: #fff; }

#footer-bottom {
    background: rgba(0, 0, 0, .32);
    padding: 15px 0 5px;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 980px) {
    html {
        scroll-padding-top: 66px;
    }

    [id],
    h3[id],
    h4[id],
    #tarifs {
        scroll-margin-top: 66px;
    }

    h1 { font-size: 47px; }
    h2 { font-size: 40px; }
    h3 { font-size: 34px; }
    h4 { font-size: 28px; }
    h5 { font-size: 25px; }
    h6 { font-size: 22px; }

    .container {
        width: 92%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form {
        margin-left: 0;
    }

    .row,
    .col-1-3,
    .col-1-2,
    .col-1-4,
    .info-box,
    .testimonial {
        max-width: 100%;
        box-sizing: border-box;
    }

    .col-1-3,
    .col-1-2,
    .col-1-4 {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .portrait-wrap { text-align: center; }
    .portrait-wrap img { margin: 0 auto; }

    .gallery-item { width: 47%; }

    .section-tight-top {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* Menu hamburger (breakpoint Divi) */
    #et-top-navigation {
        float: right;
        padding-top: 18px;
    }

    #et_mobile_nav_menu {
        display: block;
    }

    #top-menu-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
        z-index: 100000;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    #top-menu-nav.open {
        display: block;
    }

    nav#top-menu-nav,
    #top-menu {
        float: none;
        line-height: normal;
    }

    #top-menu {
        white-space: normal;
        padding: 8px 0 16px;
    }

    #top-menu li {
        display: block;
        padding-right: 0;
    }

    #top-menu a {
        padding: 14px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    #top-menu li:last-child a {
        border-bottom: 0;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    /* Slider compact en paysage mobile / tablette */
    .hero-slider {
        height: 320px;
    }

    .hero-slide-caption,
    .hero-caption {
        font-size: 52px;
        top: 30%;
    }
}

/* Smartphone portrait : pas de slider (comme l'original Divi) */
@media (max-width: 767px) and (orientation: portrait) {
    .hero-slider {
        display: none;
    }
}

@media (max-width: 767px) {
    .contact-form .field { width: 100%; }

    .gallery-item { width: 100%; }

    h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }

    .et_fixed_nav.et_show_nav #page-container {
        padding-top: 66px;
    }

    .et_menu_container {
        min-height: 56px;
    }

    #logo {
        height: 30px;
    }
}

/* Smartphone paysage : slider réduit, mise en page resserrée */
@media (max-width: 980px) and (orientation: landscape) {
    .hero-slider {
        display: block;
        height: 200px;
    }

    .hero-slide-caption,
    .hero-caption {
        font-size: 34px;
        top: 26%;
    }

    .container {
        width: 96%;
    }

    .section {
        padding: 20px 0;
    }

    h1 { font-size: 32px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }

    .intro-titles {
        padding-top: 12px;
    }

    .info-box {
        padding: 0.85em;
    }
}
