/*
 * Thème personnalisé — Philippe Latrémolière
 * Chargé par Cassiopeia via « template.user » (ne fait pas partie du cœur Joomla).
 *
 * Direction : interface sombre et technique, inspirée des thèmes « agence » récents
 * (fond noir profond, titres en gras très marqués, accent bleu électrique en dégradé,
 * boutons en pilule avec pastille fléchée, cartes sombres à filet discret).
 * Les couleurs des photos restent au premier plan.
 *
 *   fond         #0a1222  (profond #070d1a)
 *   surface      #0f1a2b  (cartes)   #111b26 (relevé)   #1d3048 (filets)
 *   texte        #a6bfdc  (titres)   #c4d0dc (corps)    #8ea0b3 (secondaire)
 *   accent       #1ea7ff  (survol #56c3ff)   dégradé #0b6fd8 -> #19b4ff
 */

:root,
html[data-bs-theme],
html[data-bs-theme="light"] {
    --body-bg: #0a1222;
    --body-bg-rgb: 10, 18, 34;
    --body-color: #c4d0dc;
    --body-color-rgb: 196, 208, 220;
    --bs-body-bg: #0a1222;
    --bs-body-color: #c4d0dc;
    --bs-emphasis-color: #a6bfdc;
    --bs-secondary-color: #8ea0b3;
    --bs-secondary-bg: #111b26;
    --bs-tertiary-bg: #0f1a2b;
    --bs-border-color: #1d3048;
    --bs-border-color-translucent: rgba(160, 190, 220, 0.12);
    --bs-link-color: #1ea7ff;
    --bs-link-hover-color: #56c3ff;
    --bs-link-color-rgb: 30, 167, 255;
    --bs-link-hover-color-rgb: 86, 195, 255;
    --link-color: #1ea7ff;
    --link-color-rgb: 30, 167, 255;
    --link-hover-color: #56c3ff;
    --link-hover-color-rgb: 86, 195, 255;
    --cassiopeia-color-primary: #1ea7ff;
    --cassiopeia-color-link: #1ea7ff;
    --cassiopeia-color-hover: #56c3ff;
    --template-bg-light: #0f1a2b;
    --template-text-dark: #c4d0dc;
    --template-text-light: #0a1222;
    --template-special-color: #1ea7ff;
    --headerbg: #0a1222;
    --headercolor: #a6bfdc;
    --footerbg: #070d1a;
    --footercolor: #8ea0b3;
    --btnbg: #1ea7ff;
    --btnbgh: #56c3ff;
    --btncolor: #ffffff;
    --btncolorh: #ffffff;
}

/* ---------- Fond et typographie ---------- */

html,
html body {
    background-color: #0a1222;
    color: #c4d0dc;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    /* Fond uni, sans halos ni texture */
    background: #0a1222;
}

h1, h2, h3, h4, h5, h6,
.page-header,
.item-title {
    color: #a6bfdc;
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1,
.page-header h1 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}

/* Petite barre bleue devant le titre de page (pas de texte ajouté) */
.page-header h1 {
    position: relative;
    padding-top: 0.9rem;
}

.page-header h1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2.75rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0b6fd8, #19b4ff);
}

