/*-------------------------
* GENERAL
*-------------------------*/

html {
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
}

div#page {
    background-color: white;
    max-width: 1400px;
    margin: 0 auto;
}

@media screen and (min-width: 1300px) {
    body {
        background-color: #e2e2e2;
        padding: 1% 0 3%;
        background-image: url('/wp-content/themes/antigone/assets/img/jerome-harquel-cabinet-ophtalmologie-background-lettres-couche-2-1260x1000.png'), url('/wp-content/themes/antigone/assets/img/docteur-jerome-harquel-ophtalmologue-alsace-ophtalmologie-orthoptie-obernai-barr-background-lettres-couche-1-1260x1000.jpg');
        background-size: 400px, 500px;
        background-attachment: scroll, fixed;
    }

    div#page {
        box-shadow: 0 0 30px rgb(0 0 0 / 10%);
        border-radius: 3px;
        overflow: hidden;
    }
}

:root {
	--primary-color: #E26700;
	--secondary-color: #F07800;
	--text-color: #292929;
	--padding-btn: 8px 20px;
	--taille-container: 1350px;
}

@media screen and (min-width: 768px) {
	:root {
		--h1-size: 5rem;
		--h2-size: 2.6rem;
		--h3-size: 2.4rem;
	}
}

@media screen and (max-width: 768px) {
	:root {
		--h1-size: 3rem;
		--h2-size: 2rem;
		--h3-size: 1.8rem;
	}
}
	
::selection {
	background-color: var(--primary-color);
	color: white;
}

.container {
    width: calc(var(--taille-container));
    border: 20px solid transparent;
}

.orange {
	color: var(--primary-color);
}

.col-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 30px;
    row-gap: 30px;
}

.col-wrapper .col-6 {
    flex: 1;
    min-width: 280px;
}

@media screen and (min-width: 768px) {
   .col-contenu {
        flex: calc(60% - 20px);
        max-width: calc(60% - 20px);
    }

    .col-images {
        flex: calc(40% - 20px);
        max-width: calc(40% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .col-contenu, .col-images {
        flex: 100%;
        max-width: 100%;
    }
}



img {
	vertical-align: middle;
}

/*-------------------------
* TITRES
*-------------------------*/

body.home h1 {
	margin: 0;
}

h2 {
	line-height: 2.2rem;
	margin: 0 auto;
	color: var(--primary-color);
	text-transform: uppercase;
}

body:not(.home) h2 {
    margin: 20px auto;
}

h3 {
	margin: 0 auto 20px;
}

h4 {
	font-size: 1.8rem;
	margin: 0 auto 12px;
}

h1.entry-title {
    margin-bottom: 20px;
}

/*-------------------------
* LIENS ET BOUTONS
*-------------------------*/

a.link-orange, a {
    color: var(--primary-color);
    text-decoration: underline;
}

a.link-orange:hover {
    color: var(--text-color);
}

/*-------------------------
* COORDONNEES
*-------------------------*/

ul.coordonnees-cabinets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    color: white;
}

ul.coordonnees-cabinets img {
    width: 20px;
    margin-right: 2px;
    filter: invert(1);
}

ul.coordonnees-cabinets a {
	color: white;
	text-decoration: none;
}

ul.coordonnees-cabinets a:hover {
    text-decoration: underline;
}

a.adresse {
    margin-right: 10px;
}

ul.coordonnees-cabinets strong {
	display: block;
	text-transform: uppercase;
}

ul.coordonnees-cabinets li {
    padding: 10px 2%;
}

@media screen and (min-width: 992px) {

    ul.coordonnees-cabinets li {
        flex: 50%;
        max-width: 50%;
    }

    ul.coordonnees-cabinets strong {
        font-size: 2rem;
    }
}

@media screen and (max-width: 992px) {
    
    ul.coordonnees-cabinets li {
        flex: 100%;
        max-width: 100%;
        text-align: center;
    }

    ul.coordonnees-cabinets a {
        display: block;
    }

    ul.coordonnees-cabinets strong {
        font-size: 1.6rem;
    }
}

li.cabinet-obernai {
    background-color: var(--primary-color);
}

li.cabinet-barr {
    background-color: var(--secondary-color);
}

/*-------------------------
* SLIDER
*-------------------------*/

section#slider {
    background-color: grey;
    background-image: url('/wp-content/themes/antigone/assets/img/docteur-jerome-harquel-ophtalmologue-alsace-ophtalmologie-orthoptie-obernai-barr-slider-1400x500-1.webp');
    background-size: cover;
    background-repeat: no-repeat;
}

section#slider h1, span.sous-titre {
    background-color: white;
    max-width: 960px;
    padding: 0px 20px;
}

span.sous-titre {
    padding: 8px 20px;
    display: inline-block;
    margin-top: 12px;
}


