/**
 * Styles spécifiques pour Douche Senior - Accessibilité & Lisibilité
 * Optimisé pour les seniors (typographie agrandie, contraste accru, etc.)
 */


/* ========================================
   Variables globales
   ======================================== */

:root {
    --background-color: #ffffff;
    --default-color: #444444;
    --heading-color: #000000;
    --accent-color: #b71923 !important;
    --surface-color: #ffffff;
    --contrast-color: #004655;
    --green: #004655;

    /* Font sizes pour lisibilité accrue */
    --base-font-size: 16px;
    --heading-h1-size: 32px;
    --heading-h2-size: 28px;
    --heading-h3-size: 24px;
    --paragraph-size: 18px;
    --small-size: 14px;
}


/* ========================================
   Typographie de base
   ======================================== */

body {
    font-size: var(--base-font-size);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

h1 {
    font-size: var(--heading-h1-size);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h2 {
    font-size: var(--heading-h2-size);
    line-height: 1.35;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

h3 {
    font-size: var(--heading-h3-size);
    line-height: 1.4;
}

p {
    font-size: var(--paragraph-size);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

p.section_description {
    color: #131313 !important;
    line-height: normal;
    margin: 0px;
    font-size: 14px;
}

a {
    text-decoration: underline;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}


/* ========================================
   Section Hero avec Formulaire
   ======================================== */

.hero.section.bloc_lead_one {
    color: var(--background-color);
    padding: 40px 0;
    background-color: #fff;
}

.hero h1, .hero .h1 {
    color: #b71923 !important;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.1;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.6;
    color: var(--heading-color);
    margin-bottom: 2rem;
}

.hero-text {
    font-size: var(--paragraph-size);
    margin-bottom: 2rem;
}

.hero-text ul {
    list-style: disc inside;
    margin: 1rem 0;
}

.hero-text ul li {
    margin: 0.8rem 0;
    line-height: 1.8;
}

.btn-get-started {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--accent-color);
}

.btn-get-started:hover {
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-get-started:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


/* ========================================
   Bloc Formulaire
   ======================================== */

.formulaire {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.titre-form h4 {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.bloc-form {
    margin-top: 2rem;
}

.form-control {
    font-size: 16px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(183, 25, 35, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #999;
    font-size: 16px;
}

#lead_form p,
#form-success p,
.bloc_form p {
    color: #000 !important;
}


/* ========================================
   Section Avantages (Icon Boxes)
   ======================================== */

.dark-background {
    background-color: var(--background-color);
    color: var(--default-color);
    padding: 50px 0;
}

.dark-background p,
.dark-background.alt-features .icon-box p {
    color: #fff !important;
    font-size: 17px;
}

.dark-background h2,
.dark-background.alt-features .icon-box h3 {
    color: #fff;
}

.dark-background.alt-features .icon-box h3,
.dark-background.alt-features .icon-box p {
    text-align: left !important;
}

.icon-box {
    padding: 20px;
    text-align: center;
}

.icon-box i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.icon-box h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.icon-box p {
    font-size: var(--paragraph-size);
    line-height: 1.8;
}


/* ========================================
   Section Texte avec Image
   ======================================== */

.about.section.bg-cl {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.about.section .content h1 {
    color: var(--heading-color);
}

.about.section .content p {
    color: var(--default-color);
}

.text-image-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.text-image-item .btn {
    margin-top: auto;
    align-self: flex-start;
}

#text-image-section a.btn,
#bloc_primadapt a.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    margin: auto;
}

#text-image-section a.btn:hover,
#bloc_primadapt a.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 15px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}


/* ========================================
   Section Détails / CTA
   ======================================== */

.details.section {
    padding: 50px 0;
}

.details h2 {
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: var(--paragraph-size);
    margin: 2rem 0;
    line-height: 1.8;
}

#cta-section p {
    color: #fff;
    text-align: center;
    font-weight: bolder !important;
}

#bloc_accroche {
    position: relative;
    overflow: hidden;
}

#bloc_accroche::after {
    content: '';
    position: absolute;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    background: url('/img/1/fleche.png') no-repeat center center;
    background-size: contain;
    pointer-events: none;
}

#bloc_accroche .cta-text p {
    font-weight: 700;
    font-size: 45px;
    padding-bottom: 0px;
    color: #fff;
    line-height: normal;
}


/* ========================================
   Section Avant/Après
   ======================================== */

.before-after.section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.before-after-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

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

.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    clip-path: polygon(0 0, var(--clip-path-width, 50%) 0, var(--clip-path-width, 50%) 100%, 0 100%);
}

.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.before-after-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    z-index: 5;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.before-after-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.before-after-slider::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.before-after-content {
    padding: 2rem;
}

.before-after-content h2 {
    font-size: 26px;
    margin-bottom: 1.5rem;
}

.before-after-text {
    font-size: var(--paragraph-size);
    line-height: 1.8;
    margin-bottom: 2rem;
}


/* ========================================
   Bloc Primadapt
   ======================================== */

#bloc_primadapt {
    padding: 30px 0;
    position: relative;
    clip-path: inset(0);
    background-color: #feae00;
}

#bloc_primadapt img.shadow {
    box-shadow: none !important;
}