a {
    color: #1ea7ff;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover,
a:focus {
    color: #56c3ff;
}

::selection {
    background: #0b6fd8;
    color: #ffffff;
}

/* ---------- En-tête et navigation ---------- */

.header,
.container-header,
.navbar,
.masthead {
    background: #0a1222 !important;
    border-bottom: 1px solid #1d3048;
    box-shadow: none;
}

.brand-logo span {
    color: #a6bfdc;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.container-nav .navbar,
.container-nav .mod-menu,
.container-nav .nav-link {
    color: #c4d0dc;
}

.nav-link:hover,
.nav-link.active,
.mod-menu a:hover {
    color: #56c3ff !important;
}

/* ---------- Articles et listes : cartes sombres ---------- */

.item-page,
.blog,
.blog-featured,
.blog-item,
.com-content-article,
.com-content-category-blog,
.com-content-category-list {
    color: #c4d0dc;
}

.blog .item,
.blog-item,
.com-content-category-blog__item,
.com-content-category-list__item,
.card {
    background: #0f1a2b;
    border: 1px solid #1d3048;
    border-radius: 18px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog .item:hover,
.blog-item:hover,
.com-content-category-blog__item:hover,
.com-content-category-list__item:hover,
.card:hover {
    border-color: rgba(30, 167, 255, 0.5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(30, 167, 255, 0.12);
    transform: translateY(-3px);
}

.card-header {
    background: #0f1a2b;
    border-bottom: 1px solid #1d3048;
    color: #a6bfdc;
    font-weight: 700;
}

.article-info,
.article-info dd,
.article-info dt,
.category-info,
.btn-link,
.text-muted,
small {
    color: #8ea0b3 !important;
}

.article-logo img,
.img-article-logo,
.item-image img {
    border-radius: 12px;
    border: 1px solid #1d3048;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

/* Descriptions de catégorie (ancien site) */
#category-intro {
    color: #aebccb;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 70ch;
    margin: 0 0 2rem;
}

#category-gallery {
    margin: 0 0 2.5rem;
}

/* ---------- Boutons : pilules à dégradé, pastille fléchée ---------- */

.btn,
.btn-primary,
.btn-secondary {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.65rem 1.5rem;
}

.btn-primary,
.btn-secondary,
.readmore .btn {
    background: linear-gradient(90deg, #0b6fd8 0%, #1487d6 100%);
    border: 0;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(30, 167, 255, 0.22);
}

.btn-primary:hover,
.btn-secondary:hover,
.readmore .btn:hover {
    background: linear-gradient(90deg, #1487d6 0%, #1ea7ff 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(30, 167, 255, 0.35);
}

/* ---------- Champs de formulaire ---------- */

.form-control,
.form-select,
.input-group-text,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    background-color: #0f1a2b;
    border: 1px solid #1d3048;
    border-radius: 12px;
    color: #a6bfdc;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus {
    background-color: #0f1a2b;
    border-color: #1ea7ff;
    box-shadow: 0 0 0 0.2rem rgba(30, 167, 255, 0.22);
    color: #ffffff;
}

.form-control::placeholder {
    color: #5d6e80;
}

/* Termes trouvés (balise mark, ex. résultats de recherche) : bleu du site au lieu du jaune pâle */
html body mark,
html body .mark {
    color: #ffffff;
    background-color: rgba(30, 167, 255, 0.35);
    border-radius: 3px;
    padding: 0.1875em 0.1em;
}

/* Listes déroulantes : l'image de fond de Cassiopeia (select-bg.svg) peint un rectangle blanc
 * par-dessus le fond sombre. On la remplace par une flèche claire sur le même fond sombre. */
html body .form-select,
html body select.advancedSelect {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a6bfdc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px 8px;
    background-color: #0f1a2b;
}

/* ---------- Pagination : pastilles ---------- */

.edsa-pagination {
    margin: 2.5rem 0 1rem;
}

.edsa-pagination__counter {
    color: #8ea0b3;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    text-align: center;
}

.pagination .page-link {
    background: transparent;
    border: 1px solid #1d3048;
    border-radius: 999px;
    color: #c4d0dc;
    min-width: 2.5rem;
    margin: 0 0.2rem 0.4rem;
    text-align: center;
}

.pagination .page-link:hover {
    background: rgba(30, 167, 255, 0.1);
    border-color: #1ea7ff;
    color: #ffffff;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(90deg, #0b6fd8 0%, #1487d6 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(30, 167, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #3a4a5c;
    border-color: #13202d;
}

/* ---------- Recherche Smart Search ---------- */

.mod-finder__search input,
.mod-finder .finder input {
    background-color: #0f1a2b;
    border: 1px solid #1d3048;
    border-radius: 999px;
    color: #a6bfdc;
}

/* ---------- Galeries RoyalSlider (ajout edsagallery) ---------- */

.edsa-gallery.royalSlider.rsDefault {
    width: 100% !important;
    max-width: 100%;
    margin: 1.75rem 0 2.75rem;
    background: #070d1a !important;
    border: 1px solid #1d3048;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.edsa-gallery.royalSlider.rsDefault .rsOverflow,
.edsa-gallery.royalSlider.rsDefault .rsContainer,
.edsa-gallery.royalSlider.rsDefault .rsSlide {
    background: #070d1a;
}

.edsa-gallery.royalSlider.rsDefault .rsImg {
    box-shadow: none;
}

.edsa-gallery.royalSlider.rsDefault .rsThumbsHor,
.edsa-gallery.royalSlider.rsDefault .rsThumbsContainer,
.edsa-gallery.royalSlider.rsDefault .rsThumbs {
    background: #0f1a2b !important;
    border-top: 1px solid #1d3048;
}

.edsa-gallery.royalSlider.rsDefault .rsThumb {
    opacity: 0.5;
    transition: opacity 0.25s ease;
    border: 1px solid transparent;
    border-radius: 8px;
}

.edsa-gallery.royalSlider.rsDefault .rsThumb:hover,
.edsa-gallery.royalSlider.rsDefault .rsThumb.rsNavSelected {
    opacity: 1;
}

.edsa-gallery.royalSlider.rsDefault .rsThumb.rsNavSelected {
    background: transparent !important;
    border-color: #1ea7ff;
}

.edsa-gallery.royalSlider.rsDefault .rsThumb img {
    object-fit: cover;
    filter: none;
    opacity: 1;
}

.edsa-gallery.royalSlider.rsDefault .rsThumbsArrow {
    background: rgba(10, 18, 34, 0.85) !important;
    color: #1ea7ff;
}

.edsa-gallery.royalSlider.rsDefault .rsArrow {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.edsa-gallery.royalSlider.rsDefault .rsArrow:hover {
    opacity: 1;
}

.edsa-gallery.royalSlider.rsDefault .rsFullscreenBtn {
    opacity: 0.7;
}

.rsDefault .rsGCaption,
.rsDefault .rsCaption {
    color: #a6bfdc;
    background: rgba(10, 18, 34, 0.8);
}

/* ---------- Titres d'articles : blancs, soulignés seulement au survol ---------- */

.item-title a,
.blog-item h2 a,
.mod-articles-title a,
.mod-articles-link,
.com-content-category-blog__item h2 a {
    color: #a6bfdc !important;
    text-decoration: none;
}

.item-title a:hover,
.blog-item h2 a:hover,
.mod-articles-title a:hover,
.mod-articles-link:hover,
.com-content-category-blog__item h2 a:hover {
    color: #56c3ff !important;
    text-decoration: underline;
    text-decoration-color: rgba(86, 195, 255, 0.5);
    text-underline-offset: 4px;
}

/* ---------- Listes de catégorie : titres alignés sur l'accueil ---------- */

.com-content-category-blog__item .page-header,
.com-content-category-list__item .page-header,
.blog-item .page-header {
    border-bottom: 0;
    margin: 0 0 0.75rem;
    padding: 0;
}

.com-content-category-blog__item .page-header h2,
.com-content-category-list__item .page-header h2,
.blog-item .page-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0;
}

.com-content-category-blog__item .page-header h2 a,
.com-content-category-list__item .page-header h2 a,
.blog-item .page-header h2 a {
    color: #a6bfdc;
    text-decoration: none;
}

.com-content-category-blog__item .page-header h2 a:hover,
.com-content-category-list__item .page-header h2 a:hover,
.blog-item .page-header h2 a:hover {
    color: #56c3ff;
}

.blog-items.items-leading .blog-item:first-child,
.com-content-category-blog__items .blog-item:first-child {
    padding: 1.5rem;
}

/* ---------- Pied de page ---------- */

.footer,
.container-footer,
footer {
    background: #070d1a !important;
    color: #8ea0b3;
    border-top: 1px solid #1d3048;
}

/* ---------- Défilement ---------- */

::-webkit-scrollbar {
    width: 10px;
    background: #0a1222;
}

::-webkit-scrollbar-thumb {
    background: #1d3048;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a4054;
}

/* ---------- Menu principal Maximenu CK (#maximenuck110) ----------
 * Le fichier CSS de Maximenu code ses couleurs en dur (#3598db, #016da0, #f0f0f0…).
 * Sélecteurs renforcés (html body …) pour passer après sa feuille de style. */

html body div#maximenuck110 ul.maximenuck {
    background: rgba(12, 18, 25, 0.92) !important;
    border: 1px solid #1d3048;
    border-radius: 999px;
    padding: 0.2rem 0.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.separator,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.titreck,
html body div#maximenuck110 span.titreck,
html body div#maximenuck110 span.titreck-text {
    color: #dbe5ef !important;
    background: transparent !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a:hover,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1:hover > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1:hover > span.separator {
    color: #56c3ff !important;
    background: rgba(30, 167, 255, 0.08) !important;
    border-radius: 999px;
}

/* Élément actif : pastille en dégradé bleu, comme le bouton d'action */
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.active,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.current,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.parent.active {
    background: linear-gradient(90deg, #0b6fd8 0%, #1487d6 100%) !important;
    border-radius: 999px;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.active > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.active > span.separator,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.current > a {
    color: #ffffff !important;
    background: transparent !important;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a::after,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.parent:hover > span.separator:after,
html body div#maximenuck110 ul.maximenuck li.level1.parent > span.separator:after {
    border-color: #1ea7ff transparent transparent transparent !important;
}

/* Sous-menus (déroulants) */
html body div#maximenuck110 ul.maximenuck2,
html body div#maximenuck110 div.floatck,
html body div#maximenuck110 div.maxidrop-main {
    background: #0f1a2b !important;
    border: 1px solid #1d3048 !important;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6) !important;
}

html body div#maximenuck110 ul.maximenuck2 li.maximenuck:hover {
    background: rgba(30, 167, 255, 0.08) !important;
    border-radius: 10px;
}

html body div#maximenuck110 ul.maximenuck2 a,
html body div#maximenuck110 ul.maximenuck2 li.maximenuck > span.separator,
html body div#maximenuck110 ul.maximenuck2 li.maximenuck span.titreck {
    color: #dbe5ef !important;
}

html body div#maximenuck110 ul.maximenuck2 li.maximenuck:hover > a,
html body div#maximenuck110 ul.maximenuck2 li.maximenuck:hover > span.separator {
    color: #56c3ff !important;
}

html body div#maximenuck110 span.descck {
    color: #8ea0b3 !important;
}

html body div#maximenuck110 .maximenumobiletogglericonck {
    color: #dbe5ef !important;
}

/* Commentaires de l'auteur : décalés vers la droite, avec un liseré bleu et un badge */
.edsa-comment--author {
    margin-left: min(3rem, 12%);
    border-left: 3px solid #1ea7ff;
    border-radius: 8px;
    background: rgba(30, 167, 255, 0.08);
}

/* Commentaires des visiteurs : le texte est décalé un peu à droite, le prénom reste à gauche */
.edsa-comment:not(.edsa-comment--author) .edsa-comment__text {
    margin-left: min(1.5rem, 6%);
}

.edsa-comment__badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #1ea7ff;
    color: #0a1222;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Page d'un article : la miniature (.article-logo) n'est affichée que dans les listes, pas sur l'article */
body.view-article .article-logo {
    display: none !important;
}

/* ---------- Miniature d'article avec ombrage (reprise de l'ancien site) ----------
 * L'ancien site superposait /images/shadow150x150.png sur la vignette 150 × 150.
 * Ici : même image, posée en pseudo-élément, sans modifier le HTML des articles. */

.article-logo {
    position: relative;
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 0 0.9rem;
}

.article-logo img.img-article-logo {
    display: block;
    width: 150px;
    height: 150px;
    max-width: none;
    object-fit: cover;
    border-radius: 12px;
}

.article-logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: url("../images/shadow150x150.png") no-repeat center / 150px 150px;
    pointer-events: none;
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
    .blog .item,
    .blog-item,
    .com-content-category-blog__item,
    .com-content-category-list__item,
    .card,
    .btn,
    .rsDefault .rsThumb img {
        transition: none;
        transform: none;
    }
}