@media screen and (min-width: 576px) {
    span.sous-titre {
        font-size: 2.6rem;
    }

    section#slider {
        height: 500px;
        padding: 80px 4%;
    }
}

@media screen and (max-width: 576px) {
    span.sous-titre {
        font-size: 2rem;
    }

    section#slider {
        background-position: right;
        height: 350px;
        padding: 60px 4%;
    }

    section#slider h1, span.sous-titre {
        text-align: center;
    }
}

/*-------------------------
* NAVIGATION
*-------------------------*/

nav#navigation-principale ul {
    display: flex;
}

nav#navigation-principale ul li {
    background-color: white;
    text-align: center;
}

nav#navigation-principale ul li em {
    font-style: normal;
}

nav#navigation-principale li#ancre-rdv {
    background-color: var(--primary-color);
    color: white;
}

nav#navigation-principale li#ancre-rdv img {
    filter: invert(1);
}

nav#navigation-principale li a {
    display: block;
    color: inherit;
    text-decoration: none;
}

nav#navigation-principale li img {
    display: block;
    margin: 0 auto;
}

nav#navigation-principale ul li span {
    display: block;
    font-weight: bold;
}

@media screen and (min-width: 768px) {
    nav#navigation-principale {
        margin-top: -90px;
    }

    nav#navigation-principale ul {
        column-gap: 20px;
        row-gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav#navigation-principale ul li {
        flex: 1;
        border-radius: 4px;
        box-shadow: 0 0 30px rgb(0 0 0 / 10%);
        transition: ease all 0.15s;
        position: relative;
        top: 0;
        min-width: calc((1350px / 6) - 30px);
        max-width: calc((1350px / 6) - 30px);
    }

    nav#navigation-principale ul li:hover {
        top: -6px;
        background-color: #FFF5EC;
    }

    nav#navigation-principale li#ancre-rdv:hover {
        background-color: #d24700;
    }

    nav#navigation-principale li a {
        padding: 20px 20px 30px;
    }

    nav#navigation-principale li img {
        width: 50px;
        margin-bottom: 10px;
    }

    li#ancre-contact em, li#ancre-rdv em {
        display: none;
    }

    span.mobile-info {
        display: none;
    }
}

@media screen and (min-width: 380px) and (max-width: 768px) {
    nav#navigation-principale ul {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    nav#navigation-principale {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        z-index: 9;
        box-shadow: 0 10px 40px rgb(0,0,0,0.4);
    }

    nav#navigation-principale ul {
        border: 0;
        width: 100vw;
        max-width: 100vw;
        overflow-y: auto;
    }

    nav#navigation-principale ul li {
        flex: none;
        width: 64px;
        border-right: 1px solid #eeeeee;
    }

    nav#navigation-principale li a {
        padding: 4px 12px 8px;
    }

    nav#navigation-principale li img {
        width: 30px;
        margin-bottom: 6px;
    }

    nav#navigation-principale ul li span {
        font-size: 0;
    }

    nav#navigation-principale ul li span em {
        display: block;
        font-size: 0.8rem;
        text-transform: uppercase;
        line-height: 1rem;
        display: block;
        font-weight: bold;
    }

    span.mobile-info {
        background-color: var(--primary-color);
        display: block;
        text-align: center;
        font-size: 1rem;
        color: white;
        padding: 2px 0px 6px;
        border-top: 1px solid white;
    }
}

/*-------------------------
* CABINETS
*-------------------------*/

img#responsive-only {
    display: none;
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    #cabinet-obernai .col-images img, #cabinet-barr .col-images img,
    #tarifs-remboursements .col-images img {
        display: none;
    }

     #cabinet-obernai .col-contenu, #cabinet-barr .col-contenu, #tarifs-remboursements .col-contenu {
       flex: 100%;
       max-width: 100%;
    }

    img#responsive-only {
        display: block;
        margin-top: -70px;
    }
}

@media screen and (min-width: 768px) {

    section#cabinet-obernai {
        margin: 60px auto 80px;
    }

    section#cabinet-barr .col-contenu {
        order: 2;
        text-align: right;
    }

    section#cabinet-barr ul.liste-commodites {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 768px) {

    section#cabinet-obernai {
        margin: 40px auto;
    }

}

.saviez-vous, .bon-a-savoir {
    background-color: #FFF5EC;
    padding: 12px 20px;
    text-align: left;
    margin-top: 40px;
}

.saviez-vous p {
	margin: 0 auto;
}

h4 img {
    margin-right: 6px;
}

.saviez-vous h4, .bon-a-savoir h4 {
	color: var(--primary-color);
}

ul.liste-commodites {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 12px;
    font-style: italic;
    margin: 20px auto;
}

.col-images img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/*-------------------------
* HORAIRES OUVERTURE
*-------------------------*/

section#horaires-ouverture {
    text-align: center;
    margin: 60px auto;
}

