/* ═══════════════════════════════════════
   HOME.CSS — Landing page New Brutalism
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@100;300;400;900&family=Palanquin+Dark:wght@400;500;600;700&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: #ffc700;
    color: #1d1d1b;
    overflow-x: hidden;
    font-family: 'Palanquin Dark', sans-serif;
}

/* Curseurs personnalisés */
*, html, body { cursor: url('../Images/cursor.svg'), auto; }
a, button, select, input, textarea, label { cursor: url('../Images/pointer.svg'), pointer; }

/* ── Utilitaires ── */
.section-label {
    display: inline-block;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: black;
    color: #ffc700;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
}

.section-label--light {
    background: #ffc700;
    color: black;
}

.section-label-row {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Londrina Solid', sans-serif;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 400;
    color: #1d1d1b;
    line-height: 1.05;
    margin-bottom: 48px;
}

.section-title--light { color: white; }

/* ── Boutons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    padding: 14px 28px;
    border: 4px solid black;
    border-radius: 2px;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
    cursor: url('../Images/pointer.svg'), pointer;
}

.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
    background: black;
    color: #ffc700;
    box-shadow: 6px 6px 0 #0068ff;
}
.btn-primary:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #0068ff;
}

.btn-secondary {
    background: #ffc700;
    color: black;
    box-shadow: 6px 6px 0 black;
}
.btn-secondary:hover {
    background: #dd7dff;
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 black;
}

.btn-outline {
    background: transparent;
    color: black;
    border: 3px solid black;
    box-shadow: 4px 4px 0 black;
    font-size: 18px;
    padding: 10px 22px;
}
.btn-outline:hover {
    background: black;
    color: #ffc700;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 black;
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 3px solid white;
    box-shadow: 4px 4px 0 rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: white;
    color: black;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    min-height: calc(100vh - 80px);
    background: #ffc700;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Grille de fond brutaliste */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 60px 80px 40px 0;
    position: relative;
    min-height: calc(100vh - 80px - 64px); /* minus ticker */
}

/* Personnage */
.hero-character {
    position: absolute;
    left: -4%;
    bottom: 0;
    height: 90%;
    max-height: 80vh;
    z-index: 1;
    pointer-events: none;
}