/* ---------- Cartes d'articles : même marge intérieure et espacement pour toutes ---------- */
.blog-items .blog-item,
.com-content-category-blog__items .blog-item {
    padding: 1.5rem !important;
    margin-bottom: 1.25rem;
}

.blog-items .blog-item:last-child,
.com-content-category-blog__items .blog-item:last-child {
    margin-bottom: 0;
}

/* ---------- Titres d'articles : dégradé et filet (accueil, catégories, module aléatoire) ---------- */
.blog-item h2 a,
.item-title a,
.mod-articles-title a,
.mod-articles-link,
.com-content-category-blog__item h2 a {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 55%, #8fd3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-decoration: none;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.blog-item h2 a:hover,
.item-title a:hover,
.mod-articles-title a:hover,
.mod-articles-link:hover,
.com-content-category-blog__item h2 a:hover {
    background: linear-gradient(90deg, #56c3ff 0%, #1ea7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.blog-item .page-header,
.com-content-category-blog__item .page-header,
.com-content-category-list__item .page-header {
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: 0.9rem;
}

.blog-item .page-header::after,
.com-content-category-blog__item .page-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0b6fd8, #19b4ff);
}

/* ---------- Titres d'articles : blanc net, filet d'accent sous le titre (accueil et catégories) ---------- */
h2.item-title,
.blog-item h2,
.com-content-category-blog__item h2 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
}

h2.item-title::after,
.blog-item h2::after,
.com-content-category-blog__item h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0b6fd8, #19b4ff);
}

