/*
Theme Name: HappyEng
Theme URI: https://happyeng.fr
Author: Sébastien Delplanque
Author URI: https://happyeng.fr
Description: Site one-page freelance Tech Lead PHP / Drupal — Happy Eng (Warm theme)
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happyeng
Tags: one-page, freelance, portfolio
*/

/* ============================================================
   VARIABLES — Palette chaude : amber, terracotta, ivoire
   ============================================================ */
:root {
    --primary:   #1c1208;
    --accent:    #e07b2a;
    --accent2:   #d4a832;
    --dark:      #2a1a0e;
    --light:     #fdf8f0;
    --text:      #2d1f0f;
    --muted:     #7a5c3c;
    --white:     #ffffff;
    --card-bg:   #ffffff;
    --border:    #e8d9c4;
    --shadow:    0 8px 40px rgba(224,123,42,0.18);
    --terra:     #c0533a;
    --amber-lt:  #f5a44d;
    --cream-dk:  #f5ede0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lora', Georgia, serif; color: var(--text); background: var(--light); overflow-x: hidden; }

/* ── WordPress admin bar compatibility ──────────
   La topbar WP fait 32px (desktop) et 46px (≤782px).
   On décale la nav fixe et l'ancre #hero en conséquence.
   La règle est ignorée automatiquement quand l'admin bar
   n'est pas présente (la classe .admin-bar n'est pas sur <body>).
──────────────────────────────────────────────── */
.admin-bar nav        { top: 32px; }
.admin-bar #hero      { scroll-margin-top: calc(32px + 68px); }
.admin-bar section[id]{ scroll-margin-top: calc(32px + 68px); }

@media screen and (max-width: 782px) {
    .admin-bar nav         { top: 46px; }
    .admin-bar #hero       { scroll-margin-top: calc(46px + 68px); }
    .admin-bar section[id] { scroll-margin-top: calc(46px + 68px); }
}

/* Toutes les sections ont un scroll-margin pour compenser la navbar fixe */
section[id] { scroll-margin-top: 68px; }

/* NAVBAR */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(28,18,8,0.97);
    backdrop-filter: blur(12px);
    padding: 0 5%;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
    box-shadow: 0 2px 30px rgba(0,0,0,0.35);
    transition: background 0.3s, top 0.3s;
    border-bottom: 1px solid rgba(224,123,42,0.2);
}
.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700; font-size: 1.3rem; color: var(--white);
    letter-spacing: 0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,0.72); text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.87rem; font-weight: 500; letter-spacing: 0.3px;
    transition: color 0.2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px;
    background: var(--amber-lt); transition: width 0.3s;
}
.nav-links a:hover { color: var(--amber-lt); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--accent); color: var(--white); border: none;
    padding: 0.5rem 1.3rem; border-radius: 6px; font-size: 0.86rem;
    font-family: 'DM Sans', sans-serif; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--terra); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: white; transition: 0.3s; display: block; }

