/* =============================
 *  Page À propos
 *  Styles pour [gd_a_propos] et [gd_accordeons]
 * ============================= */

/* Accordéon */
.gd-accordeon {
    margin-top: 0rem;
}

/* Grille 3 colonnes pour [gd_equipe] */
.gd-accordeon--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Tablette : 2 colonnes */
@media (max-width: 1024px) {
    .gd-accordeon--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : 1 colonne */
@media (max-width: 767px) {
    .gd-accordeon--grid {
        grid-template-columns: 1fr;
    }
}

.gd-accordeon__item {
    border-bottom: 1px solid #000;
    padding: 1rem 0;
}

/* Items en grille : bordures et padding adaptés */
.gd-accordeon--grid .gd-accordeon__item {
    border-bottom: none;
    border-top: 1px solid #000;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.gd-accordeon__header {
    width: 100%;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.2s ease;
    box-shadow: none !important;
    outline: none !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.gd-accordeon__header-content {
    flex: 1;
}

.gd-accordeon__header:hover .gd-accordeon__title,
.gd-accordeon__header:hover .gd-accordeon__icon,
.gd-accordeon__header:hover .gd-accordeon__subtitle {
    color: var(--e-global-color-accent) !important;
}

.elementor-active .gd-accordeon__title,
.elementor-active .gd-accordeon__icon,
.elementor-active .gd-accordeon__subtitle {
    color: var(--e-global-color-accent) !important;
}

.gd-accordeon__title {
    margin: 0;
    flex: 1;
    transition: color 0.2s ease;
}

.gd-accordeon__subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 0.95em;
    opacity: 0.8;
    transition: color 0.2s ease;
}

.gd-accordeon__icon {
    font-size: 1.5em;
    font-weight: 300;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.elementor-active .gd-accordeon__icon {
    transform: rotate(45deg);
}

.gd-accordeon__content {
    display: none;
}

.gd-accordeon__body {
    padding-bottom: 1.5rem;
}

/* Body en grille : padding réduit */
.gd-accordeon--grid .gd-accordeon__body {
    padding-bottom: 0;
    padding-top: 1rem;
}

/* Contenu défilable : image et texte */
.gd-accordeon__image {
    margin-bottom: 1.5rem;
}

.gd-accordeon__image img {
    display: block;
    width: 100%;
    height: auto;
}

.gd-accordeon__text {
    font-family: var(--e-global-typography-text-font-family, inherit) !important;
    font-size: var(--e-global-typography-text-font-size, inherit) !important;
    font-weight: var(--e-global-typography-text-font-weight, inherit) !important;
    line-height: var(--e-global-typography-text-line-height, 1.6) !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing, inherit) !important;
}

.gd-accordeon__text p {
    margin-bottom: 1rem;
    line-height: inherit !important;
}

.gd-accordeon__text p:last-child {
    margin-bottom: 0;
}

/* Collaborateurs : 3 colonnes équilibrées */
.gd-collaborateurs--columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gd-collaborateurs__col {
    display: flex;
    flex-direction: column;
}

/* Tablette : 2 colonnes */
@media (max-width: 1024px) {
    .gd-collaborateurs--columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : 1 colonne */
@media (max-width: 767px) {
    .gd-collaborateurs--columns {
        grid-template-columns: 1fr;
    }
}

/* Offres d'emploi (Articles) */
.gd-offres-emploi__item {
    border-top: 1px solid #000;
    padding: 0.5rem 0;
}

.gd-offres-emploi__item:first-child {
    border-top: none;
    padding-top: 0;
}

.gd-offres-emploi__item:last-child {
    border-bottom: 1px solid #000;
}

.gd-offres-emploi__title {
    margin: 0;
    font-weight: inherit;
}

.gd-offres-emploi__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Publications (Custom Post Type) */
.gd-publications__item {
    display: flex;
    gap: 2rem;
    padding: 0.5rem 0;
}

.gd-publications__item:first-child {
    padding-top: 0;
}

.gd-publications__item:not(:first-child) {
    border-top: 1px solid #000;
}

.gd-publications__item:last-child {
    border-bottom: 1px solid #000;
}

.gd-publications__date {
    flex-shrink: 0;
    min-width: 80px;
    color: var(--e-global-color-accent);
    font-weight: inherit;
}

.gd-publications__content-wrapper {
    flex: 1;
}

.gd-publications__title {
    margin: 0 0 0rem 0;
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gd-publications__title--bold {
    font-weight: 700 !important;
}

.gd-publications__acf-title {
    font-weight: 400 !important;
}

.gd-publications__pdf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background-color: #fff;
    border: 1px solid var(--e-global-color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.gd-publications__pdf-badge:hover {
    background-color: var(--e-global-color-accent);
    color: #fff;
}

.gd-publications__content {
    line-height: inherit !important;
}

.gd-publications__content p {
    margin-bottom: 1rem;
    line-height: inherit !important;
}

.gd-publications__content p:last-child {
    margin-bottom: 0;
}

/* Publications en accordéon : conserver les espacements d'origine de la liste */
.gd-accordeon--publications .gd-accordeon__body {
    padding-bottom: 0;
}

.gd-offres-emploi__title a:hover {
    color: var(--e-global-color-accent);
}

.gd-offres-emploi--empty {
    padding: 2rem 0;
    text-align: center;
    opacity: 0.6;
}