html body .blog-item h2 a,
html body .item-title a,
html body .mod-articles-title a,
html body .mod-articles-link,
html body .com-content-category-blog__item h2 a {
    background: none !important;
    -webkit-text-fill-color: #a6bfdc;
    color: #a6bfdc !important;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

html body .blog-item h2 a:hover,
html body .item-title a:hover,
html body .mod-articles-title a:hover,
html body .mod-articles-link:hover,
html body .com-content-category-blog__item h2 a:hover {
    -webkit-text-fill-color: #56c3ff;
    color: #56c3ff !important;
    text-decoration: none;
}

/* ---------- Miniatures de galerie : carrées, taille maximale de la bande ---------- */
.edsa-gallery.royalSlider.rsDefault .rsThumbsHor {
    height: 128px !important;
    padding: 8px 0 !important;
}

.edsa-gallery.royalSlider.rsDefault .rsThumbsContainer {
    height: 112px !important;
}

.edsa-gallery.royalSlider.rsDefault .rsThumb {
    width: 112px !important;
    height: 112px !important;
    margin-right: 8px;
    overflow: hidden;
}

.edsa-gallery.royalSlider.rsDefault .rsThumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}

/* ---------- Bandeau d'en-tête (reprise de l'ancien site) ----------
 * Photo header5 de l'ancien site en fond, avec un voile sombre pour la lisibilité du menu.
 * Logo de l'ancien site dans la zone de marque. */
html body .header,
html body .container-header {
    background:
        linear-gradient(180deg, rgba(10, 18, 34, 0.55) 0%, rgba(10, 18, 34, 0.92) 100%),
        url("../images/header-latremoliere.jpg") center center / 1500px auto no-repeat !important;
    border-bottom: 1px solid #1d3048;
    min-height: 170px;
}

html body .header .brand-logo img,
html body .container-header .brand-logo img {
    max-height: 72px;
    width: auto;
    height: auto;
}

html body .header .brand-logo,
html body .container-header .brand-logo {
    display: inline-block;
}

/* ---------- Largeur du site : 1000 px, centré ---------- */
html body .site-grid,
html body .container-header,
html body .container-nav,
html body .container-main,
html body .container-footer,
html body .container-xxl,
html body .container-xl,
html body .container-lg,
html body .container-fluid,
html body .container-sidebar-right,
html body .grid-child.container-component {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

/* ---------- Page « Auteur » : photo à droite, citation sous la photo ---------- */
*:has(> .texte_latremoliere) {
    display: flow-root;
}

.citation {
    font-style: italic;
}

.texte_latremoliere + .citation,
p.citation {
    float: right;
    clear: right;
    width: 42%;
    margin: 0 0 1.25rem 1.75rem;
    text-align: left;
}

.texte_latremoliere .image_latremoliere {
    float: right;
    max-width: 42%;
    height: auto;
    margin: 0.25rem 0 1.25rem 1.75rem;
    border-radius: 14px;
    border: 1px solid #1d3048;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
    p.citation { float: none; width: auto; margin: 0 0 1.25rem; }
    .texte_latremoliere .image_latremoliere {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 0 1.25rem;
    }
}

/* ---------- Pied de page (reprise de l'ancien site) ----------
 * Réseaux sociaux (icônes), identité, licence Creative Commons (sprite) et « haut de page ». */
.edsa-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.25rem 0 0.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
}






.edsa-footer__info {
    color: #8ea0b3;
}

.edsa-footer__name {
    color: #a6bfdc;
    font-weight: 700;
}

.edsa-footer__license {
    margin-top: 0.35rem;
}

.edsa-footer__cc {
    display: inline-block;
    vertical-align: middle;
    width: 88px;
    height: 31px;
    margin-left: 0.4rem;
    background: url("../images/footer-category-icons.png") 0 -40px no-repeat;
}




