/*
 Theme Name: Artoromes Enfant
 Template: twentytwentyfour
 Version: 0.3.0
*/

/* Variables */
:root{
  --gap: clamp(.75rem, 2vw, 1.25rem);
  --wrap: 70rem;
  --radius: 14px;
  --bg: var(--wp--preset--color--bg, #fff);
  --text: var(--wp--preset--color--text, #111);
  --accent: var(--wp--preset--color--accent, #9fb891);
  --muted: var(--wp--preset--color--muted, #f5f5f5);
  --line: var(--wp--preset--color--line, #e5e5e5);
}

html{scroll-behavior:smooth}
body{margin:0; color:var(--text); background:var(--bg);
  font:400 1rem/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}

/* Layout générique */
.wrap{max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gap)}
.section{padding: clamp(1.25rem, 4vw, 3rem) var(--gap)}

/* Header + menu */
.site-header{position:sticky; top:0; z-index:50; background:var(--bg); border-bottom:1px solid var(--line)}
.site-header__row{display:flex; align-items:center; gap:var(--gap); padding: .75rem var(--gap)}
.brand{ /* Masqué visuellement mais présent pour l’accessibilité */
  position:absolute; clip:rect(0 0 0 0); clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap;
}
.menu{display:flex; gap:var(--gap); align-items:center}
.menu a{position:relative; text-decoration:none; color:var(--text); font-weight:600}
.menu a::after{content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; transform:scaleX(0); transform-origin:left;
  background:var(--text); transition:transform .3s}
.menu a:hover::after{transform:scaleX(1)}
.desktop-only{display:flex}
.mobile-only{display:none}

/* Bouton burger (mobile) */
.burger{appearance:none; border:1px solid var(--line); background:var(--bg); border-radius:10px; padding:.5rem; display:inline-flex; align-items:center; gap:.5rem}
.burger__bars{width:22px; height:2px; background:var(--text); position:relative}
.burger__bars::before,.burger__bars::after{content:""; position:absolute; left:0; right:0; height:2px; background:var(--text)}
.burger__bars::before{top:-6px} .burger__bars::after{top:6px}

/* Menu déroulant mobile */
@media (max-width: 48rem){
  .desktop-only{display:none}
  .mobile-only{display:inline-flex}
  .menu{display:none; position:absolute; top:100%; left:0; right:0; background:var(--bg); border-bottom:1px solid var(--line);
        flex-direction:column; padding: .75rem var(--gap)}
  .menu.is-open{display:flex}
}

/* --- INTRO : version serrée, sans vh — révisée (×0.5 et +2px en bas) --- */
#intro.section.wrap {
  /* Espace entre la barre de menu et la section + après la section */
  padding-block: 2px 8px;  
}

#intro {
  display: grid;
  grid-auto-rows: auto;
  row-gap: 0;
}

/* Logo : marge désymétrisée (bas = haut + 2px) */
#intro .intro-brand {
  margin-top: clamp(4px, 0.4vw, 8px);
  margin-bottom: clamp(8px, 0.8vw, 14px) ;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Taille du logo (inchangée) */
#intro .intro-brand__logo {
  width: clamp(96px, 18vw, 420px);
  height: auto;
}

/* Petit espace avant le contenu sous le logo */
#intro .intro-grid {
  /* avant: clamp(8px, .8vw, 16px) */
  margin-top: clamp(4px, .4vw, 8px);
}

/* Grand écran */
@media (min-width: 1920px) {
  #intro .intro-brand__logo { width: clamp(140px, 12vw, 480px); }
  /* avant: margin-block: clamp(14px, 1vw, 28px); → moitié + bas +2px */
  #intro .intro-brand {
 	margin-top: clamp(7px, 0.5vw, 14px);
	margin-bottom: clamp(11px, 0.5vw, 18px);;
  }
}
/* Mobile  */
@media (max-width: 480px) {
  /* moins d'air entre le menu et la section, et un peu en bas */
  #intro.section.wrap { padding-block: 2px 10px; }

  /* logo : petit au-dessus, un peu plus dessous (≈ 1 : 1.5) */
  #intro .intro-brand { margin-top: 2px; margin-bottom: 14px; }

  /* garder un petit coussin avant le contenu */
  #intro .intro-grid { margin-top: 12px; }

  /* taille logo identique à avant */
  #intro .intro-brand__logo { width: clamp(88px, 32vw, 160px); height: auto; }
}


