/* ============================================================
   NETELEC CONNECT — Feuille de styles principale
   ============================================================
   Fichier  : style.css
   Version  : 1.0

   SOMMAIRE
   ─────────────────────────────────────────────────────────
   1.  Variables CSS & Reset global
   2.  Composants réutilisables (boutons, labels, titres)
   3.  Navigation fixe
   4.  Section Hero
   5.  Section Services
   6.  Section Réalisations (galerie filtrée)
   7.  Section Atouts
   8.  Section Contact & Formulaire
   9.  Footer
   10. Responsive — Tablette (≤ 1024px)
   11. Responsive — Mobile   (≤  640px)
   ============================================================ */


/* ============================================================
   1. VARIABLES CSS & RESET GLOBAL
   ============================================================

   Palette officielle Netelec Connect
   ┌─────────────────────────────────────────────────────┐
   │  --blue        #1E73BE   Bleu principal (CTA, accents)│
   │  --blue-dark   #0F2B46   Bleu foncé (fonds premium)   │
   │  --blue-light  #d6e9f8   Bleu clair (icônes, fonds)   │
   │  --gray-bg     #F5F5F5   Gris clair (sections)        │
   │  --white       #FFFFFF   Blanc                        │
   │  --gray-text   #666666   Texte secondaire             │
   └─────────────────────────────────────────────────────┘
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue:       #1E73BE;
  --blue-dark:  #0F2B46;
  --blue-light: #d6e9f8;
  --gray-bg:    #F5F5F5;
  --white:      #FFFFFF;
  --gray-text:  #666666;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--blue-dark);
  background: var(--white);
  overflow-x: hidden;
}


/* ============================================================
   2. COMPOSANTS RÉUTILISABLES
   ============================================================ */

/* Wrapper centré pour le contenu de chaque section */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Label surtitre (ex : "── EXPERTISES") */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
}

/* Titre principal de section */
h2.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

/* Texte descriptif de section */
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

/* Bouton principal — fond bleu */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #1560a0;
  transform: translateY(-1px);
}

/* Bouton secondaire — contour blanc (sur fond sombre) */
.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
}


/* ============================================================
   3. NAVIGATION FIXE
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 72px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(30, 115, 190, 0.12);
  backdrop-filter: blur(8px);
}

.nav-logo {
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue);
}

/* Bouton téléphone dans la nav */
.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
}


/* ============================================================
   4. SECTION HERO
   ============================================================
   Fond bleu foncé avec grille géométrique + halo lumineux.
   Grille 2 colonnes : texte gauche | visuel droit.
   ============================================================ */

.hero {
  min-height: 100vh;
  background: var(--blue-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px; /* hauteur de la nav */
}

/* Grille géométrique en arrière-plan */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 115, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 115, 190, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Cercle lumineux côté droit */
.hero-accent {
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(30, 115, 190, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

/* Grille interne 2 colonnes */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Badge localisation animé */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 115, 190, 0.25);
  border: 1px solid rgba(30, 115, 190, 0.4);
  border-radius: 2px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dbfed;
  margin-bottom: 1.8rem;
}

/* Point lumineux animé dans le badge */
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ca3e0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Titre H1 */
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--blue);
  display: block;
}

/* Chapeau */
.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Groupe de boutons CTA */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Colonne visuelle droite */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

/* Carte blanche contenant le logo */
.hero-logo-card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-logo-card img {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* Photo de chantier sous le logo */
.hero-photo {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 200px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 115, 190, 0.3) 0%, transparent 60%);
}

.hero-photo-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-photo-caption .tag {
  background: rgba(30, 115, 190, 0.92);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
}

.hero-photo-caption .location {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Bande de stats clés */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.hero-stat {
  background: rgba(15, 43, 70, 0.8);
  padding: 1.2rem 1rem;
  text-align: center;
}

.hero-stat .num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
}

.hero-stat .label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================================
   5. SECTION SERVICES
   ============================================================ */

#services {
  background: var(--gray-bg);
  padding: 6rem 4rem;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Grille 2 colonnes séparées par un trait */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(15, 43, 70, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.service-block {
  background: white;
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  border-left: 4px solid transparent;
  transition: background 0.25s, border-left-color 0.25s;
}

.service-block:hover {
  background: #f0f7ff;
  border-left-color: var(--blue);
}

/* Icône carrée */
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.service-block h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-text);
  font-weight: 400;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}


/* ============================================================
   6. SECTION RÉALISATIONS — Galerie filtrée avant/après
   ============================================================ */

#realisations {
  background: #070f18;
  padding: 7rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Halos lumineux décoratifs */
#realisations::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30, 115, 190, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(30, 115, 190, 0.07) 0%, transparent 60%);
}