@media (max-width: 640px) {
    .edsa-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Compteur natif de Joomla masqué : le compteur « Page X sur Y » est rendu par la pagination Cassiopeia */
p.counter.float-end {
    display: none !important;
}

/* Pied de page : pleine largeur du site */
.edsa-footer-module,
.mod-custom.edsa-footer-module {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    grid-column: 1 / -1;
}

.container-footer .mod-custom,
.container-footer .moduletable,
.container-footer .edsa-footer {
    width: 100% !important;
    max-width: 100% !important;
}

/* Pied de page : nom de l'auteur à gauche, texte de licence et badge Creative Commons à droite */
.edsa-footer__info {
    display: contents;
}

.edsa-footer__license {
    margin-top: 0;
    margin-left: auto;
    text-align: right;
}

@media (max-width: 640px) {
    .edsa-footer__license {
        margin-left: 0;
        text-align: left;
    }
}

/* ---------- Boutons : angles légèrement arrondis (au lieu de la pilule) ---------- */
html body .btn,
html body .btn-primary,
html body .btn-secondary,
html body .readmore .btn {
    border-radius: 6px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px rgba(30, 167, 255, 0.2);
}

html body .btn-primary:hover,
html body .btn-secondary:hover,
html body .readmore .btn:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px rgba(30, 167, 255, 0.32);
}

/* ---------- Menu : angles légèrement arrondis (même rayon que les boutons) ---------- */
html body div#maximenuck110 ul.maximenuck {
    border-radius: 6px !important;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a:hover,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1:hover > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1:hover > span.separator,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.active,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.current,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.parent.active,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.separator {
    border-radius: 6px !important;
}

html body div#maximenuck110 ul.maximenuck2,
html body div#maximenuck110 div.floatck,
html body div#maximenuck110 div.maxidrop-main {
    border-radius: 6px !important;
}

html body div#maximenuck110 ul.maximenuck2 li.maximenuck:hover {
    border-radius: 4px;
}

/* ---------- Menu principal une fois fixé en haut (défilement) : 1000 px, centré ---------- */
html body div#maximenuck110.maximenufixed {
    left: 50% !important;
    right: auto !important;
    width: 1500px !important;
    max-width: 1500px !important;
    transform: translateX(-50%);
    margin: 0 !important;
}

/* ---------- Menu principal : largeur fixe de 500 px ---------- */
html body div#maximenuck110,
html body div#maximenuck110 ul.maximenuck {
    width: 500px !important;
    max-width: 500px !important;
}

html body div#maximenuck110.maximenufixed {
    width: 500px !important;
    max-width: 500px !important;
    left: 50% !important;
    transform: translateX(-50%);
}

