/* ============================================
   VARIABLES
   ============================================ */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --secondary: #34a853;
    --accent: #fbbc04;
    --dark: #1a1a2e;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    
    /* Couleurs du thème */
    --bg-color: #ffffff;
    --text-color: #1a1a2e;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
}

/* Thème sombre */
[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #f3f4f6;
    --card-bg: #2d2d44;
    --border-color: #3d3d5c;
    --light-gray: #2d2d44;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn--sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--block {
    width: 100%;
    justify-content: center;
}

.btn--secondary {
    background: var(--light-gray);
    color: var(--text-color);
}

.btn--secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* ============================================
   PAGE FORMULAIRE (form-page)
   ============================================ */
.form-page {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
}

.form-page__inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.form-page__inner--wide {
    max-width: 900px;
}

.form-page__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
    text-align: center;
}

.form-page__subtitle {
    font-size: 18px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================
   SITE FORM (site-form)
   ============================================ */
.site-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.site-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.site-form__field {
    margin-bottom: 20px;
}

.site-form__field:last-child {
    margin-bottom: 0;
}

.site-form__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.site-form__field label .required {
    color: #ef4444;
    margin-left: 2px;
}

.site-form__field input[type="text"],
.site-form__field input[type="email"],
.site-form__field input[type="tel"],
.site-form__field input[type="number"],
.site-form__field input[type="password"],
.site-form__field input[type="date"],
.site-form__field input[type="time"],
.site-form__field select,
.site-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    appearance: none;
}

.site-form__field input:focus,
.site-form__field select:focus,
.site-form__field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.site-form__field input::placeholder,
.site-form__field textarea::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.site-form__field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.site-form__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Radio buttons */
.site-form__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-color);
}

.radio-option:hover {
    border-color: var(--primary);
    background: var(--light-gray);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.08);
}

/* Checkbox */
.site-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.site-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.site-form__checkbox label {
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 0;
}

/* Field error */
.field-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.field-error input,
.field-error textarea,
.field-error select {
    border-color: #ef4444;
}

/* Alert */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert--warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--bg-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero__text {
    flex: 1;
}

.hero__text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero__text h1 span {
    color: var(--primary);
}

.hero__text p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero__illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__illustration svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* ============================================
   SERVICE TEASER
   ============================================ */
.service-teaser {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-teaser:last-of-type {
    border-bottom: none;
}

.service-teaser__row {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Version inversée : image à droite, texte à gauche */
.service-teaser--reverse .service-teaser__row {
    flex-direction: row-reverse;
}

.service-teaser__illustration {
    flex: 1;
    min-width: 0;
}

.service-teaser__illustration svg {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.service-teaser__text {
    flex: 1;
}

.service-teaser__text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.service-teaser__text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 24px;
    max-width: 500px;
}

/* Bouton vidéo */
.video-trigger {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.video-trigger:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal--open {
    opacity: 1;
    visibility: visible;
}

.video-modal--open .video-modal__dialog {
    animation: videoModalSlideIn 0.3s ease;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.video-modal__dialog {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 900px;
    width: 92%;
    z-index: 1;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

@keyframes videoModalSlideIn {
    from {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.video-modal__close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 36px;
    color: var(--gray);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    line-height: 1;
    padding: 4px 8px;
}

.video-modal__close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.video-modal__title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    padding-right: 40px;
}

.video-modal__frame-wrap {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-modal__frame-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust {
    padding: 60px 0;
    background: var(--light-gray);
    text-align: center;
}

.trust__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 40px;
}

.trust__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust__logo-placeholder {
    width: 160px;
    height: 80px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trust__logo-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--bg-color) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    color: var(--gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__text h1 {
        font-size: 38px;
    }

    .service-teaser__row {
        gap: 40px;
    }

    .service-teaser__text h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero__inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero__text h1 {
        font-size: 32px;
    }

    .hero__text p {
        font-size: 18px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__illustration svg {
        max-width: 350px;
    }

    .service-teaser {
        padding: 50px 0;
    }

    .service-teaser__row,
    .service-teaser--reverse .service-teaser__row {
        flex-direction: column !important;
        gap: 30px;
        text-align: center;
    }

    .service-teaser__text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .service-teaser__illustration svg {
        max-width: 300px;
    }

    .service-teaser__text h2 {
        font-size: 24px;
    }

    .service-teaser__text p {
        font-size: 16px;
    }

    .video-modal__dialog {
        padding: 20px;
        width: 95%;
    }

    .video-modal__title {
        font-size: 18px;
        margin-bottom: 16px;
        padding-right: 35px;
    }

    .video-modal__close {
        font-size: 30px;
        top: 10px;
        right: 14px;
    }

    .trust__logos {
        gap: 20px;
    }

    .trust__logo-placeholder {
        width: 120px;
        height: 60px;
    }

    .trust__title {
        font-size: 22px;
    }

    /* Formulaires responsive */
    .site-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .site-form {
        padding: 24px 20px;
    }

    .form-page__title {
        font-size: 28px;
    }

    .form-page__subtitle {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .site-form__radios {
        flex-direction: column;
        gap: 10px;
    }

    .radio-option {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero__text h1 {
        font-size: 26px;
    }

    .hero__text p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .service-teaser__illustration svg {
        max-width: 220px;
    }

    .video-modal__dialog {
        padding: 16px;
        width: 98%;
    }

    .video-modal__title {
        font-size: 16px;
    }

    .site-form {
        padding: 20px 16px;
    }

    .site-form__field input[type="text"],
    .site-form__field input[type="email"],
    .site-form__field input[type="tel"],
    .site-form__field select,
    .site-form__field textarea {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-page__title {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header p {
        font-size: 16px;
    }
}.hero__photo,
.service-teaser__photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero__photo {
    height: 380px;
}

.service-teaser__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.site-form__locked-service {
    background: var(--light-gray);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.site-form__change-service {
    font-weight: 400;
    font-size: 13px;
    color: var(--primary);
    margin-left: 8px;
}

#frequency_select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
}

.trust__testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.trust__testimonial {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
    box-shadow: var(--shadow);
}

.trust__testimonial p {
    font-style: italic;
    margin-bottom: 12px;
    color: var(--text-color);
}

.trust__testimonial-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray);
}
.error-page {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-page__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.error-page__illustration {
    flex: 1;
}

.error-page__illustration svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.error-page__text {
    flex: 1;
}

.error-page__text h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 16px;
}

.error-page__text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 480px;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 768px) {
    .error-page__inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .error-page__text p {
        margin-left: auto;
        margin-right: auto;
    }

    .error-page__actions {
        justify-content: center;
    }
}