/* ============================================ */
/* ÉCLAIRCIE STUDIO — REDESIGN                 */
/* Clean, modern, professional                 */
/* ============================================ */

/* --- TOKENS --- */
:root {
  --bg:           #FAFAFA;
  --bg-subtle:    #F3F4F6;
  --text:         #111827;
  --text-secondary: #6B7280;
  --accent:       #111827;
  --accent-warm:  #B8965A;
  --border:       #E5E7EB;
  --border-hover: #D1D5DB;
  --radius:       12px;
  --radius-sm:    8px;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- LAYOUT --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- SHARED --- */
.section-header {
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.dot {
  color: var(--accent-warm);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- TAGS --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag-list li {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- ANIMATIONS --- */
.anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.anim--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================ */
/* NAVIGATION                                   */
/* ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}

.nav--scrolled {
  border-color: var(--border);
  padding: 0.875rem 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav__cta:hover {
  background: #374151;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__toggle--active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav__toggle--active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
}

.hero__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero__title em {
  font-style: italic;
  color: var(--accent-warm);
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================ */
/* SERVICES                                     */
/* ============================================ */
.services {
  padding: 7rem 0;
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.service-card__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin-bottom: 1.25rem;
  display: block;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================ */
/* PORTFOLIO                                    */
/* ============================================ */
.portfolio {
  padding: 7rem 0;
  background: var(--bg-subtle);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.project-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.project-card a {
  display: block;
}

.project-card__preview {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: var(--bg-subtle);
}

.project-card__preview iframe {
  border: 0;
  pointer-events: none;
  transform-origin: top left;
  transform: scale(0.25);
  width: 400%;
  height: 400%;
}

.project-card__info {
  padding: 1.25rem 1.5rem;
}

.project-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.project-card__info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* À PROPOS                                     */
/* ============================================ */
.apropos {
  padding: 7rem 0;
  background: var(--bg);
}

.apropos__intro {
  max-width: 640px;
  margin-bottom: 4rem;
}

.apropos__intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.apropos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.profil {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.3s;
}

.profil:hover {
  border-color: var(--border-hover);
}

.profil__photo {
  height: 360px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.profil__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profil__content {
  padding: 2rem;
}

.profil__role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
}

.profil__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.profil__subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.profil__bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.profil__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.profil__skills span {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================ */
/* CONTACT                                      */
/* ============================================ */
.contact {
  padding: 7rem 0;
  background: var(--bg-subtle);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact__info {
  margin-bottom: 2rem;
}

.contact__email {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  display: inline-block;
  margin-bottom: 0.25rem;
  position: relative;
}

.contact__email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-warm);
  transition: width 0.3s var(--ease);
}

.contact__email:hover::after {
  width: 100%;
}

.contact__location {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Form --- */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .apropos__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s var(--ease);
    z-index: -1;
  }

  .nav__links--open {
    right: 0;
  }

  .nav__links a {
    font-size: 1.125rem;
    color: var(--text);
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero__content {
    text-align: left;
  }

  .hero__sub {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .services,
  .portfolio,
  .apropos,
  .contact {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .project-card__preview {
    height: 200px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}