/*
 Theme Name:   Galerie Richelieu
 Theme URI:    https://www.galerierichelieu.com/wp-content/themes/galerie-richelieu/
 Description:  Divi Child Theme
 Author:       Helene Larocque
 Author URI:   http://www.progexia.com
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  galerie-richelieu
*/

/* ----- VARIABLES ----- */
:root {
    --font-size--v-v-small: 0.625em;
    --font-size--v-small: 0.75em;
    --font-size--small: 0.875em;
    --font-size--large: 1.125em;
    --font-size--v-large: 1.25em;
    --font-size--v-v-large: 1.5em;
    
    --medium-primary: #d4444f;   /* Red */
    --dark-primary: #a3323a;
		
    --light-neutral: #585858;
    --medium-neutral: #1a1a1a;   /* Black */
    --dark-neutral: #000000;
    
    --font-weight-light:300;
    --font-weight-regular:400;
    --font-weight-semi-bold:500;
    --font-weight-bold:700;
}

/* ----- HEADINGS ----- */
#gar h1{font-weight: var(--font-weight-regular);font-size: 35px;}
#gar h2{font-weight: var(--font-weight-regular);font-size: 35px;}
#gar h3{font-weight: var(--font-weight-regular);font-size: 30px;padding-bottom:0;line-height:1.1em;}
#gar h4{font-weight: var(--font-weight-semi-bold);font-size: 24px;}
#gar h5{font-weight: var(--font-weight-semi-bold);font-size: 18px;}
#gar h6{font-weight: var(--font-weight-semi-bold);font-size: 20px;}

#gar sup {bottom: .2em;font-size: 80%;}

.et_pb_section .et_pb_row .et_pb_heading.et_pb_heading_border .et_pb_heading_container::after{ /*bordure rouge sous les titres*/
    content: "";
    position: relative;
    display: block;
    margin: auto;
    width: 80px;
    height: 1px;
    margin-top:1%;
    background: var(--medium-primary);
}

/* ----- HEADER ----- */
#gar #main-header{background-color:transparent;}
#gar #et-info{float:right; display:flex;gap:15px;align-items:flex-end;}
#gar #info-map,
#gar #info-phone,
#gar #info-email{height:30px;margin-right:10px;}
#gar #et_search_icon::before , #gar .mobile_menu_bar::before, #gar .et-search-field, #gar .et-search-field::placeholder, #gar .et_close_search_field::after{color:white !important;}
.et_pb_menu__search-input {background: rgba(254,254,254,0.8) !important;padding: 5px !important;}
.et_pb_menu__logo{width:70%;}

.search-results .et_pb_button_readmore {color:var(--medium-primary);}
.search-results .et_pb_button_readmore:after {
  content: '\2192'; /* Unicode for a right arrow */
  font-size: 1.2em;
  margin-left: 5px;
}
.search-results #page-container #main-content article::after {
  content: "";
  position: relative;
  display: block;
  margin-top: auto;
  width: 80px;
  height: 1px;
  margin-top: 2%;
  background: #000;
}
#main-content .container::before {
    background-color: transparent !important;
}



/* ----- FOOTER ----- */
#gar .pro-footer .et_pb_row .et_pb_column:nth-child(1){width:25%;}
#gar .pro-footer .et_pb_row .et_pb_column:nth-child(2){width:40%;float:right;}

#gar #footer-info {font-size:var(--font-size--small);font-weight: var(--font-weight-semi-bold);}

#gar .pro-footer .et_pb_heading_container h3{margin-bottom:20px;font-size:18px;font-weight:600;}
#gar .pro-footer .et_pb_contact_form_container .et_pb_contact_form{display: flex;flex-direction: column;margin-left:0px;}
#gar .pro-footer .et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field{width:100%!important;padding-left:0px !important;}
#gar .pro-footer .et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field input{border-width: 1px;border-radius: 3px;}
#gar .pro-footer .et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field input::placeholder{color:#999;}