/* HERO */
#hero {
    min-height: 100vh;
    background:
            radial-gradient(ellipse 80% 60% at 70% 40%, rgba(224,123,42,0.22) 0%, transparent 70%),
            radial-gradient(ellipse 50% 50% at 20% 80%, rgba(192,83,58,0.15) 0%, transparent 60%),
            linear-gradient(160deg, #1c1208 0%, #2d1a0a 45%, #1a100a 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    padding: 120px 5% 80px;
}
.admin-bar #hero { padding-top: 152px; }
@media screen and (max-width: 782px) {
    .admin-bar #hero { padding-top: 166px; }
}
/* Texture grain légère */
#hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.4;
}
.hero-bg-circle {
    position: absolute; border-radius: 50%;
}
.hero-bg-circle.c1 {
    width: 700px; height: 700px; top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(212,168,50,0.1) 0%, transparent 65%);
}
.hero-bg-circle.c2 {
    width: 400px; height: 400px; bottom: -80px; left: 10%;
    background: radial-gradient(circle, rgba(192,83,58,0.12) 0%, transparent 70%);
}
.hero-grid-overlay {
    position: absolute; inset: 0; z-index: 0;
    background-image: repeating-linear-gradient(
            -55deg, transparent, transparent 80px,
            rgba(224,123,42,0.025) 80px, rgba(224,123,42,0.025) 81px
    );
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    position: relative; z-index: 2;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(224,123,42,0.15); border: 1px solid rgba(224,123,42,0.35);
    border-radius: 50px; padding: 6px 16px; margin-bottom: 1.5rem;
    color: var(--amber-lt); font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.hero-badge::before { content: '●'; color: var(--amber-lt); font-size: 0.55rem; animation: pulse-warm 2.5s ease-in-out infinite; }
@keyframes pulse-warm { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.hero-title {
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.12;
    color: var(--white); margin-bottom: 1.1rem; letter-spacing: -0.5px;
}
.hero-title .accent { color: var(--amber-lt); font-style: italic; }
.hero-subtitle {
    font-family: 'Lora', Georgia, serif; font-style: italic;
    font-size: 1.05rem; color: rgba(255,255,255,0.68); line-height: 1.8;
    margin-bottom: 1.2rem; max-width: 500px;
}
.hero-subtitle strong { color: rgba(255,255,255,0.9); font-style: normal; }
.hero-signature {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem; color: rgba(255,255,255,0.52); line-height: 1.6;
    margin-bottom: 2rem; max-width: 480px;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(224,123,42,0.4);
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent); color: white; border: none;
    padding: 0.85rem 2rem; border-radius: 8px; font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 24px rgba(224,123,42,0.45);
}
.btn-primary:hover { background: var(--terra); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(192,83,58,0.5); }
.btn-outline {
    background: transparent; color: white;
    border: 1.5px solid rgba(255,255,255,0.3); padding: 0.85rem 2rem;
    border-radius: 8px; font-size: 0.95rem; font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; text-decoration: none; transition: all 0.25s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--amber-lt); color: var(--amber-lt); transform: translateY(-2px); }
.hero-stats {
    display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 2rem;
    color: var(--white); display: block;
}
.stat-num span { color: var(--amber-lt); }
.stat-label { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1.2px; }

/* Hero right: card */
.hero-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(224,123,42,0.2);
    border-radius: 20px; padding: 2.5rem;
    backdrop-filter: blur(12px);
    animation: floatCard 5s ease-in-out infinite;
    position: relative;
}
.hero-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--terra), var(--accent2));
    border-radius: 20px 20px 0 0;
}
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.hero-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--terra));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: white;
    flex-shrink: 0; box-shadow: 0 4px 20px rgba(224,123,42,0.4);
}
.hero-card-name { font-family: 'Playfair Display', serif; font-weight: 700; color: white; font-size: 1.1rem; }
.hero-card-role { color: rgba(255,255,255,0.5); font-size: 0.82rem; font-family: 'DM Sans', sans-serif; margin-top: 2px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.skill-tag {
    background: rgba(224,123,42,0.18); border: 1px solid rgba(224,123,42,0.3);
    color: var(--amber-lt); font-size: 0.74rem; padding: 4px 12px; border-radius: 50px;
    font-family: 'DM Sans', sans-serif; font-weight: 500;
}
.availability {
    display: flex; align-items: center; gap: 10px;
    background: rgba(212,168,50,0.1); border: 1px solid rgba(212,168,50,0.25);
    border-radius: 10px; padding: 12px 16px;
}
.avail-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); animation: pulse-warm 2.5s infinite; flex-shrink:0; }
.avail-text { color: rgba(255,255,255,0.8); font-size: 0.82rem; font-family: 'DM Sans', sans-serif; }
.avail-text strong { color: var(--accent2); }

/* SECTION COMMON */
section { padding: 90px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.73rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--accent); display: block; margin-bottom: 0.6rem;
}
.section-title {
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--dark);
    margin-bottom: 1rem; line-height: 1.2;
}
.section-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 560px; }
.section-head { margin-bottom: 3.5rem; }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* SERVICES */
#services { background: var(--light); }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.service-card {
    background: var(--white); border-radius: 14px; padding: 2rem;
    border: 1px solid var(--border); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--terra));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #e8c9a4; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(224,123,42,0.12), rgba(192,83,58,0.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.2rem;
    border: 1px solid rgba(224,123,42,0.15);
}
.service-icon img {
    width: 60%;
}
.service-card h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 0.6rem; }
.service-card p { font-family: 'DM Sans', sans-serif; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ABOUT */
#about {
    background: linear-gradient(160deg, #2a1a0e 0%, #1c1208 60%, #2d1a0a 100%);
    padding: 70px 5%;
}
.about-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-content .section-label { color: var(--accent2); }
.about-content .section-title { color: var(--white); }
.about-desc {
    font-family: 'Lora', serif; font-style: italic;
    color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem;
}
.about-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.about-list li {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255,255,255,0.72);
    font-family: 'DM Sans', sans-serif; font-size: 0.9rem; line-height: 1.6;
}
.about-list li::before { content: '→'; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.about-stat-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(224,123,42,0.18);
    border-radius: 14px; padding: 1.5rem; text-align: center; transition: border-color 0.2s;
}
.about-stat-card:hover { border-color: rgba(224,123,42,0.4); }
.about-stat-num {
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.7rem;
    color: var(--amber-lt); display: block; margin-bottom: 4px;
}
.about-stat-label { font-family: 'DM Sans', sans-serif; color: rgba(255,255,255,0.45); font-size: 0.78rem; }