section#horaires-ouverture table {
    max-width: 500px;
    margin: 40px auto 0px;
    border-color: var(--text-color);
    text-align: left;
    border-radius: 3px;
}

td.jour {
    color: var(--primary-color);
    font-weight: bold;
}

section#horaires-ouverture table td {
    padding: 6px 16px;
    border-color: var(--text-color);
}

tr.ligne-jeudi {
    background-color: #f9f9f9;
}

@media screen and (min-width: 576px) {
    section#horaires-ouverture table td {
        font-size: 1.8rem;
    }
}

/*-------------------------
* DOCTEUR HARQUEL
*-------------------------*/

section#docteur-harquel {
    background-color: #F9F9F9;
    column-gap: 0;
    row-gap: 0;
}

div#formations {
    background-color: #FFF5EC;
    padding: 20px 2%;
}

div#formations strong, span.date {
    color: var(--primary-color);
    font-weight: bold;
}

div#formations strong {
    display: block;
	font-size: 1.8rem;
    margin-bottom: 20px;
}

span.date {
	font-size: 1.4rem;
	display: block;
}

ol#liste-formations ol {
    margin: 0;
}

span.localisation {
    font-style: italic;
    font-size: 1.4rem;
    display: block;
}

ol#liste-formations > li {
    margin-bottom: 16px;
}

@media screen and (min-width: 768px) {
    section#docteur-harquel div {
        flex: 1;
    }
}

@media screen and (max-width: 768px) {

    section#docteur-harquel div {
        flex: 100%;
    }

    div#presentation {
        order: 1;
    }

    div#portrait {
        order: 2;
    }

    div#formations {
        order: 3;
    }
}

div#portrait img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

section#docteur-harquel div#presentation {
    flex: 20%;
    padding: 40px 4%;
    align-self: center;
}

div#presentation ul img {
    float: left;
    margin-right: 6px;
}

div#presentation ul li {
   clear: both;
}

/*-------------------------
* EXPERTISES & ACTES
*-------------------------*/

section#expertises-actes {
    text-align: center;
}

ul#liste-expertises {
    margin: 60px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 30px;
}

li.single-acte img {
    width: 120px;
    display: block;
    margin: 0 auto 20px;
}

@media screen and (min-width: 768px) {
    ul#liste-expertises li {
        flex: 1;
    }

    section#expertises-actes {
        margin: 60px auto 80px;
    }
}

@media screen and (max-width: 768px) {
    section#expertises-actes {
        margin: 60px auto 30px;
    }

    ul#liste-expertises li {
        flex: 100%;
    }
}

/*-------------------------
* TARIFS & REMBOURSEMENTS
*-------------------------*/

.bon-a-savoir {
    padding-bottom: 26px;
}

.bon-a-savoir ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 20px;
}

.bon-a-savoir li img {
    float: left;
    margin-right: 12px;
    position: relative;
    top: 2px;
}

.bon-a-savoir li strong {
    color: var(--primary-color);
    display: block;
    line-height: 1.6rem;
}

@media screen and (min-width: 1250px) {
    .bon-a-savoir ul li {
        flex: 1;
    }
}

@media screen and (max-width: 1250px) {

    .bon-a-savoir h4 {
        margin-bottom: 20px;
    }

    .bon-a-savoir ul li {
        flex: 100%;
    }

    .bon-a-savoir li img {
        width: 60px;
    }
}

/*-------------------------
* FOOTER
*-------------------------*/

section#galerie-footer {
    margin-top: 50px;
}

img#logo-jh {
    display: block;
    position: relative;
}

section#galerie-footer ul {
    display: flex;
    flex-wrap: wrap;
}

section#galerie-footer ul li img {
    width: 100%;
    object-fit: cover;
}

@media screen and (min-width: 1200px) {
    section#galerie-footer ul li img {
        height: 250px;
    }
}

@media screen and (min-width: 768px) {
    section#galerie-footer ul li {
        flex: 1;
    }

    img#logo-jh {
        width: 250px;
        margin: 0 auto -100px;
    }

    footer#colophon .col {
        flex: 1;
    }

    footer#colophon .col:first-child {
        border-right: 4px solid var(--primary-color);
    }
}

@media screen and (max-width: 768px) {
    section#galerie-footer ul li {
        flex: 50%;
    }

    img#logo-jh {
        width: 150px;
        margin: 0 auto -50px;
    }

    body.home footer#colophon {
        margin-bottom: 80px;
    }

    footer#colophon .col {
        flex: 100%;
    }

    footer#colophon .col:first-child {
        border-bottom: 4px solid var(--primary-color);
    }
}


footer .col-wrapper {
    column-gap: 0;
    row-gap: 0;
}

.copyright {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px 3%;
    margin-top: -6px;
}

nav#breadcrumbs-pages-internes {
    margin: 20px auto;
}