/*
Theme Name: AG Starter Avocat
Theme URI: https://alliancegroupe-inc.com/templates-wordpress
Author: AGthèmes
Author URI: https://alliancegroupe-inc.com
Description: Theme gratuit basique 100% francais pour cabinet d'avocats, juriste, notaire, conseil juridique. Structure minimaliste navy et champagne, responsive, sans fioritures. Contenu pre-redige en francais natif : domaines d'expertise, honoraires, prise de rendez-vous, contact. Version gratuite simple pour demarrer rapidement. Passez au Pack Premium pour un design plus travaille.
Version: 1.1.17
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ag-starter-avocat
Tags: one-column, custom-menu, featured-images, translation-ready, theme-options, custom-colors, custom-logo, block-styles, wide-blocks
*/

/* ============================================================
   AG Starter Avocat - Feuille de style (version basique)
   ============================================================ */

/* ----- Reset ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0e1a;
}

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

a {
    color: #D4B45C;
    text-decoration: underline;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1em;
}

/* ----- Accessibility ----- */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #D4B45C;
    clip: auto !important;
    color: #0a0e1a;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    padding: 12px 20px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ----- Layout ----- */
.ag-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ----- Header ----- */
.ag-site-header {
    padding: 1rem 0;
    border-bottom: 1px solid #1f2740;
}

.ag-site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ag-site-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #D4B45C;
    text-transform: uppercase;
}

.ag-site-brand a {
    color: inherit;
    text-decoration: none;
}