/* ---------- Menu principal : éléments plus espacés et plus de padding horizontal ---------- */
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 {
    margin-left: 0.35rem !important;
    margin-right: 0.35rem !important;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.separator {
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
}

/* ---------- Colonne de droite : seul le titre « Un article au hasard » est affiché ---------- */

/* ---------- « Un article au hasard » : même ligne que le fil d'Ariane ---------- */
.container-sidebar-right .sidebar-right.card {
    margin-top: 0 !important;
}

.container-sidebar-right .sidebar-right.card > .card-header {
    padding: 0 1.25rem;
    height: 40px;
    display: flex;
    align-items: center;
    margin: 0;
}

.container-sidebar-right .sidebar-right.card > .card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-sidebar-right .sidebar-right.card {
    padding-top: 0 !important;
}

.container-sidebar-right .sidebar-right.card {
    margin-top: 15px !important;
}

/* ---------- Colonne de droite retirée du flux : articles en pleine largeur ----------
 * Seul le titre « Un article au hasard » reste, à droite, sur la ligne du fil d'Ariane. */
.site-grid {
    position: relative;
}

.container-sidebar-right {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    z-index: 2;
}

.container-sidebar-right .sidebar-right.card {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.site-grid > .grid-child.container-component,
.site-grid > .grid-child.container-component main,
.site-grid .container-component {
    width: 100% !important;
    max-width: 1500px !important;
    grid-column: 1 / -1;
}

.container-sidebar-right {
    top: 16px !important;
}

/* Titre « Un article au hasard » : h3 lui-même porte la classe card-header */
.container-sidebar-right h3.card-header {
    font-size: 1.05rem !important;
    line-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    background: transparent !important;
    border: 0 !important;
    text-align: right;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---------- Typographie : Manrope (hébergée localement) partout ---------- */
html body,
html body .header,
html body .container-nav,
html body .container-main,
html body .container-footer,
html body button,
html body input,
html body textarea,
html body select {
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Cartes : texte à côté de la vignette (points 1) ---------- */
.item-content .article-logo,
.mod-articles-item-content .article-logo {
    float: left;
    margin: 0.2rem 1.4rem 0.6rem 0;
}

.item-content::after,
.mod-articles-item-content::after {
    content: "";
    display: block;
    clear: both;
}

.article-texte {
    overflow: hidden;
}

@media (max-width: 640px) {
    .item-content .article-logo,
    .mod-articles-item-content .article-logo {
        float: none;
        margin: 0 0 0.9rem;
    }
}

/* ---------- Bloc d'introduction de l'accueil (point 3) ---------- */
.edsa-intro {
    margin: 0 0 1.75rem;
    padding: 1.25rem 1.5rem 1.25rem 1.5rem;
    border-left: 3px solid #1ea7ff;
    background: linear-gradient(90deg, rgba(30, 167, 255, 0.08), rgba(30, 167, 255, 0));
    border-radius: 0 6px 6px 0;
}

.edsa-intro__lead {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
    color: #a6bfdc;
}

.edsa-intro__more {
    margin: 0;
    font-size: 0.92rem;
}

.edsa-intro__more a {
    color: #56c3ff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(86, 195, 255, 0.4);
}

.edsa-intro__more a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.card-body:has(> .edsa-intro) {
    padding: 0 !important;
}
.card:has(.edsa-intro) {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ---------- Point 9 : pied de page séparé par un filet, colonnes alignées ---------- */
.edsa-footer {
    border-top: 1px solid #1d3048;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    align-items: flex-start;
}

.edsa-footer__info {
    display: contents;
}

/* ---------- Point 11 : bords de la photo du bandeau fondus vers le fond ---------- */
html body .header,
html body .container-header {
    background:
        linear-gradient(90deg, #0a1222 0, rgba(10, 18, 34, 0) 140px, rgba(10, 18, 34, 0) calc(100% - 140px), #0a1222 100%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.55) 0%, rgba(10, 18, 34, 0.92) 100%),
        url("../images/header-latremoliere.jpg") center center / 1500px auto no-repeat !important;
}

/* ---------- Point 13 : page Contact dans le style du site ---------- */
.contact h2,
.contact h3 {
    color: #a6bfdc;
    font-weight: 700;
}

.contact h3 {
    border-top: 0;
    border-bottom: 1px solid #1d3048;
    padding: 0 0 0.5rem;
    margin: 1.5rem 0 1rem;
}

.contact .article-texte {
    color: #c4d0dc;
    margin-bottom: 1rem;
}

#contact-form label,
#contact-form .control-label label {
    color: #c4d0dc;
    font-weight: 600;
    font-size: 0.92rem;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    max-width: 560px;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: #0f1a2b;
    border: 1px solid #1d3048;
    color: #a6bfdc;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #1ea7ff;
    box-shadow: 0 0 0 0.15rem rgba(30, 167, 255, 0.2);
    outline: none;
}

#contact-form .form-actions button,
#contact-form button.validate {
    border-radius: 6px !important;
    padding: 0.7rem 1.6rem;
    background: linear-gradient(90deg, #0b6fd8, #1487d6);
    border: 0;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(30, 167, 255, 0.2);
}

/* ---------- Point 10 : adaptation mobile ---------- */
@media (max-width: 900px) {
    html body .site-grid,
    html body .container-header,
    html body .container-nav,
    html body .container-main,
    html body .container-footer,
    html body .grid-child.container-component,
    html body .site-grid > .grid-child.container-component,
    html body .site-grid .container-component {
        max-width: 100% !important;
    }

    html body .header .navbar,
    html body .container-header .navbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    html body .brand-logo img {
        max-height: 56px;
    }

    html body div#maximenuck110,
    html body div#maximenuck110 ul.maximenuck {
        width: 100% !important;
        max-width: 100% !important;
    }

    html body div#maximenuck110.maximenufixed {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none;
    }

    html body div#maximenuck110 ul.maximenuck {
        flex-wrap: wrap;
    }

    html body .header input[type="search"],
    html body .mod-finder__search {
        width: 100%;
    }

    .container-sidebar-right {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 1rem !important;
    }

    .container-sidebar-right h3.card-header {
        height: auto !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        padding: 0.5rem 0 !important;
    }

    .edsa-gallery.royalSlider.rsDefault .rsThumb {
        width: 84px !important;
        height: 84px !important;
        margin-right: 6px;
    }

    .edsa-gallery.royalSlider.rsDefault .rsThumbsHor {
        height: 100px !important;
    }

    .edsa-gallery.royalSlider.rsDefault .rsThumbsContainer {
        height: 84px !important;
    }

    .edsa-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    h1, .page-header h1 {
        font-size: 1.9rem;
    }

    .blog-item h2 a,
    .item-title a,
    .mod-articles-title a {
        font-size: 1.3rem !important;
    }

    .edsa-intro__lead {
        font-size: 1rem;
    }
}

/* Bouton du menu mobile (Maximenu) : fond sombre au lieu du blanc par défaut */
@media (max-width: 900px) {
    html body div#maximenuck110 .maximenumobiletogglericonck {
        background: #0f1a2b !important;
        border: 1px solid #1d3048;
        border-radius: 6px;
        padding: 0.45rem 0.7rem;
        color: #a6bfdc !important;
    }
}

/* Burger mobile : l'étiquette ne doit plus former un cadre de la largeur de la barre
 * de navigation. On ne garde que l'icône, alignée à droite, sans la ligne séparatrice
 * de Maximenu (::after) qui traversait le cadre. */
@media (max-width: 900px) {
    html body div#maximenuck110 .maximenumobiletogglericonck {
        display: block;
        width: fit-content;
        margin-left: auto;
        background: transparent !important;
        border: 0;
        border-radius: 0;
        padding: 0.2rem 0.3rem;
        line-height: 1;
        text-align: center !important;
    }

    html body div#maximenuck110 .maximenumobiletogglericonck:after {
        display: none;
    }
}

/* Menu mobile ouvert : le panneau se superpose au contenu au lieu de le pousser vers le bas.
 * top:auto garde la position d'origine (juste sous le burger) ; left/right le calent sur
 * les bords du header (position relative), ce qui évite aussi le débordement horizontal. */
@media (max-width: 640px) {
    /* Navigation pleine largeur : la recherche passe sur la ligne suivante au lieu de recouvrir le burger */
    html body .container-header .container-nav nav {
        flex: 0 0 100%;
        width: 100%;
    }

    /* Le conteneur Maximenu était fixé à 500 px, plus large que l'écran */
    html body div#maximenuck110:not(.maximenufixed) {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    html body div#maximenuck110 ul.maximenuck {
        position: absolute;
        top: auto;
        left: 8px;
        right: 8px;
        margin: 0 !important;
        width: auto !important;
        max-width: none !important;
        z-index: 1000;
        background: #0f1a2b;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    }
}

