/* 
Theme Name: OKKIO Opticien
Theme URI: https://okkio.fr
Description: Hello Elementor Child is a child theme of Hello Elementor, created by PontonWeb
Author: Pontonweb
Author URI: https://pontonweb.fr
Template: hello-elementor
Version: 3.3
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* Textes */

#rouge_ span {color:#F15245 ;}

@media screen and  (max-width : 1440px) {
    h1, h1 span { font-size: calc(24px + (42 - 24) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(22px + (44 - 22) * ((100vw - 320px) / (1440 - 320)))!important;}
    h2, h2 span { font-size: calc(18px + (26 - 18) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(20px + (28 - 20) * ((100vw - 320px) / (1440 - 320)))!important;}
    h3, h3 span { font-size: calc(15px + (24 - 15) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(18px + (26 - 18) * ((100vw - 320px) / (1440 - 320)))!important;}
    .page-id-44 h2 { font-size: calc(26px + (66 - 26) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(30px + (72 - 30) * ((100vw - 320px) / (1440 - 320)))!important;}
    }

.marque-modele-item h4 {font-size: 16px; font-family: "Proxima Nova Regular", sans-serif;}
.titre1 a, .elementor-element-038b969 a span {font-family: "proxima nova extra condensed semibold", Sans-serif; font-weight: 600;}
/* Menu */
.elementor-widget-container a:focus{outline-width: none!important; outline: 0px solid #fff!important;}
.mon-menu h4 a {font-family: "Asap Condensed", Sans-serif!important;}

.grid-no-overflow .elementor-157,  .grid-no-overflow .marque-item {max-width: 100%;  overflow-y: hidden; overflow-x: hidden; }

.elementor-element-16bdc8e .elementor-grid .fas.fa-square-full {width: 50px; height: 11px; background-color: #000;}
.text_justify {text-align : justify;}
.width_100, .width_100 img {width: 100%;}
figure { display: block; margin-block-start: 0; margin-block-end: 0; margin-inline-start: 0; margin-inline-end: 0; }
/* -------------------- Page blog -------------------------- */
.is-layout-flex { align-items: start!important; }

h3.wp-block-heading {font-family: "Asap Condensed", Sans-serif;
font-weight: 600;}

/* -------------------- Page sports -------------------------- */
.marge-25 {padding: 25px;}
.single-sport h2 {font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600; }
.single-sport p {font-family: "Fira Sans", sans-serif; font-size: 20px; font-weight: 400; }

.spacer-20 { margin-bottom: 20px;}
.spacer-30 { margin-bottom: 30px;}
.spacer-40 { margin-bottom: 40px;}
.spacer-50 { margin-bottom: 50px;}
.spacer-60 { margin-bottom: 60px;}

.margin-top-lg { margin-top: 60px; }

/* Bloc 1 */
.bloc-1 h2 { color: var(--sport-b1-couleur-titre); font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600; }
.bloc-1 p, .bloc-1 div  { color: var(--sport-b1-couleur-texte); font-family: "Fira Sans", sans-serif; font-size: 18px; font-weight: 400; }

.bloc-2 h2 { color: var(--sport-b2-couleur-titre); font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600; }
.bloc-2 p  { color: var(--sport-b2-couleur-texte);font-family: "Fira Sans", sans-serif; font-size: 18px; font-weight: 400;  }

.bloc-3 h2 { color: var(--sport-b3-couleur-titre); font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600; }
.bloc-3 p  { color: var(--sport-b3-couleur-texte); font-family: "Fira Sans", sans-serif; font-size: 18px; font-weight: 400; }

.bloc-4 .texte-1 h2 { color: var(--sport-b4-couleur-titre); font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600; }
.bloc-4 .texte-1 p  { color: var(--sport-b4-couleur-texte-1); font-family: "Fira Sans", sans-serif; font-size: 18px; font-weight: 400;}
.bloc-4 .texte-2 h2 { color: var(--sport-b4-couleur-titre-2);font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600;  }
.bloc-4 .texte-2 p  { color: var(--sport-b4-couleur-texte-2); font-family: "Fira Sans", sans-serif; font-size: 18px; font-weight: 400; }

.bloc-6 .texte-1 h2 { color: var(--sport-b6-couleur-titre);font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600;  }
.bloc-6 .texte-1 p  { color: var(--sport-b6-couleur-texte-1);font-family: "Fira Sans", sans-serif; font-size: 18px; font-weight: 400;  }
.bloc-6 .texte-2 h2 { color: var(--sport-b6-couleur-titre-2); font-family: "Fira Sans", sans-serif; font-size: 36px; font-weight: 600; }
.bloc-6 .texte-2 p  { color: var(--sport-b6-couleur-texte-2); font-family: "Fira Sans", sans-serif; font-size: 18px; font-weight: 400; }


/* -------------------- Page produit -------------------------- */
.elementor-add-to-cart .cart {flex-direction: column; gap: 20px;}
.elementor-element-1c3a7eb p {margin-block-end: 0;}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {color: rgb(34, 32, 33);}




/* -------------------- champs supplémentaire pour les produits -------------------------- */


.custom-fields-wrapper textarea {max-width: 400px;}
p.titre-explication {margin-block-end: 0; margin-top: 25px;}
.choix-taille p.titre-explication {margin-top: 0px;}
.titre-explication {font-size: 24px; font-family: "Fira Sans", Sans-serif;}

p.explication { font-size: 18px; margin-bottom: 15px; font-family: "Fira Sans", sans-serif; font-weight: 600; color: #6C6E72; }
p.oeil {font-weight: 600; color: #222021; margin-block-end: 5px;}

/* Conteneur horizontal */
.choix-taille .options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Boutons radio transformés en boutons visuels */
.btn-option { display: flex; align-items: center; justify-content: center; border: 1px solid #000; padding: 10px 20px; font-weight: bold; font-size: 16px; cursor: pointer; transition: all 0.3s ease; text-align: center; min-width: 80px; height: 45px; border-radius: 2px; background: white; }

/* Masquer le radio d'origine */
.btn-option input[type="radio"] {
    display: none;
}

/* Effet actif (quand sélectionné) */
.btn-option input[type="radio"]:checked + span {
    background-color: #000;
    color: #fff;
    padding: 8px 18px;
}

/* Lien “Voir le guide” stylisé pareil */
.btn-option.lien { text-decoration: none; color: #000; border: 1px solid #000; font-weight: bold; padding: 10px 20px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; height: 45px; transition: background 0.3s; }
.btn-option.lien:hover {
    background: #000;
    color: #fff;
}

p.ecart {font-size: 12px; color: #555; font-family: "Fira Sans", sans-serif; font-weight: 600;}
.custom-fields-wrapper select { width: 150px; max-width: 360px; padding: 12px 16px; font-size: 16px; font-weight: bold; border: 1px solid #000; border-radius: 4px; background-color: #fff; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg fill='black' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }

.custom-fields-wrapper select:focus { outline: none; border-color: #333; }
.mon-oeil {display: flex; max-width: 400px; justify-content: space-between; }
.mon-oeil p {font-size: 18px; font-family: "Fira Sans", sans-serif;}


.marque-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    text-decoration: none;
    max-width: 576px!important;
}

.marque-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.marque-item:hover img {
    transform: scale(1.05);
}

.marque-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.3s ease; }
.marque-overlay.top {
  justify-content: flex-start;
  padding-top: 50px;
}

.marque-overlay.center {
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.marque-overlay.bottom {
  justify-content: flex-end;
  padding-bottom: 50px;
}

.marque-item:hover .marque-overlay {
    opacity: 1;
}

.marque-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #262829;
    margin-bottom: 10px;
    text-align: center;
}

.marque-rectangle {
    width: 50px;
    height: 11px;
    background-color: #262829;
}


@media (max-width:767px){
.elementor-11 .elementor-element.elementor-element-ce2e4cf { --width: 30%; }
}

@media (max-width:590px){
.elementor-11 .elementor-element.elementor-element-ce2e4cf { --width: 60%; }
}









/* slider new */



/* Container masque l’overflow */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Ligne de slides */
.slider {
  display: flex;
  width: 100%; /* sera étiré par les slides */
  transition: transform 1s ease;
}

/* Chaque slide prend toute la largeur */
.slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Caption */
.caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
 
  padding: 10px 20px;
  color: #fff;
  border-radius: 5px;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.caption a {
  color: #20292D;
  text-decoration: none;
  font-family: "proxima nova extra condensed semibold", sans-serif;
  font-size: 70px;
}


.caption svg {
  display: block;
  margin: -20px auto 0; /* espace au-dessus */
}



@media (max-width:1024px){
  .caption a { font-size: 50px; }
  .caption svg { margin: -10px auto 0; }
}


@media (max-width:880px){
  .caption a { font-size: 40px; }
}

@media (max-width:590px){
.caption {
  left: auto;
  transform: none;
  right: auto;
  width: 100%; 
  text-align: center;
}

  .caption a { font-size: 30px; }
  .caption svg { margin: 0px auto 0; }
}




.equal-height-by-image {
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.texte-scrollable {
  overflow: hidden;
}

@media screen and (min-width: 1200px) {
  .texte-scrollable {
    overflow-y: auto;
  }
}



/* bloc image et texte de même taille */
.equal-height-by-image .e-con-inner {
  display: flex;
  align-items: stretch; /* étire les enfants à hauteur égale */
  gap: 0; /* optionnel : retire l'espace entre les colonnes */
}

.equal-height-by-image .e-con-inner > .e-child {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* évite les débordements de texte */
  max-height: 100%; /* limite la hauteur */
}

.equal-height-by-image .e-child img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* pour remplir l'espace sans déformer */
  display: block;
}

@media (max-width:880px){
.marque-modele-item {
flex: 1 1 calc(49% - 24px);
box-sizing: border-box;
text-align: center;
max-width: calc(49% - 24px)!important;
}

.equal-height-by-image .e-con-inner > .e-child {
flex: auto;

}



}


@media (max-width:767px){
.e-con.e-flex {
--flex-wrap: none;
}
}

@media (max-width:590px){
.marque-modele-item {
flex: 1 1 calc(100% - 24px);
box-sizing: border-box;
text-align: center;
max-width: calc(100% - 0px)!important;
}


}