@media screen and (max-width:975px){
    #gar .pro-footer-logo{width:50%;}
}
@media screen and (min-width:975px){
    #gar .pro-footer-infolettre{width:35%;}
}
.cutom-footer{padding:50px 0 !important;}
#custom-footer-bottom .et_pb_row .et_pb_column{margin-top:1% !important;margin-bottom:1%;}

/* ----- ROWS ----- */
#gar .et_pb_section .et_pb_row{width:100%;}
    @media screen and (max-width:1199px){
        #gar .et_pb_section .et_pb_row{width:90%;max-width:1080px;}
    }
/* ----- COLUMNS ----- */
@media (min-width: 981px) {
}

/* ----- FORMS - Artistes - Oeuvres - Expositions ----- */
.pro-acf-inline {display:flex;}
.pro-acf-inline label {margin-right:10px;}

/* ----- PARAGRAPH ----- */
p:not(.has-background):last-of-type {padding-bottom: 1em !important;}

/* ----- ACCUEIL ----- */
.et_pb_section.gar-header.et_pb_with_background.et_pb_fullwidth_section.et_pb_section_first{padding-top: 230px !important;}
@media screen and (max-width:600px){
    #gar .et_pb_section.gar-header-image{height:35vh;}
}

#gar .et_pb_section_nouveaute.artiste {padding:30px 0;}
#gar .et_pb_section_nouveaute .et_pb_row{padding-top:0px !important;}
#gar .et_pb_section_nouveaute h2{text-align:center;}
#gar .et_pb_section_nouveaute h3{font-weight:var(--font-weight-light) !important;text-transform:uppercase;}
#gar .et_pb_section_nouveaute .et_pb_row.et_pb_row_oeuvres{display:flex;align-items:flex-end;}
@media screen and (min-width:300px) and (max-width:975px){
    #gar .et_pb_section_nouveaute .et_pb_row.et_pb_row_oeuvres{flex-direction:column;}
}
#gar .et_pb_section_nouveaute .et_pb_row .et_pb_module.et_pb_image{display: flex;justify-content: center;}
#gar .et_pb_section_nouveaute .et_pb_row .et_pb_module{padding-top:1% !important;}
#gar .et_pb_section_nouveaute .et_pb_row .et_pb_module h4{padding-bottom:5px;}

/* ----- GALERIE ----- */
#gar .et_pb_section_galerie .et_pb_row{width:80% !important;}
#gar .et_pb_section_galerie .et_pb_row .et_pb_column_2{display:flex;flex-direction:column;align-items:center;}
#gar .et_pb_section_galerie .et_pb_row .et_pb_column_2 h4{font-size:20px;text-align:center;}
#gar .et_pb_section_galerie .et_pb_row .et_pb_column_2 img{min-height:300px;}

/* ----- NOUVEAUTÉS ----- */
#gar .et_pb_section_nouveaute .et_pb_text_inner{width:60%;margin:auto;}
#gar .et_pb_section_nouveaute h4{font-size:16px;font-weight:600;}

/* ----- SERVICES ----- */
#gar .et_pb_section_services .et_pb_row h2{padding-bottom:15px;font-size:30px !important;font-weight:var(--font-weight-light);}
#gar .et_pb_section_services .et_pb_row h2:not(:first-of-type),#gar .et_pb_section_services .et_pb_row h2+h3{margin-top:10px;}
#gar .et_pb_section_services .et_pb_row h3{font-size:24px;padding-bottom:15px;}

#gar .et_pb_section_services .et_pb_row.et_pb_row_exergue{gap:5.5%;}
#gar .et_pb_section_services .et_pb_row .et_pb_module_exergue{display:flex;flex-direction:column;justify-content:center;height:100%; position: relative; z-index: 0; overflow: hidden;}
#gar .et_pb_section_services .et_pb_row .et_pb_module_exergue .et_pb_text_inner{padding:50px 30px;}

#gar .et_pb_section_services.et_pb_section_beige .et_pb_row .et_pb_column_1_3{margin-right:0px;}
#gar .et_pb_section_services.et_pb_section_beige .et_pb_row .et_pb_column_2_3{width:100%;}
#gar .et_pb_section_services.et_pb_section_beige .et_pb_row{width:100% !important;max-width:100% !important;}

