/**
 * AMT Custom Styles
 * Styles pour le thème Avenir Malgré Tout
 */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Menu burger et navigation */
.burger {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>') no-repeat center;
    background-size: contain;
    cursor: pointer;
}

.menuoff-left {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.menuoff-left:target {
    left: 0;
}

.menulink a {
    display: block;
    padding: 10px 20px;
    color: #204954;
    text-decoration: none;
    transition: background 0.3s;
}

.menulink a:hover {
    background: #f0f0f0;
}

/* Menu top */
.menuInTop {
    background: #204954;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sousmenu {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.sousmenu li {
    margin: 0 15px;
}

.sousmenu li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
}

.sousmenu li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #204954;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.btNeutre {
    color: #fff;
    cursor: pointer;
    padding: 10px 15px;
    display: inline-block;
}

/* Sections */
.bgimage {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgfullimg {
    width: 100%;
}

.textoverlay {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.sectioncolorblu {
    background-color: #204954;
    padding: 60px 20px;
}

.sectioncolororange {
    background-color: #f18d00;
    padding: 60px 20px;
}

.textBlockbleu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blocktext {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overColorBleuFC {
    background-color: rgba(32, 73, 84, 0.7);
    background-blend-mode: multiply;
}

.overColorVertF {
    background-color: rgba(53, 93, 89, 0.7);
    background-blend-mode: multiply;
}

/* Titres */
.bigTitre {
    font-size: 4em;
    font-weight: bold;
    margin: 20px 0;
}

.majTitre {
    font-size: 2.5em;
    font-weight: bold;
    margin: 20px 0;
}

h1 {
    font-size: 2em;
    margin: 20px 0;
}

h2 {
    font-size: 1.5em;
    margin: 15px 0;
}

h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

/* Boutons */
button, .blanc, .bleuF {
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.blanc {
    background: #fff;
    color: #204954;
    border: 2px solid #204954;
}

.blanc:hover {
    background: #204954;
    color: #fff;
}

.bleuF {
    background: #204954;
    color: #fff;
    border: 2px solid #204954;
}

.bleuF:hover {
    background: #153037;
}

.transpaA {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.transpaA:hover {
    background: rgba(255,255,255,0.2);
}

.rond {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
}

.small {
    padding: 8px 15px;
    font-size: 14px;
}

.medium {
    padding: 12px 30px;
    font-size: 16px;
}

.large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.col {
    padding: 0 15px;
}

.c1-2 {
    width: 50%;
}

.c1-3 {
    width: 33.333%;
}

/* Calendar icons */
time.icon {
    font-size: 1em;
    display: block;
    position: relative;
    width: 7em;
    height: 7em;
    background-color: #fff;
    border-radius: 0.6em;
    box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
    overflow: hidden;
    margin: 10px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

time.icon:hover {
    transform: scale(1.05);
}

time.icon * {
    display: block;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    font-style: normal;
    text-align: center;
}

time.icon strong {
    position: absolute;
    top: 0;
    padding: 0.4em 0;
    color: #fff;
    background-color: #f18d00;
    border-bottom: 1px dashed #d27400;
    box-shadow: 0 2px 0 #f18d00;
}

time.icon em {
    position: absolute;
    bottom: 0.3em;
    color: #f18d00;
    font-size: 0.9em;
}

time.icon span {
    width: 100%;
    font-size: 2.8em;
    letter-spacing: -0.05em;
    padding-top: 0.8em;
    color: #2f2f2f;
}

/* Formulaires */
.hform {
    text-align: left;
}

.hform label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.hform input[type="text"],
.hform input[type="email"],
.hform input[type="tel"],
.hform textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.hform textarea {
    resize: vertical;
}

.antispam {
    display: none !important;
}

/* Accordion */
.accordion {
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
}

.accordion:after {
    content: '\002B';
    color: #fff;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion.active:after {
    content: "\2212";
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

/* Modales */
.pop-up {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
}

.pop-up:target {
    display: block;
}

.popBox {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.popScroll {
    padding: 20px;
}

.lightbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.box2 {
    padding: 20px;
}

/* Footer */
footer {
    background: #f5f5f5;
    padding: 40px 20px;
    color: #333;
}

footer h1 {
    color: #375d59;
    font-size: 1.5em;
}

footer p {
    line-height: 1.8;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-rigth {
    text-align: right;
}

.offtxt {
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .col.c1-2,
    .col.c1-3 {
        width: 100%;
    }
    
    .sousmenu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bigTitre {
        font-size: 2.5em;
    }
    
    .majTitre {
        font-size: 1.8em;
    }
    
    .dropdown-content {
        position: relative;
    }
}

/* Fontsize ajustment buttons */
.fontsize {
    position: fixed;
    right: 20px;
    top: 100px;
    z-index: 1000;
}

.fontsize button {
    display: block;
    margin: 5px 0;
}