.character-img {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 50vw;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.character-normal  { left: 0; transform: translateY(0); opacity: 1; }
.character-mirror  { right: 0; left: auto; transform: translateY(30px); opacity: 0; }

.hero-character:hover .character-normal  { transform: translateY(-10px); }

/* Animation d'entrée */
@keyframes slideInLeft {
    from { transform: translateX(-120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInRight {
    from { transform: translateX(60px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.hero-character { animation: slideInLeft 0.9s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-content   { animation: slideInRight 0.9s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Contenu texte du hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    background: #0068ff;
    color: white;
    padding: 6px 16px;
    border: 3px solid black;
    border-radius: 2px;
    box-shadow: 4px 4px 0 black;
    margin-bottom: 24px;
    animation: fadeUp 0.6s 0.5s both;
}

.hero-title {
    font-family: 'Londrina Solid', sans-serif;
    font-weight: 400;
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.0;
    color: #1d1d1b;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.6s both;
}

.hero-title-accent {
    color: #0068ff;
    -webkit-text-stroke: 0px;
}

.hero-title-big {
    font-size: clamp(56px, 8vw, 110px);
    line-height: 0.9;
    display: block;
    -webkit-text-stroke: 3px #1d1d1b;
    color: transparent;
}

.hero-sub {
    font-family: 'Palanquin Dark', sans-serif;
    font-size: 16px;
    color: #1d1d1b;
    margin-bottom: 36px;
    letter-spacing: 1px;
    animation: fadeUp 0.6s 0.7s both;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.8s both;
}

/* ── Ticker tape ── */
.ticker {
    width: 100%;
    background: black;
    border-top: 4px solid black;
    overflow: hidden;
    height: 56px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-track {
    display: flex;
    gap: 0;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    will-change: transform;
}

.ticker-track span {
    font-family: 'Londrina Solid', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffc700;
    padding: 0 24px;
}

.ticker-sep {
    color: #0068ff !important;
    padding: 0 4px !important;
    font-size: 14px !important;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   À PROPOS
══════════════════════════════════════════ */
.about-section {
    background: white;
    padding: 100px 80px;
    border-top: 4px solid black;
    border-bottom: 4px solid black;
    position: relative;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: start;
}

.about-photo-wrap {
    position: relative;
    animation: fadeUp 0.7s 0.1s both;
}

.about-photo-frame {
    position: relative;
    z-index: 2;
    border: 4px solid black;
    box-shadow: 8px 8px 0 black;
    border-radius: 2px;
    overflow: hidden;
    background: #ffc700;
}

.about-photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-photo-deco {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    background: #dd7dff;
    border: 4px solid black;
    border-radius: 2px;
    z-index: 1;
}

.about-text { animation: fadeUp 0.7s 0.25s both; }

.about-name {
    font-family: 'Londrina Solid', sans-serif;
    font-size: 52px;
    font-weight: 400;
    margin-bottom: 4px;
    color: #1d1d1b;
}

.about-tagline {
    font-size: 20px;
    color: #0068ff;
    font-weight: 600;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #1d1d1b;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.tag {
    font-family: 'Londrina Solid', sans-serif;
    font-size: 16px;
    padding: 4px 14px;
    border: 3px solid black;
    border-radius: 2px;
    font-weight: 400;
}

.tag-yellow  { background: #ffc700; }
.tag-blue    { background: #0068ff; color: white; }
.tag-purple  { background: #dd7dff; }
.tag-green   { background: #00ff7c; }

/* ══════════════════════════════════════════
   COMPÉTENCES
══════════════════════════════════════════ */
.skills-section {
    background: #ffc700;
    padding: 100px 80px;
    border-bottom: 4px solid black;
}

.skills-section > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-card {
    border: 4px solid black;
    border-radius: 2px;
    padding: 32px 24px;
    box-shadow: 8px 8px 0 black;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.skill-card:nth-child(2) { transform: rotate(1deg); }
.skill-card:nth-child(4) { transform: rotate(-1deg); }

.skill-card:hover {
    transform: rotate(0deg) translate(-4px, -4px) !important;
    box-shadow: 12px 12px 0 black;
}

.skill-card--yellow { background: white; }
.skill-card--blue   { background: #0068ff; color: white; }
.skill-card--purple { background: #dd7dff; }
.skill-card--green  { background: #00ff7c; }

.skill-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.skill-card h3 {
    font-family: 'Londrina Solid', sans-serif;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 12px;
}

.skill-card p {
    font-size: 15px;
    line-height: 1.6;
}

.skill-card--blue h3,
.skill-card--blue p { color: white; }

/* ══════════════════════════════════════════
   PROJETS EN VEDETTE
══════════════════════════════════════════ */
.projects-section {
    background: #1d1d1b;
    padding: 100px 80px;
    border-top: 4px solid black;
}

.projects-header {
    max-width: 1100px;
    margin: 0 auto 60px;
}

.projects-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.project-card {
    background: white;
    border: 4px solid black;
    border-radius: 2px;
    box-shadow: 8px 8px 0 #ffc700;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: rotate(-1deg) translate(-4px, -4px);
    box-shadow: 12px 12px 0 #ffc700;
}

.project-tag {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dd7dff;
    color: black;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 13px;
    padding: 4px 10px;
    border: 3px solid black;
    border-top: none;
    border-right: none;
    box-shadow: 3px 3px 0 black;
    z-index: 2;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-img-wrap {
    height: 220px;
    overflow: hidden;
    border-bottom: 4px solid black;
    background: #ffc700;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.project-card:hover .project-img-wrap img { transform: scale(1.06); }

.project-img-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #ffc700,
        #ffc700 10px,
        #1d1d1b 10px,
        #1d1d1b 20px
    );
}

.project-info {
    padding: 20px;
    font-family: 'Palanquin Dark', sans-serif;
}

.project-info h3 {
    font-family: 'Londrina Solid', sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #1d1d1b;
}

.project-info p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.projects-empty {
    color: #aaa;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 24px;
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
}

.projects-cta {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
    background: #00ff7c;
    border-top: 4px solid black;
    padding: 100px 80px;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-title {
    font-family: 'Londrina Solid', sans-serif;
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 400;
    line-height: 0.95;
    color: #1d1d1b;
    margin-bottom: 24px;
}

.contact-desc {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 36px;
    color: #1d1d1b;
    max-width: 380px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 20px;
    color: #1d1d1b;
    text-decoration: none;
    padding: 10px 16px;
    border: 3px solid black;
    border-radius: 2px;
    background: white;
    box-shadow: 4px 4px 0 black;
    transition: transform 0.1s, box-shadow 0.1s;
    width: fit-content;
}

.contact-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 black;
    background: #ffc700;
}

.contact-link-icon {
    font-size: 18px;
}

/* Formulaire */
.contact-form-wrap {
    background: white;
    border: 4px solid black;
    border-radius: 2px;
    box-shadow: 10px 10px 0 black;
    padding: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Londrina Solid', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1d1d1b;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Palanquin Dark', sans-serif;
    font-size: 15px;
    padding: 10px 14px;
    border: 3px solid black;
    border-radius: 2px;
    background: #fafafa;
    color: #1d1d1b;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0068ff;
    box-shadow: 4px 4px 0 #0068ff;
    background: white;
}

.btn-submit {
    background: black;
    color: #ffc700;
    border: 4px solid black;
    border-radius: 2px;
    box-shadow: 6px 6px 0 #0068ff;
    padding: 14px 28px;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 20px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: url('../Images/pointer.svg'), pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #0068ff;
}

.form-success {
    background: #00ff7c;
    border: 3px solid black;
    border-radius: 2px;
    padding: 14px 18px;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 black;
}

.form-error {
    background: #ff6f6f;
    border: 3px solid black;
    border-radius: 2px;
    padding: 14px 18px;
    font-family: 'Londrina Solid', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 black;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .hero-inner { padding: 40px 40px 40px 0; }
    .about-section,
    .skills-section,
    .projects-section,
    .contact-section { padding: 80px 40px; }
    .about-inner { grid-template-columns: 280px 1fr; gap: 50px; }
    .contact-inner { gap: 50px; }
}

@media (max-width: 768px) {
    .hero-inner {
        padding: 40px 24px 60px;
        justify-content: center;
    }
    .hero-content { text-align: center; max-width: 100%; }
    .hero-ctas { justify-content: center; }
    .hero-character { display: none; }
    .hero-content { z-index: 1; }

    .hero-title-big { font-size: clamp(50px, 14vw, 80px); }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section { padding: 60px 20px; }

    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-photo-wrap { max-width: 280px; margin: 0 auto; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-card:nth-child(2),
    .skill-card:nth-child(4) { transform: none; }

    .projects-grid { grid-template-columns: 1fr; }

    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
    .skills-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
}