/* EXPERIENCE */
#experience { background: var(--cream-dk); }
.experience-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.exp-timeline { position: relative; }
.exp-item {
    position: relative; padding-left: 2rem; margin-bottom: 0.8rem;
    padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateY(20px); transition: all 0.5s;
}
.exp-item.visible { opacity: 1; transform: translateY(0); }
.exp-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.exp-item::before {
    content: ''; position: absolute; left: 0; top: 6px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 3px rgba(224,123,42,0.2);
}
.exp-item::after {
    content: ''; position: absolute; left: 4px; top: 20px; bottom: -1.5rem;
    width: 2px; background: var(--border);
}
.exp-item:last-child::after { display: none; }
.exp-header { display: flex; align-items: flex-start; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.exp-header-info { display: flex; flex-direction: row; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.exp-date {
    display: inline-block; background: rgba(224,123,42,0.1); color: var(--accent);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 50px;
    white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.exp-company { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; color: var(--dark); }
.exp-role { font-family: 'DM Sans', sans-serif; color: var(--terra); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; }
.exp-role::before { content: '·'; margin-right: 0.3rem; color: var(--muted); }
.exp-desc { font-family: 'DM Sans', sans-serif; color: var(--muted); font-size: 0.85rem; line-height: 1.65; }
.exp-desc a { color: var(--accent); }
.exp-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.8rem; }
.exp-tech span {
    background: var(--light); border: 1px solid var(--border); color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem; padding: 3px 9px; border-radius: 4px; font-weight: 500;
}

/* SKILLS */
.skill-group { margin-bottom: 2.2rem; }
.skill-group-title {
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.9rem;
    color: var(--dark); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px;
}
.skill-group-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.skill-bars { display: flex; flex-direction: column; gap: 10px; }
.skill-bar-label { display: flex; justify-content: space-between; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: var(--text); margin-bottom: 5px; font-weight: 500; }
.skill-bar-label span { color: var(--accent); font-weight: 600; }
.skill-bar-track { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; }
.skill-bar-fill {
    height: 100%; border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), var(--terra));
    width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    background: var(--light); border: 1px solid var(--border);
    font-family: 'DM Sans', sans-serif;
    color: var(--text); font-size: 0.8rem; padding: 5px 13px;
    border-radius: 50px; font-weight: 500; transition: all 0.2s; cursor: default;
}
.chip:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* CERTIFICATIONS */
#certifications { background: var(--light); padding: 70px 5%; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.cert-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem;
    transition: all 0.25s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e8c9a4; }
.cert-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--terra));
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.cert-year { font-family: 'DM Sans', sans-serif; color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cert-name { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--dark); font-size: 0.9rem; margin: 2px 0 4px; }
.cert-org { font-family: 'DM Sans', sans-serif; color: var(--muted); font-size: 0.8rem; }

