/* RESET + BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Metamorphous', serif;
    background-color: #000;
}

h1, h2, h4, p {
    color: white;
    text-shadow: 2px 6px 4px rgba(0, 0, 0, 1);
}

h1 { margin: 0; font-size: 60px; }
h4 { font-size: 30px; margin: 0; }

/* SKIP LINK (RGAA) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-family: 'Metamorphous', serif;
    text-decoration: none;
    font-size: 14px;
}
.skip-link:focus {
    top: 0;
}

/* HEADER */
#head {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.vibrate {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.vibrate img {
    height: 180px;
    width: auto;
}

.title-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.vibrate:hover { animation: vibrate 0.25s linear; }
.vibrate:focus-within img { outline: 3px solid #fff; outline-offset: 4px; }

@keyframes vibrate {
    0%   { transform: translate(0); }
    20%  { transform: translate(-2px, 2px); }
    40%  { transform: translate(-2px, -2px); }
    60%  { transform: translate(2px, 2px); }
    80%  { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* SECTION DESK */
#desk {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 0;
    background-image: url("./image/desk.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* FORMULAIRE */
.forminscription {
    width: 420px;
    max-width: 92vw;
    background-color: rgba(20, 12, 5, 0.75);
    padding: 28px 32px 24px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(180, 140, 80, 0.35);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
}

.forminscription h2 {
    color: #f0d89a;
    text-align: center;
    font-size: 28px;
    margin-bottom: 18px;
    text-shadow: 1px 3px 6px rgba(0,0,0,0.9);
    letter-spacing: 0.05em;
}

.forminscription label {
    display: block;
    color: #e8d5a8;
    font-size: 15px;
    margin-bottom: 4px;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.9);
    align-self: flex-start;
}

.forminscription input[type="email"] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    margin: 4px 0 10px 0;
    border-radius: 6px;
    border: 2px solid #ccc;
    font-size: 18px;
    font-family: 'Metamorphous', serif;
    transition: border-color 0.2s;
}
.forminscription input[type="email"]:focus {
    border-color: #fff;
    outline: 2px solid #fff;
    outline-offset: 1px;
}
.forminscription input[type="email"]:invalid {
    border-color: #f87171;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #d4b87a;
    font-size: 12px;
    margin: 8px 0;
    cursor: pointer;
    line-height: 1.4;
    text-align: left;
    text-shadow: none;
}

/* Mention RGPD */
.rgpd-notice {
    color: rgba(200, 170, 110, 0.7);
    font-size: 11px;
    text-align: center;
    margin: 8px 0;
    line-height: 1.4;
    text-shadow: none;
}
.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #fff;
    cursor: pointer;
}
.consent-label input[type="checkbox"]:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.forminscription button[type="button"] {
    display: block;
    width: 100%;
    padding: 13px 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(120, 80, 30, 0.85) 0%, rgba(80, 50, 15, 0.9) 100%);
    font-family: 'Metamorphous', serif;
    border: 1px solid rgba(200, 160, 80, 0.6);
    border-radius: 3px;
    font-size: 17px;
    color: #f0d89a;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
    transition: background 0.2s, border-color 0.2s;
}
.forminscription button[type="button"]:hover {
    background: linear-gradient(135deg, rgba(150, 100, 40, 0.95) 0%, rgba(100, 65, 20, 0.95) 100%);
    border-color: rgba(220, 180, 100, 0.9);
}
.forminscription button[type="button"]:focus {
    outline: 2px solid #f0d89a;
    outline-offset: 2px;
}
.forminscription button[type="button"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages de retour */
.form-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    width: 100%;
}
.form-message.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.form-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* FOOTER */
.footer {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    top: -10px;
}

.footer-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('./image/taf2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 40px 20px;
}

.footer-links a {
    display: block;
    font-size: 22px;
    color: white;
    text-decoration: none;
    padding: 4px;
}
.footer-links a:hover,
.footer-links a:focus {
    cursor: pointer;
    background-color: rgba(142, 142, 142, 0.458);
    border-radius: 6px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.footer-email {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.footer-email img { height: 28px; }
.footer-email a {
    font-size: 20px;
    color: white;
    text-decoration: none;
}
.footer-email a:hover,
.footer-email a:focus {
    text-decoration: underline;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* MEDIA QUERIES */
@media (prefers-reduced-motion: reduce) {
    .vibrate:hover { animation: none; }
}

@media (max-width: 1024px) {
    .vibrate img { height: 100px; }
    h1 { font-size: 40px; }
    .forminscription { width: 90%; }
    .footer-links a { font-size: 18px; }
}

@media (max-width: 760px) {
    #head { flex-direction: column; gap: 10px; }
    .vibrate img { height: 120px; }
    h1 { font-size: 36px; text-align: center; }
    .footer { min-height: 250px; }
    .footer-email a { font-size: 16px; }
}
