@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Open+Sans');/*font-family: 'Open Sans', sans-serif;*/
@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300');/*font-family: 'Open Sans Condensed', sans-serif;*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');/*font-family: 'Poppins', sans-serif;*/
@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&display=swap');/*font-family: 'Yeseva One', cursive;*/

@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');/*  font-family: "Fjalla One", sans-serif;*/


/* HEADER */
/*#header { background:#fff; width: 100%; height: 200px; background-size:100%;}*/


/*HEADER VIDEO*/
/* =========================================================
   HEADER
   ========================================================= */
header {
    position: relative;
    background-color: black;
    height: 91vh;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
}

/* ---------- Slider plein cadre ---------- */
header #carouselExampleControls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

header #carouselExampleControls .carousel-inner,
header #carouselExampleControls .carousel-item {
    height: 100%;
}

header #carouselExampleControls .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;   /* garde le haut de l'image visible */
}

/* ---------- Vidéo (si utilisée) ---------- */
header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
}

/* ---------- Overlay ---------- */
header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---------- Contenu (bloc à gauche) ---------- */
header .container-hybride {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    padding-right: 5%;
}

header .header-content {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .logo,
header .logo2 {
    width: auto;
    margin: 0 auto;
    text-align: center;
}

/* ---------- Typo / liens ---------- */
header h3 {
    font-size: 28px;
    font-family: "Fjalla One", sans-serif;
    color: #000;
}

header a,
header a:hover {
    color: #000;
}

/* ---------- Cercle blanc flouté derrière le contenu ---------- */
header .header-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    filter: blur(15px);
    -webkit-filter: blur(15px);
    z-index: -1;
    pointer-events: none;
}

/* =========================================================
   Petit écran desktop (≤ 1400px)
   ========================================================= */
@media (max-width: 1400px) {
    header {
        height: 75vh;
        min-height: 30rem;
    }

    header .logo  { width: 100%; }
    header .logo2 { width: 60%; }

    header .header-circle {
        width: 24rem;
        height: 24rem;
        filter: blur(12px);
        -webkit-filter: blur(12px);
    }
}

/* =========================================================
   Tablette / iPad (≤ 992px)
   ========================================================= */
@media (max-width: 992px) {
    header {
        height: 55vh;
        min-height: 22rem;
    }

    header .logo { width: 45%; }
    header .logo2 { width: 20%; }

    header h3 { font-size: 18px; }

    header .header-circle {
        width: 16rem;
        height: 16rem;
        filter: blur(8px);
        -webkit-filter: blur(8px);
    }
}

/* =========================================================
   Mobile (≤ 767px) : bloc recentré
   ========================================================= */
@media (max-width: 767.98px) {
    header .container-hybride > .d-flex {
        justify-content: center !important;
    }
}

/* =========================================================
   Smartphone (≤ 576px)
   ========================================================= */
@media (max-width: 576px) {
    header {
        height: 34vh;
        min-height: 13rem;
    }

    header .logo { width: 75%; }
    header .logo2 { width: 20%; }
}


/*HEADER VIDEO*/


#header.base {background:url("../charte/back-header-1920.webp") no-repeat; background-size: 100%; height: 420px; color:#000}
#header.base a {color:#000}
#header p { font-size:28px;   font-family: "Fjalla One", sans-serif; color:#000; line-height:1.2em; margin-top: 30px}
#header img {width: auto; margin-top:30px}
#header .logo2 {width: 15%; margin: 0 auto}
@media (max-width:1400px) {
    #header img {width: 40%; margin-top:20px}
}



@media (max-width:1024px) {
#header.base {background:url("../charte/back-header-1024.webp") no-repeat; background-size: 100%; height: 250px; color:#000}
#header p { font-size:18px;   font-family: "Fjalla One", sans-serif; color:#000; line-height:1.2em}
#header img {width: 40%;}
 #header .logo {margin-top:10px}
#header .logo2 {width: 40%; margin: 0 auto}
}


/*MENU*/
.bg-light {
background-color: #000 !important;
}

.navbar-brand {
display: none!important
}
.navbar-brand.scrolled{
display: block!important
}


.navbar-nav { margin: 0 auto}

