@font-face {
    font-family: 'GLiker';
    src: url('../Font/gliker-regular.eot');
    src: url('../Font/gliker-regular.eot?#iefix') format('embedded-opentype'),
         url('../Font/gliker-regular.woff2') format('woff2'),
         url('../Font/gliker-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #d11b41;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'GLiker', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    background: var(--accent);
    color: var(--white);
    position: relative;
    flex-basis: 20vh;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem 1rem 0 1rem;
}

.logo img {
    height: 8rem;
    width: auto;
    display: block;
}

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--white);
    border: 5px solid var(--white);
    font-size: 1.5rem;
}

.nav-btn:hover {
    background-color: var(--white);
    color: var(--accent);
    transform: translateY(-3px);
}

.active {
    background-color: var(--white);
    color: var(--accent);
}

.wave {
    display: block;
    width: 100%;
    height: auto;
}

/* Hero */
.hero {
    background: #fff;
    text-align: center;
    padding: 10rem 1rem 3.5rem;
    height: 65vh;
}

.hero h1 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 800;
}

.hero-subtitle {
    margin-top: 0.5rem;
    color: var(--accent);
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
}

.hero-buttons {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    border: 4px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    background: transparent;
    transition: background .12s, color .12s, transform .12s;
}

.btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* 404 Error */
.error-404 {
    background: #fff;
    text-align: center;
    padding: 10rem 1rem 3.5rem;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404 h1 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.9;
    font-weight: 800;
}

.error-message {
    margin: 1rem 0 0.5rem;
    color: var(--accent);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
}

.error-description {
    margin: 0 0 2rem;
    color: #666;
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* PDF lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-content {
    width: min(1100px, 95%);
    max-height: 90vh;
    background: transparent;
    border-radius: 8px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.lightbox-frame {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 100%;
    max-height: calc(90vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.lightbox-frame img,
.lightbox-frame iframe {
    width: 100%;
    height: calc(80vh - 80px);
    display: block;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.lightbox-frame video {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.lightbox-caption {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    padding: 0 0.5rem;
}
/* toolbar inside the frame */
.lightbox-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 6;
}
.lightbox-close,
.lightbox-download {
    background: var(--accent);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}
@media (max-width: 480px) {
    .lightbox-frame { padding: 0.6rem; }
    .lightbox-close, .lightbox-download { width: 34px; height: 34px; font-size: 1rem; }
}
.lightbox-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.lightbox-close,
.lightbox-download {
    border: var(--accent) 2px solid;
    background-color: transparent;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.lightbox-close,
.lightbox-download {
    background: var(--accent);
}

/* Projects */
.projects {
    color: var(--white);
    position: relative;
    overflow: visible;
}

.wave-top, .wave-bottom {
    display: block;
    width: 100%;
    height: auto;
}

.color-block {
    background: var(--accent);
}

.projects-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.5rem 1rem 4rem;
    text-align: center;
}

.projects h2, #projects-title {
    font-size: 5rem;
    margin: 0 0 1rem 0;
}
/* Linked title styling */
.projects h2 a, #projects-title a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.projects h2 a:focus, #projects-title a:focus {
    outline: 3px solid rgba(255,255,255,0.9);
    outline-offset: 4px;
    border-radius: 6px;
}
.project-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter {
    background: transparent;
    color: var(--white);
    border: 4px solid rgba(255,255,255,0.9);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-family: "gliker", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
}

.filter:hover {
    background: var(--white);
    color: var(--accent);
    cursor: pointer;
}

.filter.active {
    background: var(--white);
    color: var(--accent);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.project-card {
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    aspect-ratio: 16/9;
    z-index: 0;
    transition: transform .18s ease, filter .18s ease;
    will-change: transform, filter;
}

.project-card {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}

.project-card:hover {
    box-shadow: var(--white) 0 1rem 2rem;
}

/* colored overlay */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(209, 27, 66, 0.9), rgba(209, 27, 66, 0.9));
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
    z-index: 1;
}

/* info block */
.project-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 1rem 1.2rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 2;
}

.project-info h3 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    font-family: 'GLiker', sans-serif;
}

