/*
 * ════════════════════════════════════════════════════════
 *  style.css — Rezolocal one-page
 *
 *  Bloc 1 : variables & styles communs (repris de l'existant)
 *  Bloc 2 : additions spécifiques à la page one-page
 *           (= contenu de style-additions.css)
 *
 *  Si vous avez déjà un style.css sur le serveur avec les
 *  classes artisans/login, copiez uniquement le Bloc 2
 *  à la fin de votre fichier existant.
 * ════════════════════════════════════════════════════════
 */


/* ════════════════════════════════════════════════════════
   BLOC 1 — VARIABLES & BASE (existant, inchangé)
   ════════════════════════════════════════════════════════ */

:root {
    --blue:       #0077B6;
    --green:      #2ECC71;
    --orange:     #F39C12;
    --dark-gray:  #333333;
    --light-gray: #f5f5f5;
    --white:      #ffffff;
    --gray-border:#dddddd;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Roboto, Helvetica, Arial, Lucida, sans-serif;
    font-size: 1rem;
    color: #3C3A47;
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main,
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Reprise des styles inputs communs (pages artisans + formulaires) */
input,
select,
textarea {
    font-family: Roboto, Helvetica, Arial, sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 119, 182, 0.5);
}

/* Boutons form génériques (pages artisans — inchangé) */
button,
input[type="submit"] {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

button:hover,
input[type="submit"]:hover {
    background-color: #D98200;
}

/* Conteneurs pages artisans (inchangé) */
.container,
.artisan-container,
.login-container,
.reset-password-container,
.inscription-container,
.edit-artisan-container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Titres pages artisans (inchangé) */
h2.artisan-title,
h2.login-title,
h2.reset-password-title,
h2.inscription-title,
h2.edit-artisan-title {
    font-family: Poppins, sans-serif;
    color: var(--blue);
    text-align: center;
    margin-bottom: 20px;
}

.artisan-info {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-border);
}

.artisan-info strong { color: var(--blue); }
.artisan-info a      { color: var(--orange); text-decoration: none; font-weight: 700; }
.artisan-info a:hover { text-decoration: underline; }


/* ════════════════════════════════════════════════════════
   BLOC 2 — ONE-PAGE ADDITIONS
   ════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   GLOBALS
   ───────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}


/* ─────────────────────────────────────────
   HEADER
   ───────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--dark-gray);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 70px;
}

.header-logo img {
    display: block;
    height: 48px;
    width: auto;
}


/* ─────────────────────────────────────────
   BOUTON CTA PRINCIPAL (.btn)
   Pill vert — identique au CTA hero du site actuel.
   Le .btn-submit du formulaire reste orange (cohérence formulaire).
   ───────────────────────────────────────── */
.btn {
    display: inline-block;
    background-color: var(--green);
    color: var(--white);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    line-height: 1;
    border: none;
}

.btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: var(--white);
    text-decoration: none;
}

/* Variante petite — nav header */
.btn--sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* Variante grande — hero & offre */
.btn--lg {
    padding: 15px 36px;
    font-size: 16px;
}


/* ─────────────────────────────────────────
   LAYOUT SECTIONS
   ───────────────────────────────────────── */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5%;
}

.section-inner--narrow {
    max-width: 700px;
}

.section-white {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--light-gray);
}

/* H2 one-page : sombre (#111) — plus précis que le h2 global
   des pages artisans qui reste inchangé via .artisan-title etc. */
.section-inner h2 {
    font-family: Poppins, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    color: #111111;
    text-align: center;
    margin-top: 0;
    margin-bottom: 16px;
}

.h2-white {
    color: var(--white) !important;
}

.section-lead {
    font-size: 1.05rem;
    text-align: center;
    color: #555555;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.65;
}

.section-lead--white {
    color: var(--white);
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ─────────────────────────────────────────
   FONDATEUR
   ───────────────────────────────────────── */
.fondateur-card {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 36px;
    margin-top: 40px;
}

.fondateur-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--blue);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.03em;
}

.fondateur-name {
    font-family: Poppins, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 2px;
}

.fondateur-role {
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 500;
    margin: 0 0 16px;
}