#bloc_primadapt p {
    color: #004655;
    font-size: 25px;
    font-weight: 700;
    padding: 0;
    text-align: center;
    line-height: normal;
    margin: 0px;
}

#bloc_primadapt strong {
    font-size: 80px;
}

#bloc_primadapt em {
    font-size: 16px;
    font-weight: normal;
}


/* ========================================
   Section Avis / Témoignages
   ======================================== */

.testimonials.section.section-color {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.reviews-section h2 {
    color: var(--accent-color);
}

.section-title h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title p {
    text-align: center;
    font-size: var(--paragraph-size);
    color: #666;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.testimonial-item p {
    font-size: var(--paragraph-size);
    line-height: 1.8;
    color: var(--default-color);
    flex-grow: 1;
}

.profile {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.profile h3 {
    font-size: 16px;
    margin: 0;
    color: var(--heading-color);
}


/* ========================================
   Swiper (Carrousel témoignages)
   ======================================== */

.swiper {
    padding-bottom: 40px;
}

.swiper-pagination {
    bottom: 0;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
}


/* ========================================
   Footer
   ======================================== */

footer a {
    color: #fff !important;
}


/* ========================================
   Focus & Navigation clavier
   ======================================== */

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.high-contrast {
    background-color: #000;
    color: #fff;
}

.high-contrast a {
    color: #ffeb3b;
}


/* ========================================
   Responsive (tablettes)
   ======================================== */

@media (max-width: 768px) {
    :root {
        --heading-h1-size: 28px;
        --heading-h2-size: 24px;
        --heading-h3-size: 20px;
        --paragraph-size: 17px;
    }

    #bloc_accroche::after {
        width: 100px;
        height: 100px;
    }

    .hero.section.bloc_lead_one {
        flex-direction: column-reverse;
    }

    .formulaire {
        margin-top: 2rem;
    }

    .icon-box {
        margin-bottom: 2rem;
    }

    .before-after.section {
        padding: 40px 0;
    }

    .before-after-content {
        padding: 1.5rem;
    }

    .testimonial-item {
        padding: 20px;
    }

    .btn-get-started {
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 18px;
    }

    #bloc_accroche .cta-text p {
        font-size:25px;
    }
    #bloc_accroche{
        padding:0px;
    }
}

@media (max-width: 630px) {
    #bloc_accroche::after {
        display: none;
    }
}

/* ========================================
   Responsive (mobiles)
   ======================================== */

@media (max-width: 480px) {
    :root {
        --heading-h1-size: 24px;
        --heading-h2-size: 20px;
        --heading-h3-size: 18px;
        --paragraph-size: 16px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .formulaire {
        padding: 1.5rem;
    }

    .form-control {
        font-size: 16px;
        padding: 12px 12px;
    }

    .before-after-slider::-webkit-slider-thumb {
        width: 40px;
        height: 40px;
    }

    .before-after-slider::-moz-range-thumb {
        width: 40px;
        height: 40px;
    }
}
