/* ========================================================================= */
/* FICHIER CSS FINAL ET COMPLET - Version 5.0 (Autonome)                     */
/* Fusion optimisée des styles principaux, ressources, tarifs, etc.          */
/* ========================================================================= */

/* -------------------- FONTS -------------------- */
@font-face {
  font-family: 'Satisfy-Regular';
  src: url('../fonts/Satisfy-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/MerriweatherSans-VariableFont_wght.ttf') format('truetype');
  font-display: swap;
}

/* -------------------- BASE & LAYOUT PRINCIPAL -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden; /* Empêche le scroll sur la page entière */
}

body {
    height: 100vh;
    height: 100svh; /* Pour une meilleure gestion sur mobile */
    display: flex;
    flex-direction: column;
    background-color: black;
    color: white;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    line-height: 1.6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: slideContinuImages 140s linear infinite;
}

/* Compatibilité avec la barre d'admin de WordPress */
body.admin-bar {
    height: calc(100svh - 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar {
        height: calc(100svh - 46px);
    }
}

@keyframes slideContinuImages {
    0%    { background-image: url('../images/image-de-fond/Gemini_Generated_01.png'); background-position: 0% 50%; }
    14.28%  { background-image: url('../images/image-de-fond/Gemini_Generated_01.png'); background-position: 100% 50%; }
    14.29%  { background-image: url('../images/image-de-fond/Gemini_Generated_02.png'); background-position: 0% 50%; }
    28.57%  { background-image: url('../images/image-de-fond/Gemini_Generated_02.png'); background-position: 100% 50%; }
    28.58%  { background-image: url('../images/image-de-fond/Gemini_Generated_03.png'); background-position: 0% 50%; }
    42.85%  { background-image: url('../images/image-de-fond/Gemini_Generated_03.png'); background-position: 100% 50%; }
    42.86%  { background-image: url('../images/image-de-fond/Gemini_Generated_04.png'); background-position: 0% 50%; }
    57.14%  { background-image: url('../images/image-de-fond/Gemini_Generated_04.png'); background-position: 100% 50%; }
    57.15%  { background-image: url('../images/image-de-fond/Gemini_Generated_05.png'); background-position: 0% 50%; }
    71.42%  { background-image: url('../images/image-de-fond/Gemini_Generated_05.png'); background-position: 100% 50%; }
    71.43%  { background-image: url('../images/image-de-fond/Gemini_Generated_06.png'); background-position: 0% 50%; }
    85.71%  { background-image: url('../images/image-de-fond/Gemini_Generated_06.png'); background-position: 100% 50%; }
    85.72%  { background-image: url('../images/image-de-fond/Gemini_Generated_07.png'); background-position: 0% 50%; }
    99.99%  { background-image: url('../images/image-de-fond/Gemini_Generated_07.png'); background-position: 100% 50%; }
    100%    { background-image: url('../images/image-de-fond/Gemini_Generated_01.png'); background-position: 0% 50%; }
}

a { 
    color: #88c0d0; 
    text-decoration: none; 
    border-bottom: 1px dotted #88c0d0;
    transition: color 0.2s, border-bottom-color 0.2s;
}
a:hover, a:focus { 
    color: #eceff4; 
    border-bottom-style: solid;
}

/* -------------------- HEADER / NAVBAR -------------------- */
.header-area {
    flex-shrink: 0;
    z-index: 10;
}
.navbar-area {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #222;
    padding: 10px 15px;
    margin: 10px auto;
    width: 95%;
    max-width: 1200px;
    border-radius: 15px;
}
.site-navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-link-navbar { display: block; flex-shrink: 0; border-bottom: none; }
.logo-link-navbar:hover, .logo-link-navbar:focus { border-bottom: none; }
.profile-pic-navbar { height: 50px; width: 37px; border-radius: 8px; border: 1px solid white; display: block; }
.logo-link-navbar:hover .profile-pic-navbar, .logo-link-navbar:focus .profile-pic-navbar { outline: 2px solid white; outline-offset: 2px; }

.site-navbar ul { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.site-navbar ul li a { font-family: 'Satisfy-Regular', cursive; font-size: 20px; color: white; padding: 8px 12px; text-decoration: none; transition: background-color 0.3s, color 0.3s; display: block; border-radius: 10px; white-space: nowrap; border-bottom: none; }
.site-navbar ul li a:hover, .site-navbar ul li a:focus, .site-navbar .current-menu-item > a { background-color: rgba(255, 255, 255, 0.6); color: #111; text-decoration: none; outline: none; border-bottom: none; }


/* -------------------- ZONE DE CONTENU PRINCIPAL -------------------- */
.main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 10px;
    min-height: 0; /* Correction pour scroll sur item flex */
}

/* CONTENEURS SCROLLABLES */
.text-area, .resources-content-area {
    width: 100%;
    max-width: 1000px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 20px;
    padding: 20px clamp(15px, 4vw, 30px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    color: white;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #202020; border-radius: 4px; }
::-webkit-scrollbar-thumb { background-color: #555; border-radius: 4px; border: 1px solid #202020; }
::-webkit-scrollbar-thumb:hover { background-color: #777; }
::-webkit-scrollbar-corner { background: #202020; }

/* -------------------- STYLES DE CONTENU GÉNÉRIQUES -------------------- */
.text-area h1, .text-area h2 { font-family: 'Satisfy-Regular', serif; font-weight: normal; text-align: center; text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); }
.text-area h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); margin-bottom: 0.8em; }
.text-area h2 { font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem); margin-top: 2em; margin-bottom: 1.2em; }
.text-area h3, .text-area h4 { font-family: 'Merriweather', serif; font-weight: 700; text-align: left; color: #E5E9F0; }
.text-area h3 { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.6rem); margin-top: 2.5em; margin-bottom: 1em; padding-bottom: 0.4em; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.text-area h4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); margin-top: 2em; margin-bottom: 1em; color: #d8dee9; }
.text-area p { font-family: 'Merriweather', serif; font-size: 14px; line-height: 1.7; text-align: justify; hyphens: auto; }
.text-area p + p { margin-top: 1em; }
.text-area ul { list-style-position: inside; padding-left: 0; text-align: left; }
.text-area ul li { font-family: 'Merriweather', serif; text-align: justify; font-size: 14px; hyphens: auto; margin-bottom: 0.5em; }
.text-area a { color: #88c0d0; }
.text-area a:hover { color: #eceff4; }

/* -------------------- BOUTONS -------------------- */
.doctolib-cta { text-align: center; margin-top: 25px; }
.cta-button { display: inline-block; color: #fff; padding: 10px 22px; border-radius: 10px; background-color: rgba(255, 255, 255, 0.2); text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; font-family: 'Merriweather', serif; border: 1px solid transparent; white-space: nowrap; border-bottom: none; }
.cta-button:hover, .cta-button:focus { background-color: rgba(255, 255, 255, 0.6); color: #111; outline: 2px solid white; outline-offset: 2px; border-bottom: none; }
.doctolib-gif-button { display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.doctolib-gif-button img { width: 75px; height: auto; vertical-align: middle; }
.custom-font-text { font-family: 'Satisfy-Regular', cursive; font-size: 20px; }
.logo-image-container { display: inline-flex; vertical-align: middle; }
.logo-image-container .logo-hover { display: none; }
.doctolib-gif-button:hover .logo-image-container .logo-default { display: none; }
.doctolib-gif-button:hover .logo-image-container .logo-hover { display: inline; }

/* -------------------- FOOTER -------------------- */
footer { flex-shrink: 0; text-align: center; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); z-index: 5; width: 100%; }
.footer-content-wrapper { display: inline-block; background: rgba(0, 0, 0, 0.5); padding: 10px 25px; border-radius: 15px; box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4); }
.rounded-social-buttons { display: flex; justify-content: center; align-items: center; gap: 15px; }
footer p { font-family: 'Satisfy-Regular', serif; font-size: 13px; margin-top: 8px; margin-bottom: 0; line-height: 1.3; }
.social-button { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; background-color: rgba(255, 255, 255, 0.2); color: white; transition: transform 0.3s ease, background-color 0.3s ease; text-decoration: none; line-height: 1; border-bottom: none;}
.social-button .svg-inline--fa { height: 1em; width: 1em; }
.social-button:hover, .social-button:focus { background-color: rgba(255, 255, 255, 0.6); color: #111; transform: scale(1.15); outline: none; border-bottom: none; }

/* -------------------- MENU TELEPHONE (Responsive) -------------------- */
.nav-toggler { border: 3px solid #fff; padding: 5px; background-color: transparent; cursor: pointer; height: 39px; display: none; z-index: 1010; }
.nav-toggler span, .nav-toggler span:before, .nav-toggler span:after { width: 28px; height: 3px; background-color: #fff; display: block; transition:.3s; }
.nav-toggler span:before { content: ''; transform: translateY(-9px); }
.nav-toggler span:after { content: ''; transform: translateY(6px); }
.nav-toggler.toggler-open span { background-color: transparent; }
.nav-toggler.toggler-open span:before { transform: translateY(0px) rotate(45deg); }
.nav-toggler.toggler-open span:after { transform: translateY(-3px) rotate(-45deg); }

@media screen and (max-width: 992px) { /* Breakpoint plus large pour le menu */
    .nav-toggler { display: block; }
    .site-navbar ul { position: fixed; left: 0; top: 0; width: 100%; height: 100dvh; flex-direction: column; justify-content: center; align-items: center; background-color: rgba(0,0,0,.95); padding: 60px 0; margin: 0; max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: opacity 0.4s ease-out, visibility 0s 0.4s, max-height 0s 0.4s; z-index: 1000; }
    .site-navbar ul.open { max-height: 100dvh; opacity: 1; visibility: visible; overflow-y: auto; transition: opacity 0.4s ease-out, visibility 0s 0s, max-height 0s 0s; }
    .site-navbar ul li { width: 90%; text-align: center; }
    .site-navbar ul li a { font-size: 26px; padding: 16px 15px; display: block; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; }
    .site-navbar ul li:last-child a { border-bottom: none; }
    .site-navbar ul li a:hover, .site-navbar ul li a:focus { background-color: rgba(255, 255, 255, 0.1); color: #eee; border-radius: 5px; }
}

@media screen and (max-width: 767px) {
    .text-area p, .text-area ul li { font-size: 14px; }
    .footer-content-wrapper { padding: 8px 15px; }
    .rounded-social-buttons { gap: 10px; }
    .social-button { width: 35px; height: 35px; }
    .cta-button { padding: 12px 20px; }
}

/* ========================================================================= */
/* STYLES SPÉCIFIQUES (Ressources, Tarifs, etc.)                             */
/* ========================================================================= */

/* --- Page/Template Ressources --- */
.resources-content-area { padding: clamp(1rem, 4vw, 2rem); max-width: 81.25rem; }
.resources-content-area h1 { font-family: 'Satisfy-Regular', serif; font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem); text-align: center; margin-bottom: 2rem; color: #e5e9f0; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.resource-section h2 { font-family: 'Satisfy-Regular', cursive; font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem); color: #d8dee9; border-bottom: 2px solid #4c566a; padding-bottom: 0.75rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.category-row h3 { font-family: 'Merriweather', serif; font-weight: 700; font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); color: #e5e9f0; margin-bottom: 1.25rem; padding-left: 0.75rem; border-left: 4px solid #b48ead; }
.resources-content-area h1 .svg-inline--fa, .resource-section h2 .svg-inline--fa { height: 0.9em; width: auto; vertical-align: -0.05em; color: #88c0d0;}
.resource-section h2 .svg-inline--fa { color: #81a1c1; }
.section-intro { font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem); color: #eceff4; margin-bottom: 1.25rem; line-height: 1.7; text-align: left; }
.resource-section { margin-bottom: 3rem; }
.category-row { margin-bottom: 2rem; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem; padding: 0 0.3rem; }
.resource-item { background-color: rgba(46, 52, 64, 0.7); border-radius: 0.5rem; overflow: hidden; text-decoration: none; color: #e5e9f0; transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; border: 1px solid #3b4252; border-bottom: none; }
.resource-item:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); border-color: #88c0d0; border-bottom: none;}
.resource-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background-color: #2e3440; }
.resource-item p { font-family: 'Merriweather', serif; font-size: 0.8125rem; padding: 0.75rem 0.6rem; margin: 0; line-height: 1.4; text-align: center; background-color: rgba(59, 66, 82, 0.8); min-height: 4rem; display: flex; align-items: center; justify-content: center; flex-grow: 1; }
.icon-grid.horizontal-scroller { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 0.6rem 0.3rem 1rem 0.3rem; }
.icon-grid.horizontal-scroller .resource-item { flex-shrink: 0; width: 160px; }

/* --- Détail d'une ressource unique --- */
.resource-page .resource-header { text-align: center; margin-bottom: 2.5rem; }
.resource-page .resource-subtitle { font-family: 'Merriweather', serif; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: #d8dee9; font-style: italic; margin-top: -1em; }
.resource-page section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.resource-page header + section { margin-top: 0; padding-top: 0; border-top: none; }
.resource-page .resource-main-content { display: flex; flex-wrap: wrap; gap: 2rem; }
.resource-page .resource-image-container { flex: 1 1 250px; min-width: 200px; }
.resource-page .resource-cover-image { width: 100%; max-width: 350px; height: auto; display: block; margin: 0 auto; border-radius: 0.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); }
.resource-page .resource-details { flex: 2 1 400px; }
.resource-page .keywords-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.resource-page .keywords-list li a { display: inline-block; background-color: rgba(255, 255, 255, 0.1); color: #d8dee9; padding: 0.3rem 0.8rem; border-radius: 1rem; text-decoration: none; font-size: 0.85rem; transition: background-color 0.2s; border-bottom: none; }
.resource-page .keywords-list li a:hover { background-color: #88c0d0; color: #2e3440; }


/* --- Page Tarifs --- */
.table-responsive-container { overflow-x: auto; margin: 2rem 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0.5rem; }
.table-tarifs { width: 100%; min-width: 650px; border-collapse: collapse; color: white; font-size: 0.875rem; }
.table-tarifs th, .table-tarifs td { border: 1px solid rgba(255, 255, 255, 0.3); padding: 0.75rem 1rem; text-align: left; vertical-align: top; }
.table-tarifs thead th { background-color: rgba(255, 255, 255, 0.1); font-family: 'Satisfy-Regular', cursive; font-size: 1.2em; color: white; white-space: nowrap; vertical-align: middle; }
.note { font-size: 0.85rem; font-style: italic; color: #a3be8c; background-color: rgba(163, 190, 140, 0.1); padding: 0.75rem; border-radius: 0.25rem; border-left: 3px solid #a3be8c; margin-top: 1rem; }

/* Styles pour les mots-clés du glossaire */
a.keyword-link {
    text-decoration: none;
    border-bottom: 1px dotted rgba(136, 192, 208, 0.7);
    color: #a3be8c;
    font-weight: bold;
}
a.keyword-link:hover, a.keyword-link:focus {
    background-color: rgba(136, 192, 208, 0.2);
    color: #88c0d0;
    border-bottom-style: solid;
}