.project-sub { font-family: 'GLiker', sans-serif; }

.project-tag { font-family: 'GLiker', sans-serif; }

.project-info h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 900;
    font-family: 'GLiker', sans-serif;
}

.project-sub {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.project-tag {
    margin-top: 0.8rem;
    background: #fff;
    color: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    font-weight: 900;
    font-family: 'GLiker', sans-serif;
    display: inline-block;
}

.project-desc {
    margin-top: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease .06s, transform .18s ease .06s;
    max-width: 86%;
    margin-left: auto;
    margin-right: auto;
}

.project-info h3 {
    transition: opacity .14s ease .02s, transform .14s ease .02s;
}

.project-card:hover::before,
.project-card:focus-within::before,
.project-card:focus::before {
    opacity: 1;
}

.project-card:hover .project-info,
.project-card:focus-within .project-info,
.project-card:focus .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover img,
.project-card:focus img {
    transform: scale(1.06);
    filter: brightness(.7);
}


.decorative-duck {
    position: absolute;
    top: -13rem;
    right: 0rem;
    width: 20rem;
    height: auto;
    z-index: 1;
}
/* Outils */
.outils {
    background: #fff;
    text-align: center;
    padding: 2.2rem 1rem 3rem;
}

.outils-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.outils h2, #outils-title {
    color: var(--accent);
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
}

.outils-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .12s ease;
}

.tool:hover {
    transform: translateY(-4px);
}

.tool-icon {
    height: 6rem;
    display: block;
    object-fit: contain;
}

.tool-icon-p {
    height: 5rem;
    display: block;
    object-fit: contain;
}

/* Contact */
.contact {
    background: #fff;
    padding: 3.5rem 1rem 5rem;
}

.contact-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    color: var(--accent);
    font-weight: 900;
    margin: 0;
}

/* accessible hidden label */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.contact-form {
    flex: 1;
}

/* contact status messages */
.contact-status{
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: block;
}
.contact-status.success{ background: #1e7a12; color: #fff; }
.contact-status.error{ background: #ba1e1e; color: #fff; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 4px solid var(--accent);
    padding: 1.2rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #101e27;
    background: transparent;
    resize: vertical;
    font-family: 'GLiker', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Placeholder styling — ensure GLiker is used and visible */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #d6d6d6;
    font-weight: 700;
    font-family: 'GLiker', sans-serif;
}

.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
    color: #d6d6d6;
    font-weight: 700;
    font-family: 'GLiker', sans-serif;
}

.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder {
    color: #d6d6d6;
    font-weight: 700;
    font-family: 'GLiker', sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #d6d6d6;
    font-weight: 700;
}

/* Remove browser default focus (black outline) and use a subtle accent for accessibility */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: var(--accent);
    appearance: none;
    -webkit-appearance: none;
}

/* Keep a visible focus ring for keyboard users */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: none;
    outline-offset: none;
    border-radius: none;
}

/* field level error styles */
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-bottom-color: #ba1e1e;
}
.field-error{
  margin-top: .35rem;
  color: #ba1e1e;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-actions {
    margin-top: 2.25rem;
    display: flex;
    justify-content: center;
}

.send-btn {
    color: var(--accent);
    padding: 0.8rem 2.2rem;
    border-radius: 999px;
    border: var(--accent) 4px solid;
    font-family: 'GLiker', sans-serif;
    font-size: 1.6rem;
    cursor: pointer;
}

.send-btn:hover {
    transform: translateY(-3px);
    background: var(--accent);;
    color: var(--white);
}

/* Footer */
.site-footer {
    position: relative;
    color: var(--white);
}

.footer-wave {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -1px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    font-family: 'GLiker', sans-serif;
    font-size: 1.2rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social li {
    display: inline-block;
}

.social-link {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link i {
    font-size: 3rem;
    display: block;
}

.social-link:hover {
    transform: translateY(-3px);
}

.footer-copy {
    font-weight: 700;
    font-family: 'GLiker', sans-serif;
}