/* ========================================
   TIRAGE AU SORT - DESIGN GOOGLE STORE
   Menu Hamburger + Layout Full Width
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{text-decoration: none;}

body {
    font-family: "Google Sans", sans-serif;
    line-height: 1.6;
    color: #202124;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   HEADER AVEC HAMBURGER MENU
   ======================================== */

header {
    background: #ffffff;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .15);
    padding: 0;
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;

}

header h1 {
    font-size: 20px;
    font-weight: 400;
    color: #5f6368;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

header h1 .logo-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 12px;
}

/* Bouton Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: #f1f3f4;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: #5f6368;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   NAVIGATION DESKTOP
   ======================================== */

nav {
    background: transparent;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    color: #5f6368;
    text-decoration: none;
    margin-top: 34px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

nav a:hover {
    background: #f1f3f4;
}

/* Menu Mobile (caché par défaut) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 16px;
}

.mobile-menu li {
    margin-bottom: 4px;
}

.mobile-menu a {
    color: #202124;
    text-decoration: none;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: background 0.15s;
}

.mobile-menu a:hover {
    background: #f8f9fa;
}

/* ========================================
   LAYOUT FULL WIDTH (SANS SIDEBAR)
   ======================================== */

.main-content {
    max-width: 1200px;
    margin: 48px auto 80px;
    padding: 0 40px;
}

.content {
    background: transparent;
    padding: 0;
}

/* ========================================
   TYPOGRAPHIE GOOGLE STORE
   ======================================== */

h1 {
    font-size: 48px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 24px;
    letter-spacing: normal;
    line-height: 1.2;
    margin-top: 90px;
}

h2 {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    margin-top: 64px;
    margin-bottom: 24px;
    letter-spacing: -0.4px;
}

h3 {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin-top: 20px;
    margin-bottom: 16px;
}

p {
    color: #5f6368;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
}

strong {
    color: #202124;
    font-weight: 500;
}

/* ========================================
   INFO BOX
   ======================================== */

.info-box {
    background: #f9f9f9;
    padding: 32px;
    border-radius: 24px;
    margin: 32px 0;
    font-size: 16px;
    color: #202124;
}

.info-box strong {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

/* ========================================
   TOOL CONTAINER - GRANDE CARD
   ======================================== */

.tool-container {
    background: #ffffff;
    padding: 48px;
    border-radius: 24px;
    margin: 48px 0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
}

.tool-container h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 32px;
}

/* ========================================
   INPUTS STYLE GOOGLE STORE
   ======================================== */

textarea, 
input[type="text"], 
input[type="number"], 
input[type="email"],
select {
    width: 100%;
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 24px;
    transition: all 0.15s;
    background: #ffffff;
    color: #202124;
}

textarea:hover, 
input:hover, 
select:hover {
    border-color: #bdc1c6;
}

textarea:focus, 
input:focus, 
select:focus {
    outline: none;
    border-color: #1a73e8;
    border-width: 2px;
    padding: 15px;
}

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

label {
    display: block;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* ========================================
   BOUTONS STYLE GOOGLE STORE
   ======================================== */

button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.25px;
    box-shadow: none;
    border: 2px solid transparent;
}

button:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px 1px rgba(60,64,67,0.15);
}

button:active {
    background: #1557b0;
}

button.secondary {
    background: transparent;
    color: #1a73e8;
    border: 2px solid #dadce0;
}

button.secondary:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
}

/* ========================================
   RÉSULTAT
   ======================================== */

.result {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #1e7e34;
    padding: 24px 32px;
    border-radius: 16px;
    margin-top: 32px;
    font-size: 18px;
    text-align: center;
    font-weight: 400;
    display: none;
}

.result.show {
    display: block;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FAQ - CARDS
   ======================================== */

.faq {
    margin-top: 64px;
}

.faq-item {
    margin-bottom: 24px;
    padding: 32px;
    background: #F2F6FE;
    border-radius: 24px;
}

.faq-item h3 {
    color: #202124;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 500;
}

.faq-item p {
    margin-bottom: 0;
    color: #5f6368;
}

/* ========================================
   LISTES
   ======================================== */

ol, ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

li {
    color: #5f6368;
    margin-bottom: 12px;
    line-height: 1.75;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: #f8f9fa;
    border-top: 1px solid #dadce0;
    text-align: center;
    padding: 48px 0;
    margin-top: 80px;
}

footer p {
    color: #5f6368;
    font-size: 14px;
}

footer a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.15s;
}

footer a:hover {
    color: #1a73e8;
}


/* ========================================
   GRILLE D'OUTILS (PAGE D'ACCUEIL)
   ======================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.tool-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px 0 rgba(60,64,67,0.3), 0 8px 16px 4px rgba(60,64,67,0.15);
}

.tool-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
}

.tool-card p {
    margin-bottom: 24px;
}

.tool-card a {
    display: inline-block;
    background: #1a73e8;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.tool-card a:hover {
    background: #1765cc;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .container {
        padding: 0 24px;
    }
    
    .main-content {
        padding: 0 24px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Afficher le hamburger */
    .hamburger-btn {
        display: flex;
    }
    
    /* Cacher la nav desktop */
    nav {
        display: none;
    }
    
    header .container {
        height: 56px;
    }
    
    header h1 {
        font-size: 18px;
    }
    
    header h1 .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
        margin-right: 8px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
        margin-top: 48px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .tool-container {
        padding: 32px 24px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 0 16px;
        margin: 32px auto 48px;
    }
    
    .faq-item {
        padding: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .tool-container {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    /*
    button {
        width: 100%;
    }
    */
    .mobile-menu-content {
        width: 100%;
        max-width: 100%;
    }

    .mobile-menu-content li i {margin-right: 10px;}
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    header,
    nav,
    .hamburger-btn,
    .mobile-menu,
    .ad-space,
    footer,
    button {
        display: none;
    }
    
    .main-content {
        padding: 0;
        margin: 0;
    }
    
    .tool-container {
        box-shadow: none;
        border: 1px solid #dadce0;
    }
}

 .faq-item h3 { color: #6c5ce7; font-size: 1.1rem; margin-bottom: 5px; }
    .faq-item p { margin-bottom: 20px; }
    .btn-main:hover { background: #5649c0 !important; transform: translateY(-2px); }
    .btn-alt:hover { background: #000 !important; }
    textarea:focus { border-color: #6c5ce7 !important; outline: none; }
    @keyframes bounceIn {
        0% { transform: scale(0.3); opacity: 0; }
        50% { transform: scale(1.05); opacity: 1; }
        70% { transform: scale(0.9); }
        100% { transform: scale(1); }
    }
