:root {
    /* Couleurs et styles pour le footer */
    /* Afin de changer les styles, il y a juste à changer ces variables */
    --footer-bg-start: #EEC34D; /* Couleurs de dégradé pour le fond du footer */
    --footer-bg-end: #B2590C; /* Couleurs de dégradé pour le fond du footer */
    --footer-link-color: #fff; /* Couleur des liens dans le footer */
    --footer-link-hover-opacity: 0.8; /* Opacité au survol des liens dans le footer */
    --footer-text-color: #fff; /* Couleur du texte dans le footer */
    --footer-top-border-rgba: rgba(255, 255, 255, 0.2); /* Couleur de la bordure du haut du footer en RGBA pour la transparence */
    --scroll-to-top-bg: #fad91f; /* Couleur de fond du bouton "Remonter en haut" */
}

.footer {
    background: linear-gradient(69deg, var(--footer-bg-start) 14.06%, var(--footer-bg-end) 52.11%);
    width: 100%;
    margin-top: 0;
}

.footer-top {
    border-bottom: 1px solid var(--footer-top-border-rgba);
    padding: 24px 16px;
}

.footer-nav {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--footer-link-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: var(--footer-link-hover-opacity);
}

.footer-bottom {
    padding: 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-text-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-bottom p.footer-version {
    display: block !important;
    visibility: visible !important;
    margin: 6px 0 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    opacity: 0.82 !important;
    color: var(--footer-text-color) !important;
}
.footerDir{
    color: var(--footer-link-color);
    text-decoration: underline;
}
.footer-company{
    max-width:1120px;
    margin:0 auto;
    padding:8px 16px
}
.footer-company p{
    margin:0;
    font-size:0.75rem;
    font-weight:400;
    color:var(--footer-text-color)
}
.footer-company p strong{
    font-weight:500
}
.footer-company a{
    color:var(--footer-link-color);
    text-decoration:none
}
.footer-company a.footer-email-link{
    color:var(--footer-link-color);
    text-decoration:none
}
.footer-company a.footer-email-link:hover{text-decoration:underline}


.scroll-to-top {
    position: fixed;
    right: 44px;
    bottom: 44px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: var(--scroll-to-top-bg);
    color: #000000;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease, visibility 0s linear 0.35s;
}
.scroll-to-top span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.up-to {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
    object-fit: contain;
}
.scroll-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease;
}

.scroll-to-top.is-hidden {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
}

.scroll-to-top:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.scroll-to-top:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

@media (max-width:768px) {
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
}

@media (min-width:768px){
    .footer-company{
        display:flex;
        gap:12px;
        align-items:center;
        justify-content:center
    }
    .footer-company p{
        font-size:0.85rem
    }
}
/* v21 : footer bleu cohérent */
:root {
    --footer-bg-start: #63bcc9;
    --footer-bg-end: #1f7087;
    --footer-text-color: #f7fcfd;
    --footer-link-color: #ffffff;
    --footer-link-hover-color: #dff5f9;
}

/* v22 : footer premium Résawan */
.footer-premium {
    background:
        radial-gradient(circle at 8% 10%, rgba(255,255,255,.13), transparent 28%),
        linear-gradient(120deg, #165a6f 0%, #1f7087 48%, #2b8ca2 100%);
    color: #f7fcfd;
}
.footer-premium-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 30px;
    display: grid;
    grid-template-columns: minmax(250px, 1.15fr) minmax(0, 2fr);
    gap: 56px;
    align-items: start;
}
.footer-brand-block {
    padding: 4px 0;
}
.footer-brand-name {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}
.footer-brand-text {
    margin: 8px 0 18px;
    max-width: 390px;
    color: rgba(247,252,253,.84);
    font-size: .96rem;
    line-height: 1.55;
}
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: .91rem;
}
.footer-contact-list a,
.footer-contact-list span {
    color: #fff;
    text-decoration: none;
}
.footer-contact-list a:hover { text-decoration: underline; }
.footer-premium-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav-group strong {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 4px;
}
.footer-nav-group a {
    color: rgba(247,252,253,.84);
    text-decoration: none;
    font-size: .9rem;
    transition: color .18s ease, transform .18s ease;
}
.footer-nav-group a:hover {
    color: #fff;
    transform: translateX(2px);
}
.footer-admin-link { opacity: .7; font-size: .82rem !important; }
.footer-legal-line {
    border-top: 1px solid rgba(255,255,255,.16);
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 18px;
    color: rgba(247,252,253,.72);
    font-size: .76rem;
}
.footer-legal-line .footer-version {
    font-size: .72rem !important;
    opacity: .8 !important;
    color: inherit !important;
    margin: 0 !important;
}
.scroll-to-top {
    background: #fff;
    color: #1f7087;
    border: 1px solid #c7e1e6;
    box-shadow: 0 10px 24px rgba(20,65,78,.18);
}
@media (max-width: 850px) {
    .footer-premium-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
    .footer-premium-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .footer-premium-inner { padding: 30px 18px 24px; }
    .footer-premium-nav { grid-template-columns: 1fr; gap: 22px; }
    .footer-legal-line { padding-inline: 18px; justify-content: flex-start; }
}