/* Icônes réseaux (desktop en haut) */
.social{display:flex; gap:.5rem; margin-left:auto}
.icon{width:36px; height:36px; border-radius:50%; background:var(--accent); display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; color:#fff; font-weight:700; opacity:.95; transition:transform .2s, opacity .2s}
.icon:hover{transform:translateY(-2px); opacity:1}

.icon{
  width:36px; height:36px; border-radius:50%;
  background:var(--accent);
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
}
.icon-svg{
  width:22px; height:22px; display:block;
  /* si tes SVG sont noirs et tu veux les rendre blancs : */
  filter: brightness(0) invert(1);
}

/* FAB réseaux (mobile flottant) */
.social-fab{position:fixed; right:12px; bottom:12px; width:52px; height:52px; border-radius:50%; border:none; background:var(--accent);
  color:#fff; font-size:1.25rem; display:none; align-items:center; justify-content:center; z-index:60}
.social-panel{position:fixed; right:12px; bottom:72px; display:none; flex-direction:column; gap:.5rem; z-index:60}
.social-panel a{width:44px; height:44px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none}
@media (max-width: 48rem){
  .social-fab{display:flex}
}

/* Titre vert réutilisable */
.fancy-title{
  color:var(--accent); text-align:center; font-weight:800;
  font-size:clamp(1.8rem, 3vw + 1rem, 3rem); line-height:1.1;
  position:relative; margin: 1rem 0 2rem;
}
.fancy-title::before,.fancy-title::after{
  content:""; display:block; width:120px; height:3px; background:color-mix(in oklab, var(--accent) 70%, #fff);
  margin: .75rem auto; border-radius:3px;
}

.intro-heading {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 800;
  margin: 0 0 .5rem;
  color: var(--text);
}

.lead {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Intro (image carrée + texte justifié) */
.intro-grid{display:grid; gap:var(--gap); align-items:start}
@media (min-width:48rem){ .intro-grid{grid-template-columns: 320px 1fr} }
.prose p{text-align:justify}
.btn-link{font-weight:700; text-decoration:none; border-bottom:2px solid currentColor}

/* Images carrées (À-propos + 4 Services) */
.img-square{aspect-ratio:1 / 1; object-fit:cover; width:100%; display:block; border-radius:12px}

/* --- Portfolio : Masonry simple en colonnes (sans JS) --- */
.portfolio{
  column-width: 260px;
  column-gap: var(--gap);
}
@media (max-width: 64rem){ .portfolio{ column-width: 220px; } }
@media (max-width: 40rem){ .portfolio{ column-width: 180px; } }

.portfolio__item{
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 var(--gap);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .25s ease;
}

.portfolio__item img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform .28s ease;
  vertical-align: middle;
}

.portfolio__item::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0);
  transition: background .28s ease;
  pointer-events: none;
}
.portfolio__item:hover img{ transform: scale(1.06); }
.portfolio__item:hover::after{ background: rgba(0,0,0,.10); }
.portfolio__item:hover{ box-shadow: 0 10px 26px rgba(0,0,0,.18); }

.portfolio::after{ display:none !important; }

/* Cartes services */
.services {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width:40rem){ .services{grid-template-columns:repeat(2,1fr)} }
@media (min-width:64rem){ .services{grid-template-columns:repeat(4,1fr)} }

.card {
  background: var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  transform: scale(1);
  transform-origin: center;
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
  position: relative;
}
.card img {
  display: block;
  width: 100%;
  height: auto;
}
.card__body {
  padding: .75rem .9rem;
}
.card__body h3 {
  margin-top: 0;
}
.card{ display:block; text-decoration:none; color:#fff; }
.card:focus-visible{ outline:2px solid color-mix(in srgb, var(--accent) 60%, white); outline-offset:4px; }

.card:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  z-index: 10;
}
.services {
  overflow: visible;
}

/* Scroll reveal réversible */
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-down{
  opacity: 0;
  will-change: transform, opacity;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s cubic-bezier(.2,.8,.2,1);
}
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX( 24px); }
.reveal-up    { transform: translateY( 24px); }
.reveal-down  { transform: translateY(-24px); }
.in-view{
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}
.stagger{ transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce){
  .reveal-left,.reveal-right,.reveal-up,.reveal-down{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Réduction mouvement */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
}
.reveal-up.rev-from-top   { transform: translateY(-24px); }
.reveal-down.rev-from-top { transform: translateY( 24px); }
.reveal-left.rev-from-top  { transform: translateX( 24px); }
.reveal-right.rev-from-top { transform: translateX(-24px); }

/* Centre le bloc CF7 */
#contact .wpcf7 { max-width: 600px; margin: 0 auto; }

/* Champs pleine largeur */
#contact .wpcf7 input[type="text"],
#contact .wpcf7 input[type="email"],
#contact .wpcf7 input[type="url"],
#contact .wpcf7 input[type="tel"],
#contact .wpcf7 input[type="number"],
#contact .wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
}
#contact .wpcf7 p { margin: 0 0 1rem; }
#contact .wpcf7 input[type="submit"] {
  display: block;
  margin: .5rem auto 0;
}