#gar .et_pb_section_services_cadeaux .et_pb_row{gap:5.5%}
#gar .et_pb_section_services_cadeaux .et_pb_row .et_pb_module_commander_cadeau a{padding:5px 45px 5px 45px !important;}
#gar .et_pb_section_services_cadeaux .et_pb_column.et-last-child{display:flex;flex-direction:column;justify-content:center;}

/* ----- NOUS JOINDRE ----- */
#gar .et_pb_section_nousjoindre .et_pb_row .et_pb_module h2{font-size:24px !important;padding-bottom:0px;}
#gar .et_pb_section_nousjoindre .et_pb_row .et_pb_heading .et_pb_heading_container:has(h2)::after{height: 0px !important;}
#gar .et_pb_section_nousjoindre .et_pb_row .et_pb_module strong{font-weight:600;}
#gar .dsm_embed_google_map iframe{height:500px;}


/* ----- ARTISTES ----- */
.et_pb_section .et_pb_row .pro-liste-wrapper h1, .et_pb_section .et_pb_row .pro-liste-wrapper .et_pb_module_header{text-align:center;}
.et_pb_section .et_pb_row .pro-liste-wrapper h1::after{ /*bordure rouge sous les titres*/
    content: "";
    position: relative;
    display: block;
    margin: auto;
    width: 80px;
    height: 1px;
    margin-top:1%;
    background: var(--medium-primary);
}

.et_pb_section .et_pb_row .pro-liste-wrapper .et_pb_module_header .date_artiste{font-size:15px !important;font-weight:var(--font-weight-light);}

.et-last-child + .et_pb_column {clear:both;}

/* ----- ARTISTE ----- */
.single-artiste .container:before{background:none;}
.single-artiste .et_pb_section.et_pb_section_oeuvres {padding:0 !important;}
.single-artiste .entry-title.main_title-artistes,.single-artiste .oeuvre-modal h1 {font-weight:200;text-transform:uppercase;}
.single-artiste .gar-informations-artiste{background: transparent;border: 0;padding: 0;font-weight: 550;}
.single-artiste .gar-informations-artiste i{color:var(--medium-primary);}

.single-artiste .gar-menu-oeuvres-artiste{
    border-top:1px solid #C0C0C0;
    border-bottom:1px solid #C0C0C0;
    display:flex;
    justify-content:center;
    gap:30px;
    margin-top:3%;
    padding:10px;
}
.single-artiste .et_pb_section_oeuvres .et_pb_row:last-child{padding-bottom:3% !important;}
.single-artiste .et_pb_section_oeuvres .et_pb_row .et_pb_module.et_pb_image{display:flex;justify-content:center;}
.single-artiste .et_pb_section_oeuvres .et_pb_row .et_pb_module h3{font-size:18px; font-weight:600;padding:5px;}
.single-artiste .et_pb_section_oeuvres .et_pb_row .et_pb_module p{padding-bottom:0.8em;}
.single-artiste .et_pb_section_oeuvres .et_pb_row .et_pb_module .oeuvre-statut{font-size:14px;}

.single-artiste .gar-oeuvres-artiste{text-align:center;padding:0;}
.single-artiste .gar-menu-oeuvres-artiste .btn{background:transparent;border:0;padding:0;}
.single-artiste .gar-menu-oeuvres-artiste a{font-size:16px;color:black;}
.single-artiste .gar-menu-oeuvres-artiste .btn-active ,.single-artiste .gar-menu-oeuvres-artiste .btn:hover{border-bottom:1px solid var(--medium-primary);}
@media (min-width: 981px) {
    .single-artiste .et_pb_gutters2 .et_pb_column, .single-artiste .et_pb_gutters2.et_pb_row .et_pb_column {
        margin-right: 0 !important;
    }
}

.single-artiste .oeuvre-item {
    display: block;
    flex: 0 0 calc((100% - (1.5em * 2)) / 3);
    transition: opacity 0.5s ease;
    opacity: 1;
}
.single-artiste .oeuvre-item.hidden {
    opacity: 0;
    pointer-events: none;
}

