@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap');

/* =========================================================
   Arkod Addon – Frontend styles
   ========================================================= */

/* ---------------------------------------------------------
   Agents grid
   --------------------------------------------------------- */
.arkod-agents-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(var(--arkod-cols, 3), 1fr);
}

/* Column overrides via shortcode attribute */
.arkod-agents-grid--cols-1 { --arkod-cols: 1; }
.arkod-agents-grid--cols-2 { --arkod-cols: 2; }
.arkod-agents-grid--cols-3 { --arkod-cols: 3; }
.arkod-agents-grid--cols-4 { --arkod-cols: 4; }

@media (max-width: 768px) {
    .arkod-agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .arkod-agents-grid {
        grid-template-columns: 1fr;
    }
}

.arkod-agent-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.arkod-agent-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.arkod-agent-card__avatar {
    text-align: center;
    padding: 24px 24px 0;
}

.arkod-agent-card__avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.arkod-agent-card__info {
    padding: 16px 24px 24px;
}

.arkod-agent-card__name {
    margin: 0 0 8px;
    font-size: 1.1em;
    font-weight: 600;
}

/* Type badge (Agent / Mandataire) */
.arkod-agent-card__type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: #e2e8f0;
    color: #475569;
}

.arkod-agent-card__type--agent {
    background: #dbeafe;
    color: #1d4ed8;
}

.arkod-agent-card__type--mandataire {
    background: #fef3c7;
    color: #92400e;
}

.arkod-agent-card__entreprise {
    font-size: 0.85em;
    color: #475569;
    margin: 0 0 8px;
}

.arkod-agent-card__bio {
    font-size: 0.9em;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.5;
}

.arkod-agent-card__phone {
    margin: 4px 0 8px;
    font-size: 0.9em;
}

.arkod-agent-card__phone a {
    color: inherit;
    text-decoration: none;
}

.arkod-agent-card__phone a:hover {
    text-decoration: underline;
}

/* Region(s) d'intervention */
.arkod-agent-card__regions {
    font-size: 0.85em;
    color: #475569;
    margin: 8px 0;
}

/* Social network links */
.arkod-agent-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.arkod-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.arkod-social:hover {
    opacity: 0.85;
    color: #fff;
}

.arkod-social--linkedin  { background: #0077b5; }
.arkod-social--facebook  { background: #1877f2; }
.arkod-social--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.arkod-social--twitter   { background: #000; }

/* ---------------------------------------------------------
   Agents carousel (Swiper)
   --------------------------------------------------------- */
.arkod-agents-carousel {
    position: relative;
    height: 100%;
    width: 100%;
}

.arkod-agents-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 48px; /* room for pagination dots */
}

.arkod-agents-swiper .swiper-slide {
    height: auto; /* equal-height cards */
}

/* Carte agent carousel */
.arkod-carousel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.arkod-carousel-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.arkod-carousel-card__photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.arkod-carousel-card__photo-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.arkod-carousel-card:hover .arkod-carousel-card__photo-img {
    transform: scale(1.04);
}

.arkod-carousel-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
}

.arkod-carousel-card__name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.2;
    color: inherit;
}

.arkod-carousel-card__company {
    font-size: 0.85em;
    color: #475569;
    margin: 0;
}

.arkod-carousel-card__phone {
    margin: 0;
    font-size: 0.9em;
}

.arkod-carousel-card__phone a {
    color: inherit;
    text-decoration: none;
}

.arkod-carousel-card__phone a:hover {
    text-decoration: underline;
}

.arkod-carousel-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}

/* Navigation buttons */
.arkod-agents-carousel .swiper-button-prev,
.arkod-agents-carousel .swiper-button-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    margin-top: calc(-44px / 2 - 24px); /* offset above pagination */
}

.arkod-agents-carousel .swiper-button-prev svg,
.arkod-agents-carousel .swiper-button-next svg{
    height: 66%;
    width: 66%;
}

.arkod-agents-carousel .swiper-button-prev svg path,
.arkod-agents-carousel .swiper-button-next svg path{
    fill:var(--primary);
}