/* En-tête inversé (fond noir) */
.real-header {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.real-header .section-label        { color: #5aaee8; }
.real-header .section-label::before { background: #5aaee8; }
.real-header h2.section-title       { color: white; }
.real-header .section-desc          { color: rgba(255, 255, 255, 0.45); max-width: 500px; }

/* Onglets de filtre */
.real-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.real-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.real-tab:hover {
  border-color: rgba(30, 115, 190, 0.5);
  color: #7dbfed;
}

.real-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* Catégories : masquées par défaut, visibles via JS */
.real-category         { display: none; }
.real-category.visible { display: block; }

/* Grille de photos */
.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.real-grid.two-col  { grid-template-columns: repeat(2, 1fr); }
.real-grid.four-col { grid-template-columns: repeat(4, 1fr); }

/* Carte photo individuelle */
.rcard {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.rcard.landscape { aspect-ratio: 4 / 3; }
.rcard.wide      { aspect-ratio: 16 / 9; grid-column: span 2; }

.rcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}

.rcard:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* Dégradé bas de carte pour lisibilité du texte */
.rcard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 15, 28, 0.85) 100%);
}

/* Overlay bleu au survol */
.rcard::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(30, 115, 190, 0.15);
  opacity: 0;
  transition: opacity 0.4s;
}

.rcard:hover::after { opacity: 1; }

/* Texte en bas de la carte */
.rcard-info {
  position: absolute;
  z-index: 2;
  bottom: 0.9rem;
  left: 1rem;
  right: 1rem;
}

.rcard-cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5aaee8;
  margin-bottom: 2px;
}

.rcard-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  line-height: 1.25;
}

/* Badges AVANT / APRÈS */
.badge-av {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.badge-av.avant { background: rgba(102, 102, 102, 0.85); color: white; }
.badge-av.apres { background: rgba(30, 115, 190, 0.9);   color: white; }

/* Séparateur décoratif bas de section */
.photo-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.photo-divider-line {
  flex: 1;
  height: 1px;
}

.photo-divider-line.left  { background: linear-gradient(90deg, rgba(30, 115, 190, 0.5), transparent); }
.photo-divider-line.right { background: linear-gradient(90deg, transparent, rgba(30, 115, 190, 0.5)); }

.photo-divider-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}


/* ============================================================
   7. SECTION ATOUTS — Pourquoi nous choisir
   ============================================================ */

#atouts {
  background: white;
  padding: 6rem 4rem;
}

.atouts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.atout-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(30, 115, 190, 0.12);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.atout-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(30, 115, 190, 0.1);
}

/* Trait bleu qui s'étend au survol */
.atout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.atout-card:hover::before { transform: scaleX(1); }

/* Numéro décoratif en fond */
.atout-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(30, 115, 190, 0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.atout-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.atout-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.7;
  font-weight: 300;
}


/* ============================================================
   8. SECTION CONTACT & FORMULAIRE
   ============================================================ */

#contact {
  background: var(--gray-bg);
  padding: 6rem 4rem;
}

/* Grille 2 colonnes : coordonnées | formulaire */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 4rem;
}

.contact-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Ligne coordonnée */
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.contact-text span {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue-dark);
}

.contact-text a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}

.contact-text a:hover { text-decoration: underline; }

/* Formulaire de devis */
.contact-form {
  background: white;
  border-radius: 8px;
  padding: 2.5rem;
  border: 1px solid rgba(30, 115, 190, 0.1);
}

.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.8rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
}

input,
textarea,
select {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--blue-dark);
  background: white;
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  background: var(--blue);
  color: white;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--blue-dark); }


/* ============================================================
   9. FOOTER
   ============================================================ */

footer {
  background: var(--blue-dark);
  padding: 3rem 4rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Logo blanc via filtre CSS */
.footer-inner img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

footer p { font-size: 0.82rem; }


/* ============================================================
   10. RESPONSIVE — TABLETTE (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {

  nav { padding: 0 2rem; }

  /* Hero : 1 colonne, visuel masqué */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 2rem;
  }

  .hero h1     { font-size: 3rem; }
  .hero-visual { display: none; }

  /* Services */
  #services        { padding: 5rem 2rem; }
  .services-grid   { grid-template-columns: 1fr; }

  /* Réalisations */
  #realisations           { padding: 5rem 2rem; }
  .real-grid              { grid-template-columns: repeat(2, 1fr); }
  .real-grid.two-col      { grid-template-columns: 1fr 1fr; }
  .real-grid.four-col     { grid-template-columns: repeat(2, 1fr); }
  .rcard.wide             { grid-column: span 1; }

  /* Atouts */
  #atouts      { padding: 5rem 2rem; }
  .atouts-grid { grid-template-columns: 1fr 1fr; }

  /* Contact */
  #contact       { padding: 5rem 2rem; }
  .contact-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ============================================================
   11. RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */

@media (max-width: 640px) {

  nav        { padding: 0 1.2rem; }
  .nav-links { display: none; }

  .hero-inner { padding: 4rem 1.5rem; }

  #services { padding: 4rem 1.5rem; }

  #realisations    { padding: 4rem 1.5rem; }
  .real-grid,
  .real-grid.two-col,
  .real-grid.four-col { grid-template-columns: 1fr 1fr; }
  .rcard.wide         { grid-column: span 1; }
  .real-tabs          { gap: 0.4rem; }
  .real-tab           { font-size: 0.7rem; padding: 0.4rem 0.8rem; }

  #atouts      { padding: 4rem 1.5rem; }
  .atouts-grid { grid-template-columns: 1fr; }

  #contact  { padding: 4rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  footer        { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
