/* ============================================================
   custom.css — Quark theme color overrides for neprena.github.io
   Palette :
     Primaire teal   : #6baaaa
     Hover teal      : #35c2be
     Fond beige      : #e0d2b8
     Fond gris clair : #f0f0f0
     Texte principal : #4a4b4b
   ============================================================ */

/* ----------------------------------------------------------
   0. POLICE VARELA ROUND
   ---------------------------------------------------------- */
@font-face {
    font-family: 'VarelaRound';
    src: url('../fonts/VarelaRound-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ----------------------------------------------------------
   1. HEADER
   ---------------------------------------------------------- */
#header {
    width: 100%;
    border-bottom: none;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: #e0d2b8;
    color: #381F0E;
    height: auto;
    min-height: 4rem;
    padding: 0.75rem 0;
    overflow: visible;
}

#header a {
    color: #381F0E;
}

#header a:hover,
#header a:focus,
#header a.active {
    color: #6baaaa;
}

/* ----------------------------------------------------------
   2. LOGO + NAVBAR EN COLONNE
   ---------------------------------------------------------- */
#header .navbar {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

#header .navbar-section {
    width: 100%;
    display: flex;
    justify-content: center;
    height: auto !important;
}

.navbar-section.logo img {
    height: 8rem !important;
    max-height: none !important;
}

/* Compensation de hauteur pour le body sous le header fixe */
.header-fixed #body-wrapper {
    padding-top: 11rem !important;
}

/* État scrollé : retour en ligne horizontale, logo réduit */
body.header-fixed.header-animated #header.scrolled {
    padding: 0.3rem 0;
    height: auto !important;
}

body.header-fixed.header-animated #header.scrolled .navbar {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0;
}

body.header-fixed.header-animated #header.scrolled .navbar-section {
    width: auto !important;
    height: auto !important;
    justify-content: flex-start;
}

body.header-fixed.header-animated #header.scrolled .navbar-section.desktop-menu {
    justify-content: flex-end;
    flex: 1;
}

body.header-fixed.header-animated #header.scrolled .logo img {
    height: 4.5rem !important;
}

/* ----------------------------------------------------------
   3. NAVIGATION DESKTOP (dropmenu)
   ---------------------------------------------------------- */
.dropmenu ul li a {
    font-family: 'VarelaRound', sans-serif;
    font-size: 0.9rem;
    font-weight: normal;
    padding: 10px 24px;
    color: #381F0E !important;
    letter-spacing: 0.03em;
}

.dropmenu ul li a.active {
    color: #6baaaa !important;
    border-bottom: 3px solid #6baaaa;
    padding-bottom: 7px;
}

.dropmenu ul li a:hover,
.dropmenu ul li a:focus {
    color: #6baaaa !important;
    border-bottom: 3px solid #6baaaa;
    padding-bottom: 7px;
}

.dropmenu ul ul {
    background: #fff;
}

/* ----------------------------------------------------------
   4. NAVIGATION MOBILE (overlay + treemenu)
   ---------------------------------------------------------- */

/* Fond de l'overlay : brun-beige sombre au lieu du noir */
.overlay {
    background: #3a3328 !important;
}

.overlay.open {
    opacity: 0.97 !important;
}

/* Items du menu */
.treemenu li {
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
    border-radius: 6px;
    list-style: none;
}

/* Liens : grands, clairs, zones de tap généreuses */
.treemenu li a {
    font-family: 'VarelaRound', sans-serif;
    color: #e0d2b8 !important;
    font-size: 1.5rem;
    font-weight: normal;
    display: block;
    padding: 1rem 1.5rem;
    min-height: 3.2rem;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

/* Lien actif : barre latérale teal bien visible */
.treemenu li a.active {
    color: #6baaaa !important;
    border-left: 5px solid #6baaaa;
    padding-left: 1.1rem;
}

/* Hover / focus */
.treemenu li a:hover,
.treemenu li a:focus {
    color: #6baaaa !important;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Hamburger */
.mobile-menu .button_container span {
    background: #6baaaa;
}

/* Bouton fermer (×) */
.mobile-menu .button_container.active .top,
.mobile-menu .button_container.active .middle,
.mobile-menu .button_container.active .bottom {
    background: #e0d2b8;
}

/* ----------------------------------------------------------
   5. FOOTER
   ---------------------------------------------------------- */
#footer {
    background-color: #6baaaa !important;
    color: #fff !important;
    padding: 1rem 1rem 0;
    text-align: center;
}

#footer a,
#footer p,
#footer span {
    color: #fff !important;
}

