/* ===== styles.css ===== */

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

:root {
    --color-bg: #f0f8ff;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fcfa;
    --color-accent: #4caf50;
    --color-accent-dark: #2e7d32;
    --color-accent-soft: #c8e6c9;
    --color-text: #333333;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 18px;
    --max-width: 1100px;
}

/* =========================
   GLOBAL
   ========================= */
body {
    font-family: system-ui, Arial, sans-serif;
    background: #f7faf7;
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

section {
    padding: 60px 20px;
}

section>* {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* =========================
   HEADER MODERNE
   ========================= */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(200, 230, 200, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-glass {
    height: 60px;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}

/* MENU */
.nav-glass ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

.nav-glass a {
    text-decoration: none;
    color: var(--color-accent-dark);
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.3s ease;
}

.nav-glass a:hover {
    background: rgba(76, 175, 80, 0.15);
}

/* LANGUES */
.lang-modern {
    display: flex;
    gap: 6px;
}

.lang-modern button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

/* MODE SENIOR */
.senior-btn {
    background: #ffcc66;
    color: #4a4a4a;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* SENIOR MODE ACTIVE */
body.senior-mode {
    font-size: 19px;
    line-height: 1.8;
}

/* =========================
   BURGER MOBILE
   ========================= */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--color-accent-dark);
    border-radius: 4px;
}

/* =========================
   HERO ÉLÉGANT & PROFESSIONNEL
   ========================= */

.hero-digital {
    position: relative;
    padding: 120px 20px 90px;
    background: linear-gradient(135deg, #f8fffa, #f4faff);
    display: flex;
    justify-content: center;
}

.hero-digital-inner {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;

    max-width: 780px;
    width: 100%;

    margin: 0 auto;
    /* <- force le centrage horizontal */

    text-align: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(200, 230, 210, 0.8);
    position: relative;
}


/* LOGO - élégant en médaillon */
.digital-logo-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    border: 1px solid rgba(150, 200, 170, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.digital-logo {
    width: 80%;
    height: auto;
}

.digital-ring,
.digital-ring2 {
    display: none;
}

/* TITRE HERO */
.digital-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #245a35;
}

/* SOUS TEXTE */
.digital-subtitle {
    max-width: 600px;
    margin: 0 auto 22px;
    color: #4e4e4e;
}

/* CTA */
.digital-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 999px;
    transition: 0.25s ease;
}

.digital-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* =========================
   ABOUT
   ========================= */
.about-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.about-text {
    flex: 2;
}

.about-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-accent);
}

/* =========================
   POUR QUI
   ========================= */
.public-list {
    max-width: 700px;
    list-style: none;
    margin: 0 auto;
}