@media (max-width: 992px) {
.navbar-nav {margin: 20px 0px;}
.bg-light {background-color: #000 !important;}
}

.navbar-nav.active { display: block}
.navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show > .nav-link {
color: #333;
background-color:  #fff;
}


.navbar-light .navbar-nav .nav-link {
    color: #fff;
    font-family: "Fjalla One", sans-serif;
	font-size:20px; text-align: center;
}


.navbar-light .navbar-nav .nav-link:hover {
color: #333;
background-color:  #fff;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
}


.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/*Custom ouverture menu mobile*/
@media (max-width: 992px) {
.navbar-collapse {
        position: absolute;
        top: 54px;
        left: 0;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        width: 100%;
    }
.navbar-collapse.collapsing {
        height: auto;
        -webkit-transition: left 0.3s ease;
        -o-transition: left 0.3s ease;
        -moz-transition: left 0.3s ease;
        transition: left 0.3s ease;
        left: -100%;
    }
.navbar-collapse.show {
        left: 0;
        -webkit-transition: left 0.3s ease-in;
        -o-transition: left 0.3s ease-in;
        -moz-transition: left 0.3s ease-in;
        transition: left 0.3s ease-in;
		background-color:#000;height: 900px;
		text-align: center;
    }
 }


/*MENU*/


a, a:hover {color:#000; text-decoration: none}


#section1 {background: url("../../../assets/theme3/charte/back1.webp") no-repeat; background-size:100%; background-position:bottom; background-color:#fff}
#section1 h1 {color:#333333; line-height: 1.4em}
#section1 h2, h3, h4, h5 {color:#333333; line-height: 1.4em}
#section1 p {color:#000;}

#section2 {background: none}
#section2 h1 {color:#333333; line-height: 1.4em}
#section2 h2, h3, h4, h5 {color:#333333; line-height: 1.4em}
#section2 p {color:#000;}

#section3 {background:#afbbae}
#section3 h1 {color:#fff; line-height: 1.4em}
#section3 h2 {color:#fff; line-height: 1.1em}
#section3 h3 {color:#fff; line-height: 1.4em}
#section3 h4 {color:#fff; line-height: 1.4em}
#section3 h5 {color:#fff !important; line-height: 1.4em}
#section3 p {color:#fff;}

#section4 {background: none}
#section4 h1 {color:#333333; line-height: 1.4em}
#section4 h2, h3, h4, h5 {color:#333333; line-height: 1.4em}
#section4 p {color:#000;}

#section5 {background: #fff}
#section5 h1 {color:#333; line-height: 1.4em}
#section5 h2 {color:#333; line-height: 1.4em}
#section5 h3, h4 {color:#333 !important; line-height: 1.4em}
#section5 h5 {color:#333 !important; line-height: 1.4em}
#section5 p {color:#333;}


#section-parallax img {padding-top:200px;}
#section-parallax h2 { color:#000; text-align: center }

@media (max-width: 1400px) {
    #section-parallax h2 {padding-top:50px}
    #section-parallax img {padding-top:150px;}
}

@media (max-width: 992px) {
    #section-parallax h2 {padding-top:50px}
    #section-parallax img {padding-top:200px;}
}

.parallax {
    /* The image used */
    background-image: url("../../../assets/theme3/charte/img-parallax.webp");
    /* Set a specific height */
    height:600px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
@media only screen and (max-device-width: 1366px) {
    .parallax {
        background-attachment: scroll;
        height:500px;
    }
}
/*boutons custom bootstrap*/
.btn-custom {
	color: #fff;
    background-color: #333;
    border-color: #333;
}
.btn-custom:hover, .btn-custom:focus, .btn-custom:active, .btn-custom.active, .open>.dropdown-toggle.btn-custom {
    color: #fff;
    background-color: #333;
    border-color: #333; /*set the color you want here*/
}
/*fin boutons custom bootstrap*/


/*boutons custom bootstrap*/
.button {
  flex: 1 1 auto;
  margin: 0px;
  padding: 20px;
  border: 2px solid #afbbae;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: 0.3s; color:#fff; background:#afbbae;  border-radius: 30px;
}
.button:after {
  position: absolute;
  transition: 0.3s;
  content: "";
  width: 0;
  left: 50%;
  bottom: 0;
  height: 3px;
  background: #000;
}
.button:hover:nth-of-type(1) {
    border-radius: 30px;
    margin-left: 20px;
}
.button:hover:nth-of-type(1):after {
  width: 0%;
}
.button:hover {
  cursor: pointer;
}
.button:hover:after {
  width: 100%;
  left: 0;
}

/*Fin Boutons*/



/*boutons custom bootstrap*/
.button2 {
    flex: 1 1 auto;
    margin: 0px;
    padding: 20px;
    border: 2px solid #fff;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: 0.3s; color:#000; background:#fff; border-radius: 30px;
}
.button2:after {
    position: absolute;
    transition: 0.3s;
    content: "";
    width: 0;
    left: 50%;
    bottom: 0;
    height: 3px;
    background: #000;
}
.button2:hover:nth-of-type(1) {
    border-radius: 30px;
    margin-left: 20px;
}
.button2:hover:nth-of-type(1):after {
    width: 0%;
}
.button2:hover {
    cursor: pointer;
}
.button2:hover:after {
    width: 100%;
    left: 0;
}

/*Fin Boutons*/



/*FOOTER*/


footer {
background: #afbbae;
padding: 20px;
min-height: 100px;
}
footer h2 {color: #333; font-size:18px}
footer p {color: #333; font-size:14px}
footer p a {color: #333; }
footer p a:hover {color:#333; text-decoration: none}
footer p a:visited {color:#333; text-decoration: none}
footer hr {border-color:#333; margin: 0rem 0 !important;}
footer ul.list-unstyled li a {color: #333}
footer .rubrique { color: #333}
footer .fab {color:#333}
/*FOOTER*/



.encart { background-color: #9e9e9e;border: 1px solid #eee; padding:20px; border-radius: 10px}



/*FIN INTEGRATION*/

#diapo-accueil .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#diapo-accueil {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px #eee;
}

/* Zone 2 : défilement de l'équipe */
.equipe-defilement {
    overflow: hidden;
    position: relative;
}

.equipe-piste {
    display: flex;
    width: max-content;
    animation: equipe-scroll 60s linear infinite;
}

.equipe-defilement:hover .equipe-piste {
    animation-play-state: paused;
}

@keyframes equipe-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.equipe-membre {
    width: 260px;
    padding: 0 20px;
    text-align: center;
    flex-shrink: 0;
}

.equipe-membre img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.equipe-membre h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.equipe-membre .equipe-poste {
    font-weight: bold;
    margin-bottom: 5px;
}

.equipe-membre .equipe-phrase {
    font-style: italic;
    font-size: 0.95em;
}

@media (prefers-reduced-motion: reduce) {
    .equipe-defilement { overflow-x: auto; }
    .equipe-piste { animation: none; }
}

/* Zone 4 : pictos services */
.service-picto img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.service-picto p {
    margin-top: 15px;
    font-weight: bold;
}

/* Zones 5 et 6 : blocs */
.bloc-info {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 10px #eee;
    height: 100%;
}

.reseaux-sociaux a {
    font-size: 2.5em;
    margin: 0 15px;
}

/* Zone 6 : garde + urgences (mise en page pharmaciedusaugeais.fr) */
:root {
    --vert-pharma: #7d927a;      /* couleur du bloc de droite : à ajuster sur le vert du logo */
    --vert-pharma-clair: #eef2ed;
}

.info-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px;
}

.info-card {
    background: #fff;
    border: 1px solid #e3e8e2;
    border-radius: 22px;
    padding: 32px 34px;
    box-shadow: 0 1px 3px rgba(23, 51, 40, 0.06);
}

.info-card-fill {
    background: var(--vert-pharma);
    border-color: var(--vert-pharma);
}

.info-card-fill h2,
.info-card-fill li,
.info-card-fill a:not(.emergency-num) {
    color: #fff !important;
}

.info-text {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.phone-pill {
    display: inline-flex;
    align-items: center;
    background: var(--vert-pharma-clair);
    color: var(--vert-pharma);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    padding: 0.35em 0.9em;
    border-radius: 14px;
    text-decoration: none;
}

.phone-pill small {
    font-size: 0.5em;
    font-weight: 600;
    margin-left: 10px;
}

.emergency-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emergency-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
}

.emergency-list li:last-child {
    border-bottom: none;
}

.emergency-num {
    flex: 0 0 auto;
    min-width: 52px;
    text-align: center;
    background: #fff;
    color: var(--vert-pharma) !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.35em 0.5em;
    border-radius: 10px;
    text-decoration: none;
}





.col-2_4,
.col-sm-2_4,
.col-md-2_4,
.col-lg-2_4,
.col-xl-2_4 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.col-2_4 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
}
@media (min-width: 540px) {
    .col-sm-2_4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 720px) {
    .col-md-2_4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 960px) {
    .col-lg-2_4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 1140px) {
    .col-xl-2_4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.mission-icone {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.mission-liste {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.mission-liste li {
    padding: 3px 0;
}

.bloc-info {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 10px #eee;
    height: 100%;
}

.bloc-photo {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 15px;
    background: #fff;
}


/* Bandeau logos défilants */
.logos-defilement {
    overflow: hidden;
    position: relative;
}

.logos-piste {
    display: flex;
    width: max-content;
    animation: logos-scroll 35s linear infinite;
}

.logos-defilement:hover .logos-piste {
    animation-play-state: paused;
}

@keyframes logos-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logos-defilement { overflow-x: auto; }
    .logos-piste { animation: none; }
}

.logo-marque {
    width: 200px;
    padding: 0 20px;
    text-align: center;
    flex-shrink: 0;
}

.logo-marque img,
.logos-fixes img {
    width: 160px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 10px #eee;
}

.logo-marque p,
.logos-fixes p {
    margin-top: 10px;
    font-weight: bold;
}

.phrase-rdv {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
}


/* Diaporama : toutes les photos au même format */
#diapo-materiel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px #eee;
}

#diapo-materiel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logos partenaires */
.logos-fixes img {
    width: 160px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 10px #eee;
}

.logos-fixes p {
    margin-top: 10px;
    font-weight: bold;
}


.mission-icone {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* Photos au format rectangulaire */
.photo-rect {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Logos fixes + bandeau défilant */
.logo-marque img,
.logos-fixes img {
    width: 160px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 10px #eee;
}

.logo-marque p,
.logos-fixes p {
    margin-top: 10px;
    font-weight: bold;
}

.logos-defilement {
    overflow: hidden;
    position: relative;
}

.logos-piste {
    display: flex;
    width: max-content;
    animation: logos-scroll 35s linear infinite;
}

.logos-defilement:hover .logos-piste {
    animation-play-state: paused;
}

@keyframes logos-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logos-defilement { overflow-x: auto; }
    .logos-piste { animation: none; }
}

.logo-marque {
    width: 200px;
    padding: 0 20px;
    text-align: center;
    flex-shrink: 0;
}


.mission-icone {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.bloc-info {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 10px #eee;
    height: 100%;
}

.photo-centree {
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 10px #eee;
}

/* Bandeau logos défilants */
.logos-defilement {
    overflow: hidden;
    position: relative;
}

.logos-piste {
    display: flex;
    width: max-content;
    animation: logos-scroll 35s linear infinite;
}

.logos-defilement:hover .logos-piste {
    animation-play-state: paused;
}

@keyframes logos-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logos-defilement { overflow-x: auto; }
    .logos-piste { animation: none; }
}

.logo-marque {
    width: 200px;
    padding: 0 20px;
    text-align: center;
    flex-shrink: 0;
}

.logo-marque img {
    width: 160px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 10px #eee;
}

.logo-marque p {
    margin-top: 10px;
    font-weight: bold;
}

.service-picto img {
    filter: brightness(0) invert(1);
}


@media (min-width: 768px) and (max-width: 1199.98px) {
    .boutons-contact > .col-md-6 {
        display: flex;
        flex-direction: column;
    }

    .boutons-contact > .col-md-6 > div {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .boutons-contact > .col-md-6 > div > a {
        flex: 1;
        display: flex;
    }

    .boutons-contact .button2 {
        flex: 1;
        min-height: 90px; /* à ajuster selon le bouton le plus haut */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}


@media (min-width: 768px) and (max-width: 1199.98px) {
    .boutons-contact .button2 {
        height: 90px !important; /* hauteur du bouton le plus haut */
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}