/*
Site: 		Elsenheim.fr
Url: 		https://www.elsenheim.fr
Autor: 		MonWebPro.com
Version: 	1 - 04.2026
*/

* { box-sizing: border-box; }
img, svg, video { max-width: 100%; height: auto; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

@font-face {
	font-family: 'icomoon';
	src:  url('fonts/icomoon.eot?b2om2p');
	src:  url('fonts/icomoon.eot?b2om2p#iefix') format('embedded-opentype'),
	url('fonts/icomoon.ttf?b2om2p') format('truetype'),
	url('fonts/icomoon.woff?b2om2p') format('woff'),
	url('fonts/icomoon.svg?b2om2p#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}
.icon {
	font-family: 'icomoon';
}

html, body {
	width: 100%;
	height: auto;
    margin:0;
    padding: 0;
}
div.clearboth {
	width: 100%; 
	height: 0;
	clear: both; 
	float: none;
}

header {
    background: #FFFFFF;
    background: linear-gradient(0deg,rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 1) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 99;
    font-family: "Merriweather", serif;
    margin: 0;
    padding: 0;
}

div.blason {
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px; 
    left: 10px;
    cursor: pointer;
}
div.blason img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.vagues {
    position: absolute;
    top: 0;
    left: 50%; 
    transform: translateX(-50%); 
    width: 100vw; 
    height: 150px; 
    min-width: 1200px; 
}

.vagues svg {
    display: block; 
    width: 100%;
    height: 100%;
}

header nav { 
    position: relative; 
    z-index: 999; 
    height: 100px;
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
    padding: 10px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
nav > a.mini {
    display: none;              /* caché sur desktop */
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
  }
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
header nav li {
    position: relative;
}
header nav > ul {
    display: flex;
}
header nav > ul > li {
    flex: 1; /* chaque item prend la même largeur */
}
header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0 25px;
    text-align: center;
    color: #000;
    text-decoration: none;
    font-size: 1.2em;
    white-space: nowrap;
}

header nav a:hover,
header nav a.active {
    color: #209551;
}

header nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
}

header nav .sub li a {
    display: block;
    padding: 12px 20px;
    height: auto;
    line-height: normal;
    text-align: left;
}
header nav .sub li a:hover {
    background: rgba(0,0,0,0.08);
}

header nav li:hover > .sub {
    display: block;
}
header nav .sub::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

header nav .main-menu { 
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav .main-menu > li {
    position: relative;
    flex: 1;
}

header nav .main-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0 25px;
    text-decoration: none;
}

header nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    margin: 0;
    padding: 2px;
    list-style: none;
    min-width: 250px;
}

header nav li:hover > .sub {
    display: block;
}

.blason img {
    height: 80px; 
    width: auto;
}

.widgets {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    position: absolute;
    top: 100px;
    right: 0;
    z-index: 99;
    padding: 0 5px;
    margin: 0;
    cursor: pointer;
}
.widgets #heure-elsenheim {
    display: inline-block;
    position: relative;
    top: -9px;
}
.widgets .clock {
    display: inline-block;
    width: auto;
}

#widget-meteo-simple {
    display: inline-flex;
    align-items: center; 
    padding: 0;
    font-size: 1em;
}
#widget-meteo-simple img {
    width: 30px; 
    height: 30px;
    margin-right: 8px;
}

div.social {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 50px;
    z-index: 999;
}
div.social a {
    display: block;
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
    font-size: 1.3em;
}

main {
    width: 100%;
    margin: 0; 
    padding: 0;
    font-family: "Merriweather", serif;
}

/* SVG */ 
.fr-artwork .fr-artwork-major {
    fill: pink; /* nouvelle couleur */
}

.fr-artwork path[fill="#000091"] {
    fill: olive;
}

.fr-artwork path[fill="#e1000f"] {
    fill: #00cc66;
}

footer {
    display: flex;
    background: #222;
    color: #fff;
    padding: 50px;
}
footer div.coordonnees,
footer div.horaires {
    width: 50%;
    padding: 20px;
}
footer div.horaires {
    border-left: solid 1px rgba(255, 255, 255, 0.1);
}
footer svg {
    fill: #fff;
    display: inline-block;
    width: 30px;
    margin-right: 10px;
    margin-top: 10px;
}
footer a {
    color: #fff;
    text-decoration: none;
}
footer p {
    display: inline-block;
    width: calc(100% - 45px);
    vertical-align: top;
}
footer div.texte {
    display: inline-block;
    width: calc(100% - 45px);
    vertical-align: top;
    margin-top: 10px;
}
footer div.texte strong {
    display: inline-block;
    width: 120px;
}

div.bottom {
    background: #202020;
    padding: 5px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
}
div.bottom a {
    color: rgba(255, 255, 255, 0.7);
}