/* Pied de page */
#footer {
  text-align: center;
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--text);
}
#footer a { color: inherit; text-decoration: none; }
#footer a:hover { text-decoration: underline; }

/* Lightbox */
.lb-overlay{position:fixed; inset:0; background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center; z-index:9999}
.lb-overlay.open{display:flex}
.lb-img{max-width:92vw; max-height:92vh; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lb-close,.lb-prev,.lb-next{
  position:absolute; background:transparent; border:none; color:#fff; font-size:2rem; line-height:1; cursor:pointer; padding:.25rem .5rem
}
.lb-close{top:12px; right:16px}
.lb-prev{left:12px; top:50%; transform:translateY(-50%)}
.lb-next{right:12px; top:50%; transform:translateY(-50%)}
.lb-count{position:absolute; bottom:12px; left:50%; transform:translateX(-50%); color:#fff; font-weight:600; opacity:.8}
.lb-overlay { touch-action: none; }

/* TYPO GLOBALE */
:root{
  --font-heading: "Lobster", system-ui, -apple-system, "Segoe UI", Roboto, "Open Sans", sans-serif;
  --font-body:    "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: 1rem;
  --lh-base: 1.65;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
#services .card__body h3 { text-align: center; }
#services .card__body { text-align: center; }

h1{ font-size: clamp(2.25rem, 1.2rem + 2.4vw, 2.75rem); }
h2{ font-size: clamp(1.75rem, 0.9rem + 1.8vw, 2.00rem); }
h3{ font-size: clamp(1.35rem, 0.8rem + 1.0vw, 1.50rem); }
h4{ font-size: clamp(1.15rem, 0.75rem + .6vw, 1.25rem); }
h5{ font-size: 1.05rem; }
h6{ font-size: 1.00rem; }

p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-base);
  font-weight: 400;
}
a{
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
}
#site-menu,
#site-menu *{ font-family: var(--font-body); }
#site-menu a,
.menu__link{
  font-weight: 700;
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  letter-spacing: .01em;
  text-decoration: none;
}
button, .button,
input, select, textarea{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}
.lead{ font-size: 1.125rem; font-weight: 400; }
.fancy-title{ font-family: var(--font-heading); font-weight: 400; }

#footer .footer-links{
  display: inline-flex;
  gap: .5rem;
  white-space: nowrap;
  flex-wrap: nowrap;
  align-items: baseline;
}
#footer .footer-links a,
#footer .footer-links span{ white-space: nowrap; }

/* Page EN : drapeau langue */
.icon--lang { margin-left: .5rem; }
.icon--lang .icon-svg.flag{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  filter: none !important;
}

/* Burger visible seulement sur mobile */
@media (min-width: 48rem){ .burger { display: none !important; } }
@media (max-width: 47.99rem){ .burger { display: inline-flex !important; } }

/* Si .desktop-only gêne