.public-list li {
    background: var(--color-accent-soft);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* =========================
   SERVICES
   ========================= */
.service-category {
    background: #f8fdf8;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.service-item {
    background: white;
    padding: 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

/* =========================
   CTA SECTION
   ========================= */
.cta-section {
    background: var(--color-accent-soft);
    padding: 40px 20px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 12px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   CONTACT
   ========================= */
.contact-section .contact-lead {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
    color: #444;
    font-size: 1.05rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

.card-elevated {
    background: var(--color-surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(200, 230, 200, 0.45);
    padding: 26px 24px;
}

.contact-direct {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-direct-icon {
    font-size: 2rem;
    line-height: 1;
}

.contact-subtitle {
    font-size: 1.15rem;
    color: var(--color-accent-dark);
    margin: 0 0 4px;
    text-align: center;
}

.contact-form-panel .contact-subtitle,
.contact-form-panel .contact-form-intro {
    text-align: start;
}

body[dir="rtl"] .contact-form-panel .contact-subtitle,
body[dir="rtl"] .contact-form-panel .contact-form-intro {
    text-align: right;
}

.contact-direct-text,
.contact-form-intro {
    font-size: 0.98rem;
    color: #555;
    margin: 0;
    line-height: 1.55;
}

.contact-mail-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 14px 22px;
    background: var(--color-accent);
    color: #fff !important;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(76, 175, 80, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
    min-height: 48px;
}

.contact-mail-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

.contact-email-line {
    margin: 10px 0 0;
    font-size: 1rem;
    word-break: break-all;
}

.contact-email-line a {
    color: var(--color-accent-dark);
    font-weight: 600;
}

.contact-hint {
    font-size: 0.88rem;
    color: #666;
    margin: 4px 0 0;
    max-width: 320px;
    line-height: 1.5;
}

.contact-form-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.contact-form .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-accent-dark);
    margin-top: 8px;
    margin-bottom: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 14px;
    border-radius: var(--radius-medium);
    border: 1px solid #cfd8ce;
    font: inherit;
    background: #fafdfb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

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

.contact-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-submit {
    margin-top: 14px;
    width: 100%;
    max-width: none;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-medium);
    border: none;
    cursor: pointer;
    background: var(--color-accent-dark);
    color: #fff;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
    background: #256628;
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-status {
    min-height: 1.5em;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    line-height: 1.45;
}

.form-status--info {
    background: #e8f4fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.form-status--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.form-status--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

@media (max-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

body.senior-mode .contact-section .form-label {
    font-size: 1.05rem;
}

body.senior-mode .contact-form input,
body.senior-mode .contact-form textarea {
    font-size: 1.1rem;
    padding: 16px;
}

/* =========================
   FOOTER
   ========================= */
footer {
    background: var(--color-accent);
    color: white;
    text-align: center;
    padding: 18px;
    margin-top: 30px;
}

/* =========================
   ANIMATION SCROLL
   ========================= */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 850px) {
    .header-glass {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    /* Ligne 1 : logo + marque + burger | Ligne 2 : langues + mode senior */
    .header-left {
        flex: 1;
        min-width: 0;
    }

    .burger {
        display: flex;
        flex-shrink: 0;
    }

    .header-right {
        display: flex;
        flex-basis: 100%;
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 12px;
        white-space: normal;
        padding-top: 10px;
        margin-top: 2px;
        border-top: 1px solid rgba(200, 230, 200, 0.55);
    }

    .header-right .lang-modern {
        justify-content: center;
    }

    .nav-glass {
        display: none;
        position: absolute;
        background: white;
        width: 100%;
        left: 0;
        top: 100%;
        padding: 15px 0;
        box-shadow: var(--shadow-soft);
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-glass.show {
        display: flex;
    }

    .hero-digital {
        position: relative;
        padding: 120px 20px 90px;
        background: linear-gradient(135deg, #f8fffa, #f4faff);

        /* Correction du centrage */
        display: flex;
        align-items: center;
        /* Centre verticalement */
        justify-content: center;
        /* Centre horizontalement */

        text-align: center;
    }

}

/* ============================
   HERO PRO : logo + texte à gauche, visuel à droite
   ============================ */

.hero-pro {
    position: relative;
    background: linear-gradient(135deg, #f8fffa, #f4f8ff);
    padding: 80px 20px;
}

.hero-pro-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

/* COLONNE GAUCHE */
.hero-pro-left {
    flex: 1.1;
    min-width: 260px;
}

.hero-logo-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(210, 235, 215, 0.8);
}

.hero-pro-logo {
    height: 70px;
    width: auto;
}

.hero-pro-title {
    font-size: 2.1rem;
    color: #245a35;
    margin: 10px 0 8px;
}

.hero-pro-text {
    font-size: 1.05rem;
    color: #474747;
    max-width: 480px;
}

/* Bouton CTA */
.hero-pro-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 28px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(76, 175, 80, 0.22);
    transition: 0.25s ease;
}

.hero-pro-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* COLONNE DROITE : carte visuelle */
.hero-pro-right {
    flex: 1;
    min-width: 260px;
    display: flex;
    justify-content: center;
}

.hero-visual-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 20px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(210, 230, 220, 0.9);
}

.hero-visual-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2e7d32;
    background: rgba(200, 230, 210, 0.6);
    margin-bottom: 10px;
}

.hero-visual-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2f4f37;
}

.hero-visual-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.hero-visual-list li {
    font-size: 0.96rem;
    margin-bottom: 6px;
    color: #444;
}

/* ============================
   RESPONSIVE HERO PRO
   ============================ */

@media (max-width: 900px) {
    .hero-pro-inner {
        flex-direction: column-reverse;
        /* visuel en haut ou en bas */
        text-align: center;
    }

    .hero-pro-left {
        align-items: center;
    }

    .hero-pro-text {
        margin: 0 auto;
    }

    .hero-pro-right {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-pro {
        padding: 60px 16px;
    }

    .hero-pro-title {
        font-size: 1.7rem;
    }

    .hero-pro-logo {
        height: 60px;
    }
}

/* HERO — centrage total */
.hero-pro-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bloc du logo : plus grand + centré */
.hero-logo-block {
    width: 200px;
    /* agrandissement */
    height: 200px;
    border-radius: 20px;
    padding: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo plus grand */
.hero-pro-logo {
    width: 100%;
    height: auto;
}

/* Boîte principale de chaque catégorie */
.service-category {
    background: linear-gradient(135deg, #e8fbe9, #dff7e2);
    padding: 26px;
    border-radius: 16px;
    margin-bottom: 24px;

    border: 1px solid rgba(140, 190, 150, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);

    transition: 0.3s ease;
}

.service-category:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Titre de catégorie */
.service-category h3 {
    color: #2e7d32;
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-align: left;
}

/* Header droite : une seule ligne sur écrans larges */
@media (min-width: 851px) {
    .header-glass {
        flex-wrap: nowrap;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .header-right .lang-modern {
        display: flex;
        gap: 6px;
    }

    .header-right .senior-btn {
        white-space: nowrap;
    }
}

/* --- LOGO BLOCK PREMIUM --- */

/* Bloc contenant le logo */
.hero-logo-block {
    width: 260px;
    height: 260px;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Ombre premium */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(190, 220, 200, 0.5);

    /* Transition douce */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-logo-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Logo plus grand */
.hero-pro-logo {
    width: 85%;
    height: auto;
    object-fit: contain;
}