/* CONTACT */
#contact {
    background:
            radial-gradient(ellipse 60% 50% at 80% 30%, rgba(224,123,42,0.18) 0%, transparent 65%),
            linear-gradient(160deg, #1c1208 0%, #2d1a0a 100%);
    padding: 90px 5%;
}
.contact-inner { max-width: 1100px; margin: 0 auto; }
.contact-inner .section-title { color: var(--white); }
.contact-inner .section-label { color: var(--accent2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
    display: flex; align-items: flex-start; gap: 1rem;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 1.2rem 1.4rem; transition: border-color 0.2s;
}
.contact-item:hover { border-color: rgba(224,123,42,0.4); }
.contact-item-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    background: rgba(224,123,42,0.18); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item-label { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-item-value { color: var(--white); font-weight: 500; font-size: 0.9rem; }
.contact-item-value a { color: inherit; text-decoration: none; }
.contact-item-value a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: 'DM Sans', sans-serif; color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; padding: 0.7rem 1rem; color: var(--white);
    font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
    outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select option { background: #1c1208; }
.btn-submit {
    background: var(--accent); color: white; border: none; border-radius: 8px;
    padding: 0.9rem 2rem; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: all 0.25s; font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 20px rgba(224,123,42,0.4); text-align: center;
}
.btn-submit:hover { background: var(--terra); transform: translateY(-2px); }


/* ── Contact Form 7 overrides ───────────────────
   On réutilise les variables du thème.
   Le CSS natif de CF7 est désactivé dans functions.php.
──────────────────────────────────────────────── */
.cf7-wrapper .wpcf7-form {
    display: flex; flex-direction: column; gap: 1rem;
}

/* Masquer le fieldset honeypot anti-spam et les paragraphes vides
   que CF7 génère automatiquement */
.cf7-wrapper .wpcf7-form fieldset,
.cf7-wrapper .wpcf7-form .wpcf7-quiz-label,
.cf7-wrapper .wpcf7-form br,
.cf7-wrapper .wpcf7-form p:empty { display: none !important; }

/* Labels */
.cf7-wrapper .wpcf7-form label {
    display: flex; flex-direction: column; gap: 6px;
    font-family: 'DM Sans', sans-serif;
    color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 500;
}

/* Inputs, textarea, select */
.cf7-wrapper .wpcf7-form input[type="text"],
.cf7-wrapper .wpcf7-form input[type="email"],
.cf7-wrapper .wpcf7-form textarea,
.cf7-wrapper .wpcf7-form select {
    width: 100%;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; padding: 0.7rem 1rem; color: var(--white);
    font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
    outline: none; transition: border-color 0.2s;
    appearance: none; -webkit-appearance: none;
}
.cf7-wrapper .wpcf7-form input[type="text"]:focus,
.cf7-wrapper .wpcf7-form input[type="email"]:focus,
.cf7-wrapper .wpcf7-form textarea:focus,
.cf7-wrapper .wpcf7-form select:focus { border-color: var(--accent); }

.cf7-wrapper .wpcf7-form input::placeholder,
.cf7-wrapper .wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.3); }

.cf7-wrapper .wpcf7-form textarea { min-height: 130px; resize: vertical; }
.cf7-wrapper .wpcf7-form select option { background: #1c1208; color: var(--white); }

/* Disposition nom + email côte à côte (les deux premiers labels) */
.cf7-wrapper .wpcf7-form .wpcf7-name-email-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

/* Bouton submit */
.cf7-wrapper .wpcf7-form input[type="submit"],
.cf7-wrapper .wpcf7-form .btn-submit {
    width: 100%;
    background: var(--accent); color: white; border: none; border-radius: 8px;
    padding: 0.9rem 2rem; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: all 0.25s; font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 20px rgba(224,123,42,0.4);
}
.cf7-wrapper .wpcf7-form input[type="submit"]:hover,
.cf7-wrapper .wpcf7-form .btn-submit:hover { background: var(--terra); transform: translateY(-2px); }

/* Erreurs champ par champ */
.cf7-wrapper .wpcf7-not-valid-tip {
    color: #ff9e7e; font-size: 0.75rem; margin-top: 4px; display: block;
}
.cf7-wrapper .wpcf7-form input.wpcf7-not-valid,
.cf7-wrapper .wpcf7-form textarea.wpcf7-not-valid,
.cf7-wrapper .wpcf7-form select.wpcf7-not-valid {
    border-color: #ff9e7e;
}

/* ── Message de réponse global (succès / erreur) ──
   On affiche UNIQUEMENT .wpcf7-response-output (après le bouton).
   .screen-reader-response reste accessible aux lecteurs d'écran
   mais invisible visuellement (comportement CF7 par défaut).
──────────────────────────────────────────────── */

/* Remettre screen-reader-response hors écran (lecteurs d'écran uniquement) */
.cf7-wrapper .screen-reader-response {
    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;
    background: none !important;
}

/* .wpcf7-response-output — CF7 6.1+ le garde caché en inline style,
   on ne touche pas à ce div. */

/* .screen-reader-response — c'est ici que CF7 6.1+ met le message visible.
   On sort ce div du mode screen-reader et on le stylise. */
.cf7-wrapper .screen-reader-response {
    position: static !important;
    width: auto !important; height: auto !important;
    padding: 0 !important; margin: 0 0 1rem 0 !important;
    overflow: visible !important;
    clip: auto !important; clip-path: none !important;
    white-space: normal !important;
}
/* Masqué par défaut quand le <p> est vide (avant envoi) */
.cf7-wrapper .screen-reader-response p:empty + ul { display: none; }
.cf7-wrapper .screen-reader-response:not(:has(p:not(:empty))) {
    display: none !important;
}
/* La liste <ul> d'erreurs CF7 dans ce div */
.cf7-wrapper .screen-reader-response ul { display: none; }

/* Encadré confirmation après envoi */
.cf7-wrapper .wpcf7-form.sent ~ * .screen-reader-response p,
.cf7-wrapper .wpcf7-form.sent + .screen-reader-response p { color: var(--amber-lt); }

.cf7-wrapper .screen-reader-response p[role="status"] {
    border-radius: 10px; padding: 1rem 1.2rem;
    font-size: 0.88rem; font-weight: 500; line-height: 1.5;
    font-family: 'DM Sans', sans-serif;
    background: rgba(212,168,50,0.12);
    border: 1.5px solid rgba(212,168,50,0.45);
    color: #f5d07a;
}
.cf7-wrapper .screen-reader-response p[role="status"]:empty {
    display: none;
}

/* Spinner CF7 */
.cf7-wrapper .wpcf7-spinner {
    margin-left: 0.5rem; vertical-align: middle;
}

@media (max-width: 600px) {
    .cf7-wrapper .wpcf7-form .wpcf7-name-email-row { grid-template-columns: 1fr; }
}

/* FOOTER */
footer {
    background: #0e0a04; padding: 30px 5%;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    border-top: 1px solid rgba(224,123,42,0.12);
}
.footer-logo { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--white); font-size: 1rem; }
.footer-logo span { color: var(--accent); }
.footer-copy { font-family: 'DM Sans', sans-serif; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-family: 'DM Sans', sans-serif; color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* BACK TO TOP */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: white; border: none;
    cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: all 0.3s;
    box-shadow: 0 4px 18px rgba(224,123,42,0.45); z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--terra); transform: translateY(-3px); }