.arkod-agents-carousel .swiper-button-prev:hover,
.arkod-agents-carousel .swiper-button-next:hover {
    background: #f8fafc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.arkod-agents-carousel .swiper-button-prev::after,
.arkod-agents-carousel .swiper-button-next::after {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.arkod-agents-carousel .swiper-button-prev.swiper-button-disabled,
.arkod-agents-carousel .swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
}

/* Pagination dots */
.arkod-agents-carousel .swiper-pagination {
    bottom: 0;
}

.arkod-agents-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.arkod-agents-carousel .swiper-pagination-bullet-active {
    background: #374151;
    transform: scale(1.3);
}

/* Responsive : hide arrows on mobile (native swipe) */
@media (max-width: 640px) {
    .arkod-agents-carousel .swiper-button-prev,
    .arkod-agents-carousel .swiper-button-next { display: none; }
}

/* --- Dark theme --- */
.arkod-agents-carousel--dark .arkod-carousel-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.arkod-agents-carousel--dark .arkod-carousel-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.arkod-agents-carousel--dark .arkod-carousel-card__name {
    color: #f5f0e8;
}

.arkod-agents-carousel--dark .arkod-carousel-card__company {
    color: rgba(255, 255, 255, 0.55);
}

.arkod-agents-carousel--dark .arkod-carousel-card__phone a {
    color: rgba(255, 255, 255, 0.8);
}

.arkod-agents-carousel--dark .swiper-button-prev,
.arkod-agents-carousel--dark .swiper-button-next {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.arkod-agents-carousel--dark .swiper-button-prev:hover,
.arkod-agents-carousel--dark .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.arkod-agents-carousel--dark .swiper-button-prev::after,
.arkod-agents-carousel--dark .swiper-button-next::after {
    color: rgba(255, 255, 255, 0.85);
}

.arkod-agents-carousel--dark .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.25);
}

.arkod-agents-carousel--dark .swiper-pagination-bullet-active {
    background: #f5f0e8;
}

/* ---------------------------------------------------------
   FAQ list (accordion)
   Fidèle au design du template : DM Sans, icône cercle +/×
   --------------------------------------------------------- */
.arkod-faq-list {
    border-top: 1px solid #EDE6D8;
}

.arkod-faq-item {
    border-bottom: 1px solid #EDE6D8;
    overflow: hidden;
}

/* Question : flex space-between pour aligner l'icône à droite */
.arkod-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5em;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icône cercle avec + qui tourne à 45° (→ ×) à l'ouverture */
.arkod-faq-item__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 1.15em;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.arkod-faq-item__icon::before {
    content: '+';
}

/* Supprime les anciens pseudo-éléments de barres */
.arkod-faq-item__icon::after {
    display: none;
}

/* Réponse : animation max-height (override [hidden] pour la transition) */
.arkod-faq-item__answer {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-bottom 0.4s ease;
    padding-bottom: 0;
}

.arkod-faq-item__answer:not([hidden]) {
    max-height: 600px;
    padding-bottom: 1.25em;
}

.arkod-faq-item__answer-inner {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1.15em;
    font-weight: 300;
    line-height: 1.8;
}

/* ---------------------------------------------------------
   FAQ – thèmes
   light = fond blanc/clair, dark = fond navy
   --------------------------------------------------------- */

/* Fond clair (défaut) */
.arkod-faq-list--light {
    border-top-color: #EDE6D8;
}

.arkod-faq-list--light .arkod-faq-item {
    border-bottom-color: #EDE6D8;
}

.arkod-faq-list--light .arkod-faq-item__question {
    color: #090E1D;
}

.arkod-faq-list--light .arkod-faq-item__question:hover {
    color: #C9A96E;
}

.arkod-faq-list--light .arkod-faq-item__icon {
    border: 1px solid #D4D8E6;
    color: #8A8FA8;
}

.arkod-faq-list--light .arkod-faq-item__question[aria-expanded="true"] .arkod-faq-item__icon {
    background: #090E1D;
    color: #fff;
    border-color: #090E1D;
    transform: rotate(45deg);
}

.arkod-faq-list--light .arkod-faq-item__answer-inner {
    color: #8A8FA8;
}