svg .color0 { fill: #ECECFF; }
svg .color1 {
    fill: #E1000F;
    fill: #E18B76;
    fill: #209551;
}
svg .color2 {
    fill: #000091;
    fill: #e3d737;
}
svg .bcolor2 {
    stroke: #e3d737;
}

.heure-elsenheim .small { display: none; }
.heure-elsenheim .big   { display: inline; }

/* --- MOBILE --- */
@media (max-width: 900px) {
    header {
        height: 100px;
    }
    .vagues {
        height: 100px;
    }
    div.social {
        display: none;
    }
  
    div.blason {
        width: 60px;
        height: 60px;
    }

    .widgets {
        top: 62px;
        font-size: 0.8em;
    }

    header nav {
        position: fixed;
        right: 0;
        top: 0;
        width: 70px;
        height: 70px;
        display: block;
        padding: 0;
    }  

    header nav > a.mini {
        display: block;     /* bouton hamburger visible */
        width: 70px;
        height: 70px; 
        line-height: 70px; 
        font-size: 1.5em;
        text-align: center;
    }

    header nav ul.main-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0,0,0,0.92);
        width: calc(100% - 70px);
        
        height: 100dvh; /* 🔥 remplace 100vh */
        overflow-y: auto; /* 🔥 important */
        
        -webkit-overflow-scrolling: touch; /* 🔥 smooth iOS */
        
        padding-bottom: 80px; /* 🔥 espace en bas */
    }
    header nav .main-menu > li > a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
    }
    
    /* Comme ton JS met display:block, pas de gap => margin */
    header nav ul.main-menu > li + li { margin-top: 10px; }

      /* Liens lisibles dans le panneau */
  header nav ul.main-menu > li > a {
    height: auto;
    line-height: normal;
    padding: 12px 12px;
    border-radius: 12px;
    justify-content: flex-start;
    white-space: normal;
    color: #fff; /* adapte si tu veux */
  }

  /* Sous-menus: NE PAS les transformer en panneau ! */
  header nav ul.sub {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 6px 0 0 0;
    margin: 0;
    display: block; /* pour qu'ils soient visibles en mobile */
  }

  header nav ul.sub li + li { margin-top: 6px; }

  header nav ul.sub li a {
    height: auto;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.95);
  }

  
    
    header nav ul.sub::before { display: none; }  

    footer {
        display: block;
        padding: 20px;
    }
    footer div.coordonnees, footer div.horaires {
        width: 100%;
    }
    footer div.horaires {
        border: none;
    }
}
@media screen and (max-width: 855px) {
    header nav {
        max-width: 500px;
    }
    header nav a {
        font-size: 1em;
    }
}
@media (max-width: 800px) {
    .heure-elsenheim .big   { display: none; }
    .heure-elsenheim .small { display: inline; }
}  
@media screen and (max-width: 650px) {
    header nav {
        max-width: 400px;
    }
    header nav a {
        font-size: 0.8em;
    }
}
@media screen and (max-width: 550px) {
    header nav {
        max-width: 400px;
    }
    header nav a {
        font-size: 0.8em;
    }
}
@media (max-width: 400px) {
  .widgets { font-size: 0.7em; }
  #widget-meteo-simple img {
    width: 15px;
    height: 15px;
  }
  .widgets #heure-elsenheim {
    top: -3px;
  }
}

/* optionnel : style de l’heure */
.heure-elsenheim .clock {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 430px) {
    footer div.texte strong {
        display: block;
    }
    footer div.texte strong:nth-child(2) {
        height: 0px;
    } 
}
@media (max-width: 300px) {
    footer {
        padding: 3px;
    } 
}

div.nav {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 10px auto;
    grid-gap: 15px;
}
div.partie {
    width: 100%;
    margin: 10px auto; 
    background: #fff; 
    box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.5s;
}
div.partie:hover {
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
    border: solid 1px #000091;
}
div.partie div.illus {
    width: 100px;
    height: 100px;
    display: flex;
    padding: 5px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    float: left;
}
div.partie div.texte {
    width: calc(100% - 105px);
    position: relative;
    height: auto;
    display: inline-block;
    padding: 20px 15px;
}
div.partie div.texte::after {
    width: 200px;
    height: 5px;
    content: '';
    display: block;
    background: #e1000f;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
}
div.partie div.texte a {
    color: #000;
    text-decoration: none;
}

h2 {
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    -o-hyphens: none;
    hyphens: none;
}
@media (max-width: 1024px) {
    div.nav {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    div.nav {
        display: block;
    }
}
@media (max-width: 500px) {
    .widgets {
        display: none;
    }
}
@media (max-width: 400px) {
    div.partie {
        padding: 5px;
    }
    div.partie div.illus {
        display: block;
        float: none; 
        clear: both;
        margin: 0 auto;
    }
    div.partie div.texte {
        width: 100%;
        text-align: center;
    }
}