.single-artiste .gar-modal{
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}
.single-artiste .gar-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px 25px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}
.single-artiste .gar-modal-content h3{color:var(--medium-primary);text-transform:uppercase;font-size:18px !important;font-weight:var(--font-weight-semi-bold);}
.single-artiste .gar-close {
  color: var(--light-neutral);
  float: right;
  font-size: 45px;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}
.single-artiste .gar-modal-content ul{list-style-type:disc;padding-bottom:1em;padding-left:1em;}
.single-artiste .gar-modal-content ul li::marker{color:var(--medium-primary);}

.single-artiste .oeuvre-modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.single-artiste .oeuvre-modal-content {
    text-align: center;
    background-color: #fff;
    margin: 10% auto;
    padding:20px 5px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}
.single-artiste .oeuvre-modal-content  #oeuvre-image {max-width:550px;max-height:550px;}
.single-artiste .oeuvre-details div{display:flex;justify-content:space-between;margin:20px 0;}

.single-artiste .oeuvre-details div button {
    font-size: 120px;
    cursor: pointer;
    background:none;
    border:none;
    padding:0;
    font-weight:100;
    color:#C0C0C0;
}
.single-artiste .oeuvre-details p{padding:0;}

/* ----- EXPOSITIONS ----- */
.post-type-archive-exposition .et_pb_section_infos .et_pb_row {padding-top:0 !important; text-align:center;}
.post-type-archive-exposition .et_pb_section_infos .et_pb_row h1 {padding-bottom:0;}
.post-type-archive-exposition .et_pb_section_infos .et_pb_row p {padding:3% 0; width:70%; margin:auto;padding-top: 3%;padding-bottom: 0;}
.post-type-archive-exposition .gar-inscription-infolettre {display:flex; justify-content:center;}
.post-type-archive-exposition .gar-inscription-infolettre button {background:transparent; border:0; padding:0; font-weight:550;}
.post-type-archive-exposition .gar-inscription-infolettre button i {color:var(--medium-primary);}