/* Fond sombre (navy) */
.arkod-faq-list--dark {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.arkod-faq-list--dark .arkod-faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.arkod-faq-list--dark .arkod-faq-item__question {
    color: #fff;
}

.arkod-faq-list--dark .arkod-faq-item__question:hover {
    color: #E2C99A;
}

.arkod-faq-list--dark .arkod-faq-item__icon {
    border: 1px solid rgba(201, 169, 110, 0.4);
    color: #C9A96E;
}

.arkod-faq-list--dark .arkod-faq-item__question[aria-expanded="true"] .arkod-faq-item__icon {
    background: #C9A96E;
    color: #090E1D;
    border-color: #C9A96E;
    transform: rotate(45deg);
}

.arkod-faq-list--dark .arkod-faq-item__answer-inner {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------
   Shared form base (.arkod-form__*)
   Used by partner form and future forms.
   The estimation form keeps its own prefixed classes for compat.
   --------------------------------------------------------- */

/* Wrappers */
.arkod-estimation-form-wrap,
.arkod-partner-form-wrap {
    max-width: 680px;
}

.arkod-partner-form-wrap {
    max-width: 760px; /* wider – more fields */
}

/* Grid */
.arkod-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 560px) {
    .arkod-form__grid {
        grid-template-columns: 1fr;
    }
}

.arkod-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arkod-form__field--full {
    grid-column: 1 / -1;
}

.arkod-form__field label {
    font-weight: 600;
    font-size: 0.9em;
}

/* Inputs & selects */
.arkod-form__field input,
.arkod-form__field select,
.arkod-form__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    color: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.arkod-form__field input:focus,
.arkod-form__field select:focus,
.arkod-form__field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.arkod-form__field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Custom select arrow */
.arkod-form__select-wrap {
    position: relative;
}

.arkod-form__select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    pointer-events: none;
}

.arkod-form__select-wrap select {
    padding-right: 36px;
    cursor: pointer;
}

/* Footer */
.arkod-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.arkod-form__required-note {
    font-size: 0.85em;
    color: #64748b;
    margin: 0;
}

/* Submit button */
.arkod-form__submit {
    display: inline-block;
    padding: 12px 28px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.arkod-form__submit:hover {
    background: #135e96;
}

.arkod-form--loading .arkod-form__submit {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Feedback message */
.arkod-form__message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.5;
}

.arkod-form__message--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.arkod-form__message--error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #9b2c2c;
}

.arkod-form__title {
    margin-bottom: 24px;
}

/* ---------------------------------------------------------
   Estimation form
   --------------------------------------------------------- */
.arkod-estimation-form-wrap {
    max-width: 680px;
}

.arkod-estimation-form__title {
    margin-bottom: 24px;
}

.arkod-estimation-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 560px) {
    .arkod-estimation-form__grid {
        grid-template-columns: 1fr;
    }
}

.arkod-estimation-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arkod-estimation-form__field--full {
    grid-column: 1 / -1;
}

.arkod-estimation-form__field label {
    font-weight: 600;
    font-size: 0.9em;
}

.arkod-required {
    color: #e53e3e;
    margin-left: 2px;
}

.arkod-estimation-form__field input,
.arkod-estimation-form__field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    color: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.arkod-estimation-form__field input:focus,
.arkod-estimation-form__field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* Error state */
.arkod-field-error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

/* Custom select arrow */
.arkod-estimation-form__select-wrap {
    position: relative;
}

.arkod-estimation-form__select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    pointer-events: none;
}

.arkod-estimation-form__select-wrap select {
    padding-right: 36px;
    cursor: pointer;
}

/* Honeypot – hidden from real users */
.arkod-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Footer */
.arkod-estimation-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.arkod-estimation-form__required-note {
    font-size: 0.85em;
    color: #64748b;
    margin: 0;
}

/* Submit button */
.arkod-estimation-form__submit {
    display: inline-block;
    padding: 12px 28px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.arkod-estimation-form__submit:hover {
    background: #135e96;
}

.arkod-estimation-form--loading .arkod-estimation-form__submit {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Feedback message */
.arkod-estimation-form__message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.5;
}

.arkod-estimation-form__message--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.arkod-estimation-form__message--error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #9b2c2c;
}