/* Une seule ligne de séparation au-dessus du pied de page : celle du conteneur (le bloc .edsa-footer n'en a plus) */
.edsa-footer {
    border-top: 0 !important;
    padding-top: 1rem;
}

/* ---------- Boutons : dégradé horizontal léger, padding vertical réduit ---------- */
html body .btn,
html body .btn-primary,
html body .btn-secondary,
html body .readmore .btn {
    padding-top: 0.42rem !important;
    padding-bottom: 0.42rem !important;
    line-height: 1.4;
}

html body .btn-primary,
html body .btn-secondary,
html body .readmore .btn {
    background: linear-gradient(90deg, #312e41 0%, #1282d4 100%) !important;
}

html body .btn-primary:hover,
html body .btn-secondary:hover,
html body .readmore .btn:hover {
    background: linear-gradient(90deg, #1073cc 0%, #1a94e2 100%) !important;
}

/* ---------- Menu principal : padding vertical réduit, dégradé horizontal léger ---------- */
html body div#maximenuck110 ul.maximenuck {
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.separator {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    line-height: 1.4 !important;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.active,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.current,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1.parent.active {
    background: linear-gradient(90deg, #312e41 0%, #1282d4 100%) !important;
}

/* Catégorie vide (ex. « Extravagation ») : masquer le message « Il n'y a aucun article dans cette catégorie » */
.com-content-category-blog .alert.alert-info {
    display: none !important;
}

/* Une seule ligne d'accent sous le titre des articles de catégorie (celle du h2) */
.com-content-category-blog__item .page-header::after,
.com-content-category-list__item .page-header::after,
.blog-item .page-header::after {
    display: none !important;
}

/* Menu principal aligné sur le bord gauche du contenu (90 px, comme les cartes) */
html body div#maximenuck110:not(.maximenufixed) {
    margin-left: 82px !important;
}

/* Petit écran : pas de décalage à gauche (le burger et le menu sont pleine largeur) */
@media (max-width: 640px) {
    html body div#maximenuck110:not(.maximenufixed) {
        margin-left: 0 !important;
    }
}

html body div#maximenuck110.maximenufixed {
    left: calc(50% - 660px) !important;
    transform: none !important;
}

/* ---------- Menu : survol en bleu profond, texte blanc (contraste élevé) ---------- */
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a:hover,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1:hover > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1:hover > span.separator {
    background: linear-gradient(90deg, #0d3f78 0%, #125a9e 100%) !important;
    color: #ffffff !important;
}

html body div#maximenuck110 ul.maximenuck2 li.maximenuck:hover {
    background: #12305a !important;
}

html body div#maximenuck110 ul.maximenuck2 li.maximenuck:hover > a,
html body div#maximenuck110 ul.maximenuck2 li.maximenuck:hover > span.separator {
    color: #ffffff !important;
}

html body div#maximenuck110 ul.maximenuck li.maximenuck.level1:hover {
    background: linear-gradient(90deg, #0d3f78 0%, #125a9e 100%) !important;
}

/* ---------- Menu : séparateurs verticaux bleus entre les éléments de premier niveau ---------- */
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 + li.maximenuck.level1 {
    border-left: 1px solid #1ea7ff !important;
}

/* ---------- Menu : padding horizontal à l'intérieur de chaque élément de premier niveau ---------- */
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.separator,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.nav-header {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* ---------- Icône « point d'interrogation » devant « Un article au hasard » ---------- */
.container-sidebar-right h3.card-header {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.container-sidebar-right h3.card-header::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ea7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

/* Texte « Recherche » du champ de recherche : plus lisible */
.mod-finder__search input::placeholder,
.mod-finder input::placeholder,
input[type="search"]::placeholder,
.search input::placeholder {
    color: #8ea0b3 !important;
    opacity: 1;
}

/* ---------- Textures discrètes : grain sur le fond, trame diagonale sur les cartes ---------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

.blog .item,
.blog-item,
.com-content-category-blog__item,
.com-content-category-list__item,
.card {
    background-image: repeating-linear-gradient(135deg, rgba(160, 190, 220, 0.11) 0 1px, transparent 1px 8px) !important;
}

/* ---------- Textures hétérogènes : zones de grain inégales, trames variées d'une carte à l'autre ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.75  0 0 0 0 0.9  0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
    background-size: 600px 600px;
}

/* Fond uni : les deux calques de grain ci-dessus sont désactivés */
body::before,
body::after {
    display: none;
}

.blog-item:nth-child(odd),
.com-content-category-blog__item:nth-child(odd) {
    background-image: repeating-linear-gradient(135deg, rgba(160, 190, 220, 0.12) 0 1px, transparent 1px 7px) !important;
}

.blog-item:nth-child(even),
.com-content-category-blog__item:nth-child(even) {
    background-image: repeating-linear-gradient(62deg, rgba(120, 170, 220, 0.07) 0 2px, transparent 2px 14px) !important;
}

.blog-item:nth-child(3n),
.com-content-category-blog__item:nth-child(3n) {
    background-image:
        radial-gradient(circle at 92% 8%, rgba(30, 167, 255, 0.10), transparent 45%),
        repeating-linear-gradient(20deg, rgba(160, 190, 220, 0.05) 0 1px, transparent 1px 11px) !important;
}

/* ---------- Tailles de texte : menu, recherche et fil d'Ariane légèrement plus grands ---------- */
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.separator,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.nav-header,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a span.titreck,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a span.titreck-text {
    font-size: 15.5px !important;
}

html body .mod-finder input,
html body .mod-finder__search input,
html body input[type="search"] {
    font-size: 17.5px !important;
}

html body nav.mod-breadcrumbs__wrapper,
html body nav.mod-breadcrumbs__wrapper .mod-breadcrumbs__item,
html body nav.mod-breadcrumbs__wrapper .breadcrumb-item,
html body nav.mod-breadcrumbs__wrapper a {
    font-size: 17.5px !important;
}

/* ---------- Tailles de texte : deuxième augmentation ---------- */
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.separator,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > span.nav-header,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a span.titreck,
html body div#maximenuck110 ul.maximenuck li.maximenuck.level1 > a span.titreck-text {
    font-size: 17px !important;
}

html body .mod-finder input,
html body .mod-finder__search input,
html body input[type="search"] {
    font-size: 19px !important;
}

html body nav.mod-breadcrumbs__wrapper,
html body nav.mod-breadcrumbs__wrapper .mod-breadcrumbs__item,
html body nav.mod-breadcrumbs__wrapper .breadcrumb-item,
html body nav.mod-breadcrumbs__wrapper a {
    font-size: 19px !important;
}

/* ---------- Pas de textures à l'intérieur des articles (le grain de fond reste) ---------- */
html body .blog .item,
html body .blog-item,
html body .com-content-category-blog__item,
html body .com-content-category-list__item,
html body .item-page,
html body .card,
html body .blog-item:nth-child(odd),
html body .blog-item:nth-child(even),
html body .blog-item:nth-child(3n),
html body .com-content-category-blog__item:nth-child(odd),
html body .com-content-category-blog__item:nth-child(even),
html body .com-content-category-blog__item:nth-child(3n) {
    background-image: none !important;
}

/* ---------- Liserés bleus fins de part et d'autre du site ---------- */
html body .site-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(30, 167, 255, 0) 0%, rgba(30, 167, 255, 0.55) 18%, rgba(30, 167, 255, 0.55) 82%, rgba(30, 167, 255, 0) 100%);
    box-shadow: 0 0 10px rgba(30, 167, 255, 0.35);
    pointer-events: none;
    z-index: 3;
}