/* ----- Menu ----- */
.ag-primary-menu {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ag-primary-menu a {
    color: #cccccc;
    font-size: 0.95rem;
    text-decoration: none;
}

/* ----- Hero ----- */
.ag-hero {
    text-align: center;
    padding: 3rem 1rem;
    background: #131826;
    border-bottom: 1px solid #1f2740;
}

.ag-hero__title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.ag-hero__title span {
    color: #D4B45C;
}

.ag-hero__subtitle {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ag-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: #D4B45C;
    color: #0a0e1a;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* ----- Cards ----- */
.ag-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    padding: 2.5rem 0;
}

.ag-card {
    background: #131826;
    border: 1px solid #1f2740;
    padding: 1.5rem;
    text-align: center;
}

.ag-card h2 {
    font-size: 1.2rem;
    color: #D4B45C;
    margin-bottom: 0.5rem;
}

.ag-card p {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ----- Info section ----- */
.ag-info {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid #1f2740;
    border-bottom: 1px solid #1f2740;
}

.ag-info h2 {
    font-size: 1.4rem;
    color: #D4B45C;
    margin-bottom: 1rem;
}

.ag-info p {
    color: #aaaaaa;
    max-width: 640px;
    margin: 0 auto 1rem;
}

/* ----- Main / posts ----- */
.ag-main {
    padding: 2rem 0;
}

.ag-main article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1f2740;
}

.ag-main article:last-child {
    border-bottom: none;
}

.ag-entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.ag-entry-title a {
    color: #ffffff;
    text-decoration: none;
}

.ag-entry-meta {
    font-size: 0.82rem;
    color: #888888;
    margin-bottom: 0.8rem;
}

.ag-entry-content {
    color: #c0c0c0;
}

.ag-entry-content a {
    color: #D4B45C;
}

.ag-entry-content blockquote {
    border-left: 3px solid #D4B45C;
    padding: 0.4rem 1rem;
    margin: 1rem 0;
    color: #aaaaaa;
}

.ag-entry-content pre,
.ag-entry-content code {
    background: #131826;
    padding: 0.15rem 0.35rem;
    font-family: Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.ag-entry-content pre {
    padding: 1rem;
    overflow-x: auto;
}

/* ----- Search form ----- */
.ag-search-form {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.ag-search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem 0.7rem;
    background: #131826;
    border: 1px solid #1f2740;
    color: #e0e0e0;
    font-family: inherit;
}

.ag-search-form input[type="submit"] {
    padding: 0.5rem 1rem;
    background: #D4B45C;
    color: #0a0e1a;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* ----- Pagination ----- */
.ag-pagination {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    padding: 1.5rem 0;
}

.ag-pagination a,
.ag-pagination span {
    padding: 0.35rem 0.75rem;
    border: 1px solid #1f2740;
    color: #cccccc;
}

.ag-pagination .current {
    background: #D4B45C;
    color: #0a0e1a;
    border-color: #D4B45C;
}

/* ----- Footer ----- */
.ag-site-footer {
    border-top: 1px solid #1f2740;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.ag-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ag-footer-col h3 {
    color: #D4B45C;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ag-footer-col p,
.ag-footer-col li {
    color: #888888;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Bandeau deontologie / RGPD (template « deontologie-ready ») */
.ag-footer-deonto {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #1f2740;
    text-align: center;
}
.ag-footer-legal {
    font-size: 0.82rem;
    line-height: 1.8;
}
.ag-footer-legal a {
    color: #D4B45C;
    text-decoration: none;
}
.ag-footer-legal a:hover {
    text-decoration: underline;
}
.ag-footer-legal .ag-sep {
    margin: 0 0.6rem;
    color: #444b63;
}
.ag-footer-deonto__notes {
    margin: 0.65rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
    color: #8a90a3;
    font-size: 0.76rem;
}
.ag-footer-deonto__notes .ag-deonto-item {
    white-space: nowrap;
}

.ag-footer-bottom {
    text-align: center;
    padding-top: 1rem;
    color: #666666;
    font-size: 0.82rem;
    border-top: 1px solid #1f2740;
}

.ag-footer-rdv {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 8px 18px;
    background: #D4B45C;
    color: #080808 !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 6px;
}

.ag-footer-col a {
    color: #D4B45C;
    text-decoration: none;
}

/* ----- WordPress core required ----- */
.alignleft {
    float: left;
    margin: 0 1rem 0.75rem 0;
}

.alignright {
    float: right;
    margin: 0 0 0.75rem 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 100%;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.wp-caption-text,
.gallery-caption {
    font-size: 0.82rem;
    color: #888888;
    text-align: center;
    padding-top: 0.3rem;
}

.bypostauthor {
    display: block;
}

.sticky {
    display: block;
}

.ag-sidebar, .widget-area, #ag-sidebar, .widget_pages, .widget_meta, .widget_archives, .widget_categories {
    display: none !important;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
    .ag-site-header__inner {
        flex-direction: column;
        text-align: center;
    }

    .ag-primary-menu {
        justify-content: center;
        gap: 0.75rem;
    }

    .ag-hero {
        padding: 2rem 1rem;
    }

    .ag-hero__title {
        font-size: 1.5rem;
    }

    .ag-cards {
        padding: 1.5rem 0;
    }
}

/* ============================================================
   AG Starter Avocat — composants métier (v1.1.0)
   ============================================================ */

/* ----- Section générique ----- */
.ag-section {
    padding: 3.5rem 0;
    border-top: 1px solid #1f2740;
}

.ag-section-title {
    font-size: 1.8rem;
    color: #D4B45C;
    text-align: center;
    margin-bottom: 0.5rem;
}

.ag-section-lead {
    text-align: center;
    color: #aaaaaa;
    max-width: 720px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.ag-container--narrow {
    max-width: 760px;
}

/* ----- Domaines d'expertise ----- */
.ag-domaines__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.ag-domaine-card {
    display: block;
    padding: 1.75rem;
    background: #131826;
    border: 1px solid #1f2740;
    border-radius: 6px;
    color: #e0e0e0;
    text-decoration: none;
}

.ag-domaine-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.ag-domaine-card__title {
    font-size: 1.15rem;
    color: #D4B45C;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.ag-domaine-card__excerpt {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.ag-domaine-card__examples {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.ag-domaine-card__examples li {
    color: #cccccc;
    font-size: 0.82rem;
    padding: 0.2rem 0 0.2rem 1rem;
    position: relative;
}

.ag-domaine-card__examples li::before {
    content: "·";
    color: #D4B45C;
    position: absolute;
    left: 0.3rem;
    font-weight: 700;
}

.ag-domaine-card__more {
    color: #D4B45C;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.ag-domaines__empty {
    text-align: center;
    padding: 2rem;
    background: #131826;
    border: 1px dashed #1f2740;
    border-radius: 6px;
}

.ag-domaines__hint {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* ----- Le Maître (base — dark mode default) ----- */
.ag-maitre {
    padding: 80px 0;
    background: #0F1320;
}
.ag-maitre__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    background: #131826;
    border: 1px solid rgba(212, 180, 92, 0.18);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.ag-maitre__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid rgba(212, 180, 92, 0.28);
    border-radius: 12px;
    display: block;
}
.ag-maitre__tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212, 180, 92, 0.12);
    color: #D4B45C;
    border: 1px solid rgba(212, 180, 92, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}
.ag-maitre__name {
    color: #D4B45C;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 6px;
    line-height: 1.2;
}
.ag-maitre__meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 18px;
}
.ag-maitre__bio {
    color: #f3f3f3;
    line-height: 1.75;
    margin-bottom: 14px;
}
.ag-maitre__specialties {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}
.ag-maitre__specialties strong {
    color: #D4B45C;
}

@media (max-width: 720px) {
    .ag-maitre__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
        gap: 24px;
    }
    .ag-maitre__photo {
        max-width: 240px;
        margin: 0 auto;
    }
}

/* ----- Honoraires ----- */
.ag-honoraires__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ag-honoraires__card {
    background: #131826;
    border: 1px solid #1f2740;
    border-top: 3px solid #D4B45C;
    padding: 2rem 1.5rem;
    text-align: center;
}

.ag-honoraires__price {
    color: #D4B45C;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.ag-honoraires__label {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.ag-honoraires__desc {
    color: #aaaaaa;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.ag-honoraires__note {
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    font-style: italic;
    margin-top: 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Cabinet (adresse + horaires + plan) ----- */
.ag-cabinet__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ag-cabinet__block-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ag-cabinet__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 720px) {
    .ag-cabinet__cards {
        grid-template-columns: 1fr;
    }
}

.ag-cabinet__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ag-cabinet__block h3 {
    color: #D4B45C;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ag-cabinet__block p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.ag-cabinet__block a {
    color: #D4B45C;
    text-decoration: none;
}

.ag-cabinet__emergency {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(184, 41, 41, 0.1);
    border: 1px solid rgba(184, 41, 41, 0.3);
    border-left: 3px solid #b82929;
    border-radius: 4px;
    color: #f0c0c0;
    font-size: 0.9rem;
}

.ag-cabinet__emergency a {
    color: #f0c0c0;
    font-weight: 700;
}

.ag-cabinet__map iframe {
    background: #131826;
}

@media (max-width: 720px) {
    .ag-cabinet__grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Formulaire RDV ----- */
.ag-rdv {
    background: #0c1019;
}

.ag-rdv__form {
    background: #131826;
    border: 1px solid #1f2740;
    padding: 2rem;
    border-radius: 6px;
}

.ag-rdv__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ag-rdv__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.ag-rdv__field label {
    color: #D4B45C;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.ag-rdv__field input,
.ag-rdv__field textarea,
.ag-rdv__field select {
    padding: 0.75rem;
    background: #0a0e1a;
    border: 1px solid #1f2740;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 4px;
}

.ag-rdv__field textarea {
    resize: vertical;
    min-height: 120px;
}

.ag-rdv__honeypot {
    position: absolute;
    left: -10000px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.ag-rdv__rgpd {
    margin: 1.25rem 0;
    padding: 1rem;
    background: #0a0e1a;
    border: 1px solid #1f2740;
    border-radius: 4px;
}

.ag-rdv__rgpd label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.6;
    cursor: pointer;
}

.ag-rdv__rgpd input[type="checkbox"] {
    margin-top: 0.25rem;
}

.ag-rdv__submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
}

.ag-rdv__legal {
    text-align: center;
    color: #888;
    font-size: 0.78rem;
    margin-top: 0.75rem;
    font-style: italic;
}

.ag-rdv__status {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.ag-rdv__status--success {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
    color: #b3e6c0;
}

.ag-rdv__status--error {
    background: rgba(184, 41, 41, 0.1);
    border-left: 3px solid #b82929;
    color: #f0c0c0;
}

@media (max-width: 600px) {
    .ag-rdv__row {
        grid-template-columns: 1fr;
    }
}

/* ----- Page hero ----- */
.ag-page-hero {
    text-align: center;
    padding: 3rem 1rem;
    background: #131826;
    border-bottom: 1px solid #1f2740;
}

.ag-page-hero__title {
    font-size: 1.8rem;
    color: #D4B45C;
    margin-bottom: 0;
}

.ag-page-hero__lead {
    color: #aaaaaa;
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

/* ----- Page article ----- */
.ag-page-content-wrap {
    max-width: 800px;
    padding: 2rem 1rem;
}

.ag-page-article {
    background: #131826;
    border: 1px solid #1f2740;
    padding: 2rem;
    border-radius: 6px;
}

/* ----- Archive / Blog grid ----- */
.ag-archive-wrap {
    padding: 2rem 1rem;
    max-width: 1100px;
}

.ag-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ag-post-card {
    background: #131826;
    border: 1px solid #1f2740;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ag-post-card__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ag-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-post-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ag-post-card__date {
    display: block;
    color: #D4B45C;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.ag-post-card__title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ag-post-card__title a {
    color: #fff;
    text-decoration: none;
}

.ag-post-card__excerpt {
    color: #aaa;
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

.ag-post-card__more {
    display: inline-block;
    margin-top: 0.75rem;
    color: #D4B45C;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.ag-no-results {
    color: #888;
    text-align: center;
    padding: 3rem 0;
}

@media (max-width: 900px) {
    .ag-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ag-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Hide day/night toggle in Free tier (CSS fallback) -----
   The Premium plugin adds body.ag-tier-premium or .ag-tier-business
   when active. In Free, neither class is present. So this rule
   matches Free and hides the toggle button regardless of header.php
   PHP conditions or stale caches. */
body:not(.ag-tier-premium):not(.ag-tier-business) .ag-theme-toggle {
    display: none !important;
}

/* Item actif du menu (page courante) : surligne en VIOLET #8B1A8B.
   La classe current-menu-item est posee par WordPress quand l'item de
   menu est lie a une page WP ; pour les liens custom, le JS du footer
   ajoute la classe en comparant l'URL active. */
.ag-primary-menu li.current-menu-item > a,
.ag-primary-menu li.current_page_item > a,
.ag-primary-menu li.current-menu-ancestor > a,
.ag-primary-nav li.current-menu-item > a,
.ag-primary-nav li.current_page_item > a,
.ag-primary-nav li.current-menu-ancestor > a {
    background: #8B1A8B !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}