/* ---------------------------------------------------------
   Articles grid ([arkod_articles_grid])
   Design tokens: --navy #090E1D, --gold #C9A96E, --cream #F7F2EA
   --------------------------------------------------------- */

/* Wrapper */
.arkod-articles-wrap {
    position: relative;
    width: 100%;
}

/* Loading state – dim the grid */
.arkod-articles--loading .arkod-articles-grid {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ── Toolbar (search) ─────────────────────────────────── */
.arkod-articles-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.arkod-articles-search-wrap {
    display: flex;
    flex: 1;
    max-width: 480px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arkod-articles-search__input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 0.95em;
    font-family: inherit;
    color: #090E1D;
    background: transparent;
    min-width: 0;
}

.arkod-articles-search__input::placeholder {
    color: #94a3b8;
}

.arkod-articles-search__btn {
    padding: 10px 18px;
    background: #C9A96E;
    color: #090E1D;
    border: none;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.arkod-articles-search__btn:hover {
    background: #b8924d;
}

/* ── Category filters ─────────────────────────────────── */
.arkod-articles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.arkod-articles-filter {
    padding: 6px 18px;
    border-radius: 100px;
    border: 1px solid #d1d5db;
    background: transparent;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.arkod-articles-filter:hover {
    background: #090E1D;
    border-color: #090E1D;
    color: #fff;
}

.arkod-articles-filter.active {
    background: #090E1D;
    border-color: #090E1D;
    color: #fff;
}

/* ── Grid ─────────────────────────────────────────────── */
.arkod-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    transition: opacity 0.2s ease;
}

/* ── Article card ─────────────────────────────────────── */
.arkod-article-card {
    border: 1px solid #EDE6D8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}

.arkod-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(9, 14, 29, 0.12);
}

/* Thumbnail area */
.arkod-article-card__img {
    display: block;
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #090E1D 0%, #1C2540 100%);
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.arkod-article-card__img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.arkod-article-card:hover .arkod-article-card__img-el {
    transform: scale(1.04);
}

/* Bottom gradient overlay */
.arkod-article-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(9,14,29,0.55) 100%);
    pointer-events: none;
}

/* Category badge */
.arkod-article-card__category {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 3px 10px;
    background: #C9A96E;
    color: #090E1D;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Card body */
.arkod-article-card__content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.arkod-article-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.arkod-article-card__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #090E1D;
    margin: 0;
}

.arkod-article-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.arkod-article-card__title a:hover {
    color: #C9A96E;
}

.arkod-article-card__excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.arkod-article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #C9A96E;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s ease, color 0.2s ease;
}

.arkod-article-card__link:hover {
    color: #b8924d;
    gap: 8px;
}

/* ── Pagination ───────────────────────────────────────── */
.arkod-articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3rem;
}

.arkod-articles-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: transparent;
    font-size: 0.9rem;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.arkod-articles-page-btn:hover:not(:disabled):not(.active) {
    background: #090E1D;
    border-color: #090E1D;
    color: #fff;
}

.arkod-articles-page-btn.active {
    background: #C9A96E;
    border-color: #C9A96E;
    color: #090E1D;
    font-weight: 700;
    cursor: default;
}

.arkod-articles-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.arkod-articles-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    color: #94a3b8;
    pointer-events: none;
}

/* ── Empty state ──────────────────────────────────────── */
.arkod-articles-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    grid-column: 1 / -1;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .arkod-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .arkod-articles-grid {
        grid-template-columns: 1fr;
    }

    .arkod-articles-search-wrap {
        max-width: 100%;
    }

    .arkod-articles-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------------------------------------------------------
   Agents archive wrapper ([arkod_agents_grid] enrichi)
   Réutilise les classes .arkod-articles-* pour toolbar,
   filtres et pagination.
   --------------------------------------------------------- */
.arkod-agents-archive-wrap {
    position: relative;
    width: 100%;
}

.arkod-agents-archive--loading .arkod-agents-grid {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ---------------------------------------------------------
   FAQ advanced ([arkod_faq_advanced])
   --------------------------------------------------------- */
.arkod-faq-advanced-wrap {
    position: relative;
    width: 100%;
}

.arkod-faq-advanced--loading .arkod-faq-list {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
