/* ===================================
   CityZen — Pages statiques
   Contact, CGU, Mentions légales
   =================================== */

/* Reset pour ces pages */
body {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER SIMPLIFIÉ ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.page-header-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 100px;
}

.page-header-back:hover {
    background: var(--accent-glow);
}

.page-header-spacer {
    min-width: 100px;
}

/* ========== CONTENU PRINCIPAL ========== */
.page-content {
    flex: 1;
    padding: 40px 24px 60px;
    background: var(--bg-primary);
}

.page-container {
    max-width: 720px;
    margin: 0 auto;
}

.page-container-text {
    max-width: 800px;
}

/* ========== HERO ========== */
.page-hero {
    text-align: center;
    margin-bottom: 40px;
}

.page-hero-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* ========== FORMULAIRE CONTACT ========== */
.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group-page {
    margin-bottom: 16px;
}

.form-group-page label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group-page input,
.form-group-page select,
.form-group-page textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-page input:focus,
.form-group-page select:focus,
.form-group-page textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group-page textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group-page select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238888a0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.page-char-count {
    display: block;
    text-align: right;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.page-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px var(--accent-glow);
    margin-top: 8px;
}

.page-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.page-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== CARTES ALTERNATIVES CONTACT ========== */
.contact-alternatives {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-card-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
}

/* ========== CONTENU LÉGAL ========== */
.legal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.legal-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 10px 0 16px 0;
    padding-left: 0;
    list-style: none;
}

.legal-section ul li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 6px 0 6px 24px;
    position: relative;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Carte info éditeur / hébergeur */
.legal-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
}

.legal-info-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.legal-info-row:last-child {
    border-bottom: none;
}

.legal-info-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Encart copyright */
.copyright-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 16px;
    color: white;
}

.copyright-icon {
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
    opacity: 0.8;
}

.copyright-notice strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.copyright-notice p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Grille crédits */
.credits-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.credit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.credit-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.credit-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.credit-item p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== FOOTER ========== */
.page-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 24px;
}

.page-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

.page-footer-links {
    display: flex;
    gap: 20px;
}

.page-footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.page-footer-links a:hover,
.page-footer-links a.active {
    color: var(--accent);
}

/* ========== RESPONSIVE TABLETTE ========== */
@media (max-width: 1024px) and (min-width: 769px) {
    .page-content {
        padding: 32px 20px 48px;
    }

    .legal-content {
        padding: 32px;
    }

    .contact-form {
        padding: 28px;
    }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    .page-header {
        padding: 0 14px;
        height: 56px;
    }

    .page-header-back span {
        display: none;
    }

    .page-header-back {
        min-width: 40px;
        padding: 6px;
    }

    .page-header-spacer {
        min-width: 40px;
    }

    .page-content {
        padding: 24px 14px 40px;
    }

    .page-hero {
        margin-bottom: 28px;
    }

    .page-hero-icon {
        font-size: 38px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .page-hero p {
        font-size: 14px;
    }

    /* Contact form mobile */
    .contact-form {
        padding: 20px;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Cartes contact empilées */
    .contact-alternatives {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 18px 16px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
    }

    .contact-card-icon {
        margin-bottom: 0;
        font-size: 24px;
    }

    .contact-card h3 {
        font-size: 13px;
    }

    .contact-card p {
        font-size: 12px;
    }

    /* Contenu légal mobile */
    .legal-content {
        padding: 20px;
        border-radius: 14px;
    }

    .legal-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .legal-section h2 {
        font-size: 17px;
    }

    .legal-section h3 {
        font-size: 14px;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 13px;
    }

    .legal-info-row {
        flex-direction: column;
        gap: 2px;
    }

    .legal-info-label {
        min-width: 0;
    }

    .copyright-notice {
        padding: 16px 18px;
    }

    .copyright-icon {
        font-size: 26px;
    }

    /* Footer mobile */
    .page-footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .page-footer-links {
        gap: 16px;
    }

    .page-footer-links a {
        font-size: 12px;
    }
}

/* ========== RESPONSIVE PETIT MOBILE ========== */
@media (max-width: 480px) {
    .page-header {
        padding: 0 10px;
        height: 50px;
    }

    .page-content {
        padding: 20px 10px 32px;
    }

    .page-hero h1 {
        font-size: 20px;
    }

    .contact-form {
        padding: 16px;
    }

    .legal-content {
        padding: 16px;
    }

    .legal-section h2 {
        font-size: 16px;
    }

    .credit-item {
        padding: 10px 12px;
    }

    .copyright-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 14px;
    }
}