.fondateur-list {
    margin: 0;
    padding-left: 1.2em;
    color: #444;
    line-height: 1.7;
}

.fondateur-list li + li {
    margin-top: 6px;
}

@media (max-width: 540px) {
    .fondateur-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }
    .fondateur-list {
        text-align: left;
    }
}


/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.section-hero {
    position: relative;
    background-color: var(--dark-gray);
    background-image: url('https://rezolocal.fr/wp-content/uploads/2025/02/outils-header-scaled.webp');
    background-size: cover;
    background-position: center;
}

/* Overlay sombre sur l'image de fond */
.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(33, 33, 33, 0.72);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 110px 5% 90px;
    text-align: center;
}

.hero-overline {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 20px;
}

/* H1 spécifique au hero */
.hero-inner h1 {
    font-family: Poppins, sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 500;
    color: var(--orange);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
}

.hero-sub {
    font-size: 1rem;
    color: var(--white);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

.hero-sub strong {
    color: var(--white);
}


/* ─────────────────────────────────────────
   CARTES — SECTION PROBLÈME
   ───────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    line-height: 1;
}

.card h3 {
    font-family: Poppins, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: 0;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.92rem;
    color: #555555;
    margin: 0;
    line-height: 1.65;
}


/* ─────────────────────────────────────────
   SECTION OFFRE
   ───────────────────────────────────────── */
.offre-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    margin-top: 40px;
}

.offre-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    border-bottom: 1px solid var(--gray-border);
}

.offre-col {
    padding: 36px 32px;
    border-right: 1px solid var(--gray-border);
}

.offre-col:last-child {
    border-right: none;
}

.offre-col h3 {
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: 0;
    margin-bottom: 16px;
}

/* Badge "Mise en place offerte" */
.offre-badge {
    display: inline-block;
    background-color: var(--green);
    color: var(--white);
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

/* Liste de fonctionnalités */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding: 5px 0 5px 26px;
    font-size: 0.9rem;
    color: #444444;
    line-height: 1.55;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--green);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Bloc prix */
.offre-prix {
    padding: 36px 32px;
    text-align: center;
}

.prix-montant {
    font-family: Poppins, sans-serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--orange);
    margin: 0 0 4px;
    line-height: 1;
}

.prix-periode {
    font-size: 1.2rem;
    font-weight: 400;
    color: #999999;
}

.prix-note {
    font-size: 0.85rem;
    color: #888888;
    margin: 8px 0 12px;
}

.prix-garantie {
    display: inline-block;
    background-color: #e8f8ee;
    color: #1a7a3a;
    border: 1px solid #a8ddb8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

/* Pictos modes de paiement sous le prix */
.prix-pictos {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.prix-pictos li {
    font-size: 0.83rem;
    color: #777777;
}


/* ─────────────────────────────────────────
   ÉTAPES — COMMENT ÇA MARCHE
   ───────────────────────────────────────── */
.steps {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--orange);
    color: var(--white);
    font-family: Poppins, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    margin: 0 0 6px;
}

.step p {
    font-size: 0.9rem;
    color: #555555;
    margin: 0;
    line-height: 1.65;
}


/* ─────────────────────────────────────────
   FAQ — <details> / <summary>
   ───────────────────────────────────────── */
.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    font-family: Poppins, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111111;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker               { display: none; }

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--blue);
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 18px;
    font-size: 0.9rem;
    color: #555555;
    margin: 0;
    line-height: 1.65;
}


/* ─────────────────────────────────────────
   SECTION CONTACT
   ───────────────────────────────────────── */
.section-contact {
    background-color: var(--green);
}

/* Surcharge du focus global (--blue) pour les champs de ce formulaire */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.25);
}

.contact-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
}

.form-group label abbr {
    color: var(--orange);
    text-decoration: none;
    cursor: default;
}

.label-optional {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: Roboto, sans-serif;
    color: var(--dark-gray);
    width: 100%;
    transition: border-color 0.2s;
}