#footer a:hover {
    color: #e0d2b8 !important;
}

#footer i.fa-heart {
    color: #fff !important;
}

/* ----------------------------------------------------------
   6. COULEUR DE FOND .bg-gray (sections alternées)
   ---------------------------------------------------------- */
.bg-gray {
    background-color: #6baaaa;
    color: #fff;
}

/* ----------------------------------------------------------
   7. TITRES
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: #4a4b4b;
}

.hero h1 {
    color: #4a4b4b;
}

/* ----------------------------------------------------------
   8. FOND GLOBAL & TYPOGRAPHIE DE BASE
   ---------------------------------------------------------- */
body {
    background-color: #e0d2b8;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #4a4b4b;
}

p {
    color: #4a4b4b;
    font-size: 1.1rem;
    line-height: 1.6em;
    text-align: justify;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------------
   8b. TITRES — VarelaRound + styles legacy
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'VarelaRound', Arial, sans-serif;
    color: #4a4b4b;
}

h1 {
    background-color: #6baaaa;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    padding: 5px 10px;
    display: inline-block;
    font-size: 2rem;
}

h2 {
    letter-spacing: 0.1rem;
}

/* ----------------------------------------------------------
   8c. CONTENEURS DE CONTENU
   ---------------------------------------------------------- */
#body-wrapper .container {
    padding: 2rem 2rem !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    background-color: #f0f0f0;
    border-radius: 8px;
}

#footer .container {
    background-color: transparent;
    border-radius: 0;
    text-align: center;
}

#footer p,
#footer span,
#footer div {
    text-align: center !important;
    max-width: none;
}

/* Sections Grav / Quark */
.section-wrapper,
.modular-wrapper {
    background-color: transparent;
}

/* ----------------------------------------------------------
   9. LIENS GLOBAUX
   ---------------------------------------------------------- */
a {
    color: #6baaaa;
}

a:hover,
a:focus {
    color: #35c2be;
}

/* ----------------------------------------------------------
   9. BOUTONS — connexion Grav admin
   ---------------------------------------------------------- */
#grav-login .login-form button[type="submit"],
#grav-login .twofa-form button[type="submit"]:first-child {
    background: #6baaaa;
    border-color: #5a9898;
}

#grav-login .login-form button[type="submit"]:hover,
#grav-login .login-form button[type="submit"]:focus,
#grav-login .twofa-form button[type="submit"]:first-child:hover,
#grav-login .twofa-form button[type="submit"]:first-child:focus {
    background: #35c2be;
    border-color: #2aafab;
}

#grav-login .login-form button[type="submit"]:active,
#grav-login .twofa-form button[type="submit"]:first-child:active {
    background: #5a9898;
    border-color: #4a8888;
}

/* ----------------------------------------------------------
   10. FEATURES MODULAIRES
   ---------------------------------------------------------- */
.modular-features.small .column:hover .feature-icon i,
.modular-features .column:hover .feature-icon h6 {
    color: #6baaaa;
}

.modular-features .feature-icon h6 {
    background: #fff;
    color: #4a4b4b;
}

.modular-features.offset-box .frame-box {
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(107, 170, 170, 0.15);
}

/* ----------------------------------------------------------
   11. BLOG / CARTES
   ---------------------------------------------------------- */
.blog-listing .card {
    box-shadow: 0 0.1rem 0.5rem rgba(107, 170, 170, 0.15);
}