html body .site-grid::before {
    left: 0;
}




/* Fil d'Ariane : élément courant (catégorie ou article en cours) lisible sur fond sombre */
html body nav.mod-breadcrumbs__wrapper .breadcrumb-item.active,
html body nav.mod-breadcrumbs__wrapper .mod-breadcrumbs__item.active,
html body nav.mod-breadcrumbs__wrapper .breadcrumb-item.active *,
html body nav.mod-breadcrumbs__wrapper .mod-breadcrumbs__item.active * {
    color: #c4d0dc !important;
}

/* Fil d'Ariane : séparateur « / » entre chaque élément, lisible sur fond sombre */
html body nav.mod-breadcrumbs__wrapper .breadcrumb-item + .breadcrumb-item::before {
    color: #a6bfdc !important;
    opacity: 1;
}

/* Titre sur une page article : taille réduite (les autres pages gardent leur titre) */
body.view-article h1 {
    font-size: 2.25rem !important;
}

/* ---------- « Un article au hasard » : lien cliquable (article tiré au sort à chaque clic) ---------- */
.container-sidebar-right .edsa-random-module .card-body {
    padding: 0 !important;
    display: block !important;
}

.container-sidebar-right .edsa-random {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 19px;
    font-weight: 700;
    color: #a6bfdc;
    text-decoration: none;
    line-height: 40px;
}

.container-sidebar-right .edsa-random::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ea7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") no-repeat center / contain;
}

.container-sidebar-right .edsa-random:hover {
    color: #ffffff;
}

/* ---------- Page d'accueil : nom de la catégorie en haut à droite de chaque carte ---------- */
.blog-item {
    position: relative;
}

.edsa-card-category {
    position: absolute;
    top: 0.9rem;
    right: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.edsa-card-category a {
    color: #56c3ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(86, 195, 255, 0.4);
    padding-bottom: 2px;
}

.edsa-card-category a:hover {
    color: #ffffff;
}

/* Nom de catégorie : coin supérieur droit de la carte, collé aux bords */
.edsa-card-category {
    top: 0 !important;
    right: 0 !important;
    padding: 0.35rem 0.9rem 0.4rem;
    background: #0f1a2b;
    border-left: 1px solid #1d3048;
    border-bottom: 1px solid #1d3048;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 18px;
    font-size: 0.75rem;
    line-height: 1.2;
}
.edsa-card-category a {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Nom de catégorie : texte un peu plus sombre, fond un peu plus clair */
.edsa-card-category {
    background: #1b2e4a !important;
}
.edsa-card-category a {
    color: #2b93d6 !important;
}
.edsa-card-category a:hover {
    color: #ffffff !important;
}

/* ---------- Pied de page : lien Facebook (pastille à bordure dégradée) ---------- */
.edsa-footer__social {
    margin-top: 0.7rem;
}

.edsa-footer__fb {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.6rem;
    border-radius: 999px;
    background: #0a1222;
    color: #a6bfdc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    isolation: isolate;
    transition: color 0.25s ease, box-shadow 0.25s ease;
}

/* Bordure en dégradé bleu, via un fond derrière la pastille */
.edsa-footer__fb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 1px;
    background: linear-gradient(90deg, #1ea7ff, #0b6fd8 60%, #312e41);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.edsa-footer__fb-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1ea7ff, #0b6fd8);
    color: #ffffff;
}

.edsa-footer__fb:hover {
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 167, 255, 0.3);
}