/* MOBILE NAV */
.mobile-menu {
    display: none; position: fixed; inset: 0; background: rgba(28,18,8,0.98);
    z-index: 999; flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: white; text-decoration: none; font-size: 1.3rem;
    font-family: 'Playfair Display', serif; font-weight: 700; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-inner, .about-inner, .experience-layout, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-card { display: none; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    footer { flex-direction: column; text-align: center; }
}
.exp-block-label {
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px; color: var(--accent2);
    margin-bottom: 1.5rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212,168,50,0.25);
}
/* ============================================================
   PAGE SIMPLE (politique des cookies, mentions légales…)
   ============================================================ */
.simple-page {
    padding-top: 68px; /* compense la navbar fixe */
    min-height: 100vh;
    background: var(--light);
}
.simple-page__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}
.simple-page__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.simple-page__content {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.97rem;
}
.simple-page__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin: 2.5rem 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.simple-page__content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--dark);
    margin: 1.6rem 0 0.4rem;
}
.simple-page__content h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    margin: 1.2rem 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.simple-page__content p  { margin-bottom: 1rem; }
.simple-page__content ul,
.simple-page__content ol { padding-left: 1.6rem; margin-bottom: 1rem; }
.simple-page__content li { margin-bottom: 0.5rem; }
.simple-page__content strong { color: var(--dark); font-weight: 600; }
.simple-page__content em { font-style: italic; color: var(--muted); }
.simple-page__content a  { color: var(--accent); text-decoration: underline; }
.simple-page__content a:hover { color: var(--primary); }
.simple-page__content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Tableaux (courants dans les politiques de cookies) */
.simple-page__content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.simple-page__content thead {
    background: var(--primary);
    color: var(--white);
}
.simple-page__content th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
}
.simple-page__content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}
.simple-page__content tbody tr:last-child td { border-bottom: none; }
.simple-page__content tbody tr:nth-child(even) { background: var(--light); }

@media (max-width: 600px) {
    .simple-page__content table { font-size: 0.78rem; }
    .simple-page__content th,
    .simple-page__content td { padding: 0.5rem 0.7rem; }
}
.simple-page__back {
    margin-top: 3rem;
}
.simple-page__back a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.simple-page__back a:hover { color: var(--primary); }

@media (max-width: 600px) {
    .simple-page__inner { padding: 2.5rem 1.2rem 4rem; }
}