/* ==========================================================================
   CLEAN OUEST DÉBARRAS — Styles pages internes
   Styles communs aux pages autres que la home (page-hero, contact, légal…).
   Dépend de design-system.css (chargé avant).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero (version courte pour pages internes)
   -------------------------------------------------------------------------- */

.page-hero {
    padding: 160px 0 80px;
    background: var(--light);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--mist);
}

.page-hero-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--accent);
}

.page-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--black);
    line-height: 1;
    margin-bottom: 20px;
}

.page-hero h1 span {
    color: var(--accent);
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--concrete);
    max-width: 600px;
    line-height: 1.7;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--silver);
}

.page-hero-breadcrumb a {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-hero-breadcrumb a:hover {
    color: var(--accent);
}

.page-hero-breadcrumb span {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Contenu de page générique
   -------------------------------------------------------------------------- */

.page-content {
    padding: 80px 0 120px;
}

.page-content-inner {
    max-width: 800px;
}

.page-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
    margin-top: 50px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    color: var(--concrete);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    color: var(--concrete);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   Formulaire de contact (Contact Form 7)
   -------------------------------------------------------------------------- */

.contact-section {
    padding: 80px 0 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--concrete);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-text strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--black);
    margin-bottom: 3px;
}

.contact-detail-text span,
.contact-detail-text a {
    color: var(--concrete);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-detail-text a:hover {
    color: var(--accent);
}

/* Styles CF7 */

.wpcf7-form .form-row {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--light);
    border: 1px solid var(--mist);
    border-radius: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--black);
    transition: border-color 0.3s ease;
    outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--accent);
    background: var(--white);
}

.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 35px;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    transition: background 0.3s ease, transform 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--accent-dark);
    transform: translateX(5px);
}

.wpcf7-not-valid-tip {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.wpcf7-response-output {
    margin-top: 20px;
    padding: 15px 20px;
    font-size: 0.9rem;
    border: 1px solid var(--mist);
    background: var(--light);
}

.wpcf7-mail-sent-ok {
    border-color: #4caf50;
    color: #2e7d32;
    background: #f1f8f1;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: #fff5f4;
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */

.legal-content {
    padding: 80px 0 120px;
}

.legal-content-inner {
    max-width: 800px;
}

.legal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 15px;
    margin-top: 45px;
    padding-top: 45px;
    border-top: 1px solid var(--mist);
}

.legal-content h2:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--concrete);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Blog — archive et article
   -------------------------------------------------------------------------- */

.blog-archive {
    padding: 60px 0 120px;
}

/* Grille de cartes (archive + articles liés) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Carte article */
.post-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--light);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.post-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--black);
    letter-spacing: 0.5px;
}

.post-card p {
    color: var(--concrete);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

/* Badge catégorie */
.badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
}

/* Méta (auteur + date) */
.post-meta {
    color: var(--silver);
    font-size: 0.8rem;
}

/* Lien "Lire la suite" */
.read-more {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* Layout article */
.blog-post .page-hero {
    padding: 160px 0 70px;
}

.blog-post .page-hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    max-width: 900px;
}

/* Corps de l'article */
.post-body {
    padding: 80px 0;
    max-width: 760px;
    margin: 0 auto;
}

.post-body p {
    color: var(--concrete);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.post-body h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--black);
    letter-spacing: 1px;
    margin: 45px 0 20px;
}

.post-body h2:first-child {
    margin-top: 0;
}

.post-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--black);
    letter-spacing: 1px;
    margin: 32px 0 14px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 24px 22px;
    color: var(--concrete);
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body strong {
    color: var(--black);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.92rem;
}

.post-body th,
.post-body td {
    border: 1px solid var(--mist);
    padding: 12px;
    text-align: left;
    color: var(--concrete);
    vertical-align: top;
}

.post-body th {
    background: var(--light);
    color: var(--black);
    font-weight: 600;
}

/* Partage */
.post-share {
    margin-top: 20px;
}

.post-share-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--concrete);
    text-decoration: none;
    border: 1px solid var(--mist);
    padding: 8px 16px;
    background: var(--white);
    transition: all 0.3s ease;
}

.post-share-link:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Section articles liés */
.related {
    padding: 80px 0 120px;
    background: var(--light);
}

.related .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--black);
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Honeypot field — visually hidden, bots fill it
   -------------------------------------------------------------------------- */

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Formulaire de contact natif (.contact-form)
   Utilisé sur la page /contact/ avec action="/contact.php"
   -------------------------------------------------------------------------- */

.contact-form {
    background: var(--light);
    padding: 45px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 18px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--black);
    transition: border-color 0.3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: var(--white);
}

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

.contact-form .cf-turnstile {
    margin-bottom: 25px;
}

.contact-form .btn {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }
}

/* --------------------------------------------------------------------------
   Responsive — pages internes
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .blog-post .page-hero {
        padding: 120px 0 50px;
    }
}