.post-type-archive-exposition .et_pb_column{margin-top:0px !important;}
.post-type-archive-exposition .et_pb_section_expositions {padding:0 !important;}
.post-type-archive-exposition .et_pb_section_expositions h2 {text-align:center;}
.post-type-archive-exposition .et_pb_section_expositions .et_pb_column h3 {font-weight:500 !important;}
.post-type-archive-exposition .et_pb_section_expositions .artistes a {font-weight:500; font-size:18px;}
.post-type-archive-exposition .et_pb_section_expositions .titre {padding-bottom:1em; font-size:20px !important; font-weight:var(--font-weight-semi-bold);}
.post-type-archive-exposition .et_pb_section_expositions .info-oeuvre-en-vedette p:first-of-type {padding:1em 0 0;}
.post-type-archive-exposition .et_pb_section_expositions_vide {background-color:#f8f4e9 !important; text-align:center; padding:30px 0 !important; margin-bottom:4%;}
.post-type-archive-exposition .et_pb_section_expositions_vide .et_pb_row {display:flex; flex-direction:column; align-items:center;padding:0 !important;}
.post-type-archive-exposition .et_pb_section_expositions_vide p {padding:20px !important; width:60%; text-align:center;}
.post-type-archive-exposition .exposition-row {border-bottom:3px solid #f8f4e9 !important; padding:40px 0 !important; display:flex; align-items:stretch;}
.post-type-archive-exposition .exposition-row:last-of-type{border-bottom:none !important;padding-bottom:0;}
.post-type-archive-exposition .exposition-row .et_pb_column {margin-top:0 !important;}
.post-type-archive-exposition .exposition-row .et_pb_column:first-of-type {display:flex; flex-direction:column; justify-content:space-between;}

.post-type-archive-exposition .exposition-row .et_pb_column_image {display:flex; align-items:flex-end; justify-content: flex-end;gap:15px;width:60% !important;}
.post-type-archive-exposition .exposition-row .et_pb_column_image em{font-weight:500;}
.post-type-archive-exposition .exposition-row .et_pb_column_image p {text-align:right; padding-bottom:0 !important;font-size:14px;}
.post-type-archive-exposition .expositions-artistes {width:100%;}
.post-type-archive-exposition .expositions-artistes p {font-weight:500;padding-bottom:10px !important;}
.post-type-archive-exposition .expositions-artistes hr {width:50%; margin-left:0;}

@media screen and (max-width:768px){
    .post-type-archive-exposition .exposition-row{flex-direction:column;}
    .post-type-archive-exposition .exposition-row .et_pb_column_image {flex-direction:column-reverse;align-items:center;gap:10px}
    .post-type-archive-exposition .exposition-row .et_pb_column_image p {text-align:center !important;padding-top:0 !important;}
    .post-type-archive-exposition .expositions-artistes p{padding-top:10px;}
    .post-type-archive-exposition .expositions-artistes hr{display:none;}
}

/*----- RÉALISATIONS CR ----- */
@media screen and (min-width:768px){
    #gar .et_pb_section_realisations_cr .et_pb_row{width:40%;}
}
@media screen and (min-width:968px){
    #gar .et_pb_section_realisations_cr .et_pb_row{width:60%;}
}
#gar .et_pb_section_realisations_cr .et_pb_row .et_pb_module p {font-size:18px;}
#gar .et_pb_section_realisations_images .et_pb_row{width:80% !important;}
#gar .et_pb_section_realisations_images .et_pb_row h2{font-size:25px;font-weight:var(--font-weight-semi-bold);}
#gar .et_pb_section_realisations_images .et_pb_row .et_pb_column_2 .et_pb_module.et_pb_heading{display:flex;justify-content:center;}
#gar .et_pb_section_realisations_images .et_pb_row .et_pb_column_2 img{min-height:300px;}



/* Conteneur de grille responsive */
.oeuvres-grid {
  display: grid;
  /* chaque carte a une largeur mini, la grille calcule le nb de colonnes auto */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Carte */
.oeuvre-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Image */
/* APRÈS — largeur contrainte, hauteur libre : image complète visible */
.oeuvre-figure {
  position: relative;
  background: #f7f7f7;
  /* PAS d'aspect-ratio, PAS de hauteur fixe */
}

.oeuvre-image-wrap {
  display: block;
  /* Optionnel: centrer une image plus petite que la carte */
  text-align: center;
}

.oeuvre-image-wrap img {
  max-width: 100%;   /* image ne dépasse jamais la carte */
  width: 100%;       /* remplit la largeur disponible */
  height: auto;      /* conserve le ratio, aucune contrainte en hauteur */
  object-fit: contain; /* pas obligatoire sans hauteur fixe, mais sûr */
  display: inline-block;
  vertical-align: middle;
}

/* Métadonnées */
.oeuvre-meta { padding: .75rem .9rem 1rem; text-align: center; }

.oeuvre-title {
	font-size:18px;
	font-weight:500;
	padding-bottom: 5px;
}

.oeuvre-infos {
  color: #555;
  font-size: .95rem;
}
.oeuvre-infos .sep { margin: 0 .5rem; opacity: .6; }

/* Statut centré + icône à droite (variante avec <span>) */
.oeuvre-statut {
  display: flex;
  align-items: center;
  margin: 0;
}

.oeuvre-statut .statut-text {
  flex: 1;              /* occupe l'espace dispo */
  text-align: center;   /* centre "Vendu" */
  font-size:var(--font-size--small);
}

.oeuvre-mail {
  margin-left: auto;    /* pousse complètement à droite */
  display: inline-flex;
  align-items: center;
}

.oeuvre-mail img { vertical-align: middle; }

/* Boutons filtre */
.gar-menu-oeuvres-artiste {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem;
}
.gar-menu-oeuvres-artiste .btn {
  border: none; background: #fff; padding: .4rem .75rem;
  cursor: pointer; font: inherit;
}
.gar-menu-oeuvres-artiste .btn:hover { }
.gar-menu-oeuvres-artiste .btn.btn-active {
 color: var(--medium-primary); 
}

/* Masquage pour le filtrage */
.oeuvre-item.is-hidden { display: none !important; }

/* Petits écrans : la grille tombera naturellement à 1-2 colonnes via minmax() */
