/* =========================
   Pharmacie d'Azieu - Reset & Base
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.5;
    font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #26a1d7; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
p { margin: 0 0 1em; }

/* Theme colors (extracted from original) */
.dynamic-color-primary { background-color: #26a1d7; color: #fff; }
.dynamic-color-primary-text { color: #26a1d7; }
.dynamic-color-primary-text-bis { color: #26a1d7; }
.dynamic-color-primary-border { border: 1px solid #26a1d7; }
.dynamic-color-secondary { background-color: #9c3; color: #fff; }
.dynamic-color-secondary-text { color: #9c3; }
.dynamic-color-secondary-border { border: 1px solid #9c3; }
.dynamic-color-secondary-border-top { border-top: 2px solid #9c3; }
.dynamic-color-tertiary { background-color: orange; color: #fff; }
.dynamic-color-tertiary-text { color: orange; }
.dynamic-color-tertiary a { color: #fff; }

/* Layout */
main { display: block; }
.wrapper {
    background: #fff;
    min-height: 100vh;
}
.wrapper-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.wrapper-sub-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.text-center { text-align: center; }
.bold { font-weight: bold; }
.pd-20 { padding: 20px; }
.mt-10 { margin-top: 10px; }

/* =========================
   Header
   ========================= */
header.background-default {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    position: relative;
}
.head-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.account.btn a { color: #fff; }
.prescription.btn { color: #fff !important; }
.prescription.btn:hover { color: #fff; }
.help-customer {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
}
.help-customer p { margin: 0; }

header h1 {
    text-align: center;
    margin: 10px 0;
    font-size: 2.5em;
    font-family: Georgia, serif;
}
header h1 a {
    color: #9c3 !important;
    font-weight: bold;
}
header h1 a:hover { text-decoration: none; }

nav.navigation { background: #f8f8f8; border-top: 2px solid #9c3; border-bottom: 2px solid #9c3; margin-top: 15px; position: relative; }
nav.navigation > ul { display: flex; justify-content: center; flex-wrap: wrap; margin: 0; }
nav.navigation > ul > li { position: static; }
nav.navigation > ul > li > a { display: block; padding: 15px 25px; color: #333; font-weight: 600; text-transform: uppercase; font-size: 0.95em; }
nav.navigation > ul > li > a:hover,
nav.navigation > ul > li:hover > a { background: #9c3; color: #fff; text-decoration: none; }

/* Mega menu */
nav.navigation .mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 2px solid #9c3; border-bottom: 2px solid #9c3; box-shadow: 0 8px 16px rgba(0,0,0,0.08); padding: 24px 30px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s; z-index: 50; }
nav.navigation > ul > li:hover .mega,
nav.navigation > ul > li:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.2s, transform 0.2s, visibility 0s; }
nav.navigation .mega-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 8px 20px; }
nav.navigation .mega.mega-services .mega-inner { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
nav.navigation .mega.mega-specialites .mega-inner { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
nav.navigation .mega a { display: block; padding: 8px 10px; color: #333; font-weight: 500; font-size: 0.9em; text-transform: none; border-left: 3px solid transparent; border-radius: 3px; }
nav.navigation .mega a:hover { background: #f0f9ff; color: #26a1d7; border-left-color: #9c3; text-decoration: none; }
nav.navigation .mega .mega-cta { grid-column: 1 / -1; margin-top: 10px; text-align: center; }
nav.navigation .mega .mega-cta a { display: inline-block; background: #9c3; color: #fff; padding: 10px 24px; border-radius: 4px; font-weight: 600; border-left: 0; }
nav.navigation .mega .mega-cta a:hover { background: #8bb82c; color: #fff; }
nav.navigation .has-dropdown > a::after { content: " \25BE"; font-size: 0.7em; opacity: 0.7; }

.nav-toggler { display: none; }

/* =========================
   Hero / Slider
   ========================= */
.slider {
    margin: 20px auto;
    max-width: 1200px;
}
.swiper-container {
    overflow: hidden;
    border-radius: 8px;
}
.swiper-wrapper {
    display: flex;
    transition: transform 0.5s;
}
.swiper-slide {
    min-width: 100%;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   Home page
   ========================= */
.wrapper-content.home {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.news, .introducing, .promote {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.news h2, .introducing h2 {
    margin-top: 0;
    font-size: 1.5em;
}
.fb-page {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 15px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
}
.introducing p {
    line-height: 1.7;
}
.promote .banner {
    text-align: center;
}

.banner {
    text-align: center;
    margin: 20px 0;
}
.banner img {
    margin: 0 auto;
    max-width: 100%;
}

/* =========================
   Services grid
   ========================= */
.grid-container.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.service {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.service .image.cercle-primary,
.service .image.cercle-secondary {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f8f8;
}
.service .cercle-primary { border: 2px solid #26a1d7; }
.service .cercle-secondary { border: 2px solid #9c3; }
.service .image img {
    max-width: 60%;
    max-height: 60%;
}
.service h4 {
    margin: 10px 0;
    font-size: 1.05em;
    min-height: 2.2em;
}
.service-content {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* =========================
   Specialités grid
   ========================= */
.specialites-grid, .marques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.specialite, .marque {
    background: #fff;
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}
.specialite:hover, .marque:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.specialite .image, .marque .image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #26a1d7;
    font-size: 2em;
    border: 2px solid #9c3;
}
.specialite h4, .marque h4 {
    margin: 8px 0 0;
    font-size: 0.95em;
    color: #333;
}
.marque .image { background: #f8f8f8; border: 1px solid #ddd; }

/* =========================
   Équipe
   ========================= */
.members-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.member {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #9c3;
}
.member img,
.member .silhouette {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: #f0f9ff;
    border: 2px solid #26a1d7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #26a1d7;
    font-size: 3em;
}
.member.cercle-secondary .silhouette { border-color: #9c3; color: #9c3; }
.member p { margin: 4px 0; }
.member_job { color: #777; font-style: italic; font-size: 0.9em; }

/* =========================
   Liens utiles
   ========================= */
.content-links { margin-top: 20px; }
.content-links h2 {
    color: #9c3;
    border-bottom: 2px solid #9c3;
    padding-bottom: 6px;
    margin-top: 35px;
}
.content-links .flex {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.content-links .link {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}
.content-links .link.no-border { background: transparent; }
.content-links .link p { margin: 5px 0; font-size: 0.95em; }
.content-links .link img {
    height: 60px;
    margin: 0 auto 10px;
    width: auto;
}

/* =========================
   Contact form
   ========================= */
.formulaire {
    max-width: 700px;
    margin: 30px auto;
}
.formulaire p { font-size: 1.05em; }
form label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
}
form input[type="text"],
form input[type="email"],
form input[type="file"],
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}
form textarea { min-height: 120px; resize: vertical; }
form button {
    margin-top: 20px;
    padding: 12px 30px;
    border: none;
    background: #9c3;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}
form button:hover { background: #8bb82c; }

/* =========================
   Mentions légales / content pages
   ========================= */
.content-page h2,
.content-page h3 {
    color: #26a1d7;
    margin-top: 30px;
}
.content-page h3.result_search_product {
    color: #9c3;
    border-left: 4px solid #9c3;
    padding-left: 10px;
}
.content-page address {
    font-style: normal;
    display: inline;
}

/* =========================
   Conseils santé
   ========================= */
.theme-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.theme-list a {
    display: block;
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    color: #333;
    border: 1px solid #eee;
    border-left: 4px solid #26a1d7;
    font-weight: 500;
}
.theme-list a:hover {
    background: #f0f9ff;
    text-decoration: none;
    transform: translateX(2px);
    transition: transform 0.2s;
}

/* Search bar */
.search-box {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    gap: 0;
}
.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}
.search-box button {
    background: #9c3;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}

/* =========================
   Footer
   ========================= */
footer {
    background: #fff;
    margin-top: 40px;
}
footer .pharmacy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 30px;
    background: #26a1d7;
    color: #fff;
}
footer .pharmacy a { color: #fff; }
footer .content-map #map {
    background: #d6e8f0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%25" height="100%25"><text x="50%25" y="50%25" font-family="Arial" font-size="14" fill="%23666" text-anchor="middle" dominant-baseline="middle">Carte interactive</text></svg>') center/cover no-repeat;
    min-height: 220px;
    border-radius: 6px;
    margin-bottom: 15px;
}
footer .content-map .btn {
    margin: 5px 5px 5px 0;
    text-decoration: none;
    display: inline-block;
}
footer .pharmacy-infos h2 { margin: 0 0 10px; }
footer .pharmacy_schedules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
footer .pharmacy_schedules p {
    margin: 4px 0;
    font-size: 0.95em;
}
footer .registration {
    font-size: 0.9em;
    margin: 15px 0;
    opacity: 0.9;
}
footer .pharmacy_tools_footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
footer .pharmacy_tools_footer a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.95em;
}

.footer-links {
    background: #f8f8f8;
    padding: 30px;
}
.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
}
.footer-links li.links-info {
    font-weight: 600;
    color: #555;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}
.footer-links li img {
    height: 40px;
    width: auto;
    opacity: 0.7;
}
.footer-links li img:hover { opacity: 1; }

.copyright {
    text-align: center;
    padding: 20px;
    background: #1e7fa8;
    color: #fff;
    font-size: 0.9em;
}
.copyright img {
    display: inline-block;
    height: 24px;
    margin-left: 8px;
    vertical-align: middle;
}

/* =========================
   Icons (lightweight emoji fallback for FontAwesome)
   ========================= */
.fas, .fab { font-style: normal; font-family: sans-serif; }
.fa-sign-in-alt::before { content: "\1F511"; margin-right: 5px; }
.fa-angle-down::before { content: " \25BE"; }
.fa-phone-volume::before { content: "\260E"; margin-right: 8px; color: #9c3; }
.fa-fax::before { content: "\1F4E0"; margin-right: 8px; color: #9c3; }
.fa-envelope::before { content: "\2709"; margin-right: 8px; }
.fa-user::before { content: "\1F464"; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
    .wrapper-content.home { grid-template-columns: 1fr; }
    footer .pharmacy { grid-template-columns: 1fr; }
    nav.navigation ul { flex-direction: column; align-items: stretch; }
    nav.navigation li a { text-align: center; padding: 12px; border-bottom: 1px solid #eee; }
    header h1 { font-size: 2em; }
    .head-action { justify-content: center; }
    .head-action .hide_mobile { display: none; }
}
@media (max-width: 600px) {
    footer .pharmacy_schedules { grid-template-columns: 1fr; }
    .wrapper-content { padding: 10px; }
    .wrapper-sub-content { padding: 18px; }
}