/* Bouton submit — orange pill (différent du .btn vert pour les ancres) */
.btn-submit {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: 100px;
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: opacity 0.2s ease, transform 0.15s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background-color: var(--orange);
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Messages retour formulaire */
.form-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.form-alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.site-footer {
    background-color: var(--orange);
    color: var(--dark-gray);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 5% 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.85;
}

.footer-address strong {
    font-family: Poppins, sans-serif;
    font-size: 1rem;
}

.footer-address a {
    color: var(--dark-gray);
    font-weight: 600;
    text-decoration: none;
}

.footer-address a:hover {
    text-decoration: underline;
}

.footer-mid {
    display: flex;
    align-items: center;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-nav a {
    font-size: 0.83rem;
    color: var(--dark-gray);
    text-decoration: none;
    opacity: 0.85;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(51, 51, 51, 0.65);
    padding: 16px 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
}


/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE FIRST
   ───────────────────────────────────────── */

/* Tablette & mobile */
@media (max-width: 768px) {

    .header-inner {
        height: 60px;
    }

    .header-logo img {
        height: 36px;
    }

    .hero-inner {
        padding: 70px 5% 60px;
    }

    .hero-inner h1 {
        font-size: 2.1rem;
    }

    .section-inner {
        padding: 56px 5%;
    }

    .section-inner h2 {
        font-size: 1.65rem;
    }

    /* Offre : colonnes en vertical */
    .offre-body {
        grid-template-columns: 1fr;
    }

    .offre-col {
        border-right: none;
        border-bottom: 1px solid var(--gray-border);
    }

    .offre-col:last-child {
        border-bottom: none;
    }

    .offre-prix {
        padding: 28px 24px;
    }

    /* Footer : colonne unique */
    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-nav {
        align-items: flex-start;
    }
}

/* Très petits écrans */
@media (max-width: 400px) {

    .hero-inner h1 {
        font-size: 1.8rem;
    }

    .btn--lg {
        padding: 13px 28px;
        font-size: 15px;
    }

    .prix-montant {
        font-size: 2.8rem;
    }
}


/* ─────────────────────────────────────────
   PAGES LÉGALES
   ───────────────────────────────────────── */
.page-legale {
    background-color: var(--white);
    flex: 1;
}

/* Réduit le padding hérité de .section-inner pour les pages de contenu */
.page-legale .section-inner {
    padding-top: 48px;
    padding-bottom: 64px;
}

.legal-content h1,
.section-inner.legal-content h1 {
    font-family: Poppins, sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 500;
    color: #111111;
    margin-bottom: 6px;
    text-align: left;
}

.legal-update {
    font-size: 0.82rem;
    color: #aaaaaa;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

.legal-content h2,
.section-inner.legal-content h2 {
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    text-align: left;
    margin-top: 36px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-border);
}

.legal-content h3,
.section-inner.legal-content h3 {
    font-family: Poppins, sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    color: #333333;
    margin-top: 20px;
    margin-bottom: 8px;
    text-align: left;
}

.legal-content p {
    font-size: 0.9rem;
    color: #444444;
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-content ul li {
    font-size: 0.9rem;
    color: #444444;
    line-height: 1.75;
    margin-bottom: 2px;
}

.legal-content a {
    color: var(--blue);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--orange);
}

.legal-content code {
    font-family: monospace;
    background: var(--light-gray);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

/* Tableau cookies */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-size: 0.85rem;
}

.cookie-table th {
    background-color: var(--light-gray);
    color: #333333;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    padding: 9px 12px;
    text-align: left;
    border: 1px solid var(--gray-border);
}

.cookie-table td {
    padding: 9px 12px;
    border: 1px solid var(--gray-border);
    color: #444444;
    vertical-align: top;
    line-height: 1.5;
}

.cookie-table tr:nth-child(even) td {
    background-color: #fafafa;
}

@media (max-width: 600px) {
    .cookie-table thead { display: none; }

    .cookie-table,
    .cookie-table tbody,
    .cookie-table td,
    .cookie-table tr { display: block; }

    .cookie-table tr {
        border: 1px solid var(--gray-border);
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .cookie-table td {
        padding: 7px 12px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .cookie-table td:last-child {
        border-bottom: none;
    